Class ResponseCodeInterpreterToolCall
-
- All Implemented Interfaces:
public final class ResponseCodeInterpreterToolCall
A tool call to run code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseCodeInterpreterToolCall.Builder
A builder for ResponseCodeInterpreterToolCall.
public final class
ResponseCodeInterpreterToolCall.Output
The logs output from the code interpreter.
public final class
ResponseCodeInterpreterToolCall.Status
The status of the code interpreter tool call.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the code interpreter tool call. final Optional<String>
code()
The code to run, or null if not available. final String
containerId()
The ID of the container used to run the code. final Optional<List<ResponseCodeInterpreterToolCall.Output>>
outputs()
The outputs generated by the code interpreter, such as logs or images. final ResponseCodeInterpreterToolCall.Status
status()
The status of the code interpreter tool call. final JsonValue
_type()
The type of the code interpreter tool call. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<String>
_code()
Returns the raw JSON value of code. final JsonField<String>
_containerId()
Returns the raw JSON value of containerId. final JsonField<List<ResponseCodeInterpreterToolCall.Output>>
_outputs()
Returns the raw JSON value of outputs. final JsonField<ResponseCodeInterpreterToolCall.Status>
_status()
Returns the raw JSON value of status. final Map<String, JsonValue>
_additionalProperties()
final ResponseCodeInterpreterToolCall.Builder
toBuilder()
final ResponseCodeInterpreterToolCall
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseCodeInterpreterToolCall.Builder
builder()
Returns a mutable builder for constructing an instance of ResponseCodeInterpreterToolCall. -
-
Method Detail
-
containerId
final String containerId()
The ID of the container used to run the code.
-
outputs
final Optional<List<ResponseCodeInterpreterToolCall.Output>> outputs()
The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
-
status
final ResponseCodeInterpreterToolCall.Status status()
The status of the code interpreter tool call.
-
_type
final JsonValue _type()
The type of the code interpreter tool call. Always
code_interpreter_call
.Expected to always return the following:
JsonValue.from("code_interpreter_call")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_code
final JsonField<String> _code()
Returns the raw JSON value of code.
Unlike code, this method doesn't throw if the JSON field has an unexpected type.
-
_containerId
final JsonField<String> _containerId()
Returns the raw JSON value of containerId.
Unlike containerId, this method doesn't throw if the JSON field has an unexpected type.
-
_outputs
final JsonField<List<ResponseCodeInterpreterToolCall.Output>> _outputs()
Returns the raw JSON value of outputs.
Unlike outputs, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseCodeInterpreterToolCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseCodeInterpreterToolCall.Builder toBuilder()
-
validate
final ResponseCodeInterpreterToolCall validate()
-
builder
final static ResponseCodeInterpreterToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ResponseCodeInterpreterToolCall.
The following fields are required:
.id() .code() .containerId() .outputs() .status()
-
-
-
-