Class ResponseCodeInterpreterToolCall
-
- All Implemented Interfaces:
public final class ResponseCodeInterpreterToolCallA tool call to run code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseCodeInterpreterToolCall.BuilderA builder for ResponseCodeInterpreterToolCall.
public final classResponseCodeInterpreterToolCall.OutputThe logs output from the code interpreter.
public final classResponseCodeInterpreterToolCall.StatusThe status of the code interpreter tool call. Valid values are
in_progress,completed,incomplete,interpreting, andfailed.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the code interpreter tool call. final Optional<String>code()The code to run, or null if not available. final StringcontainerId()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.Statusstatus()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.BuildertoBuilder()final ResponseCodeInterpreterToolCallvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseCodeInterpreterToolCall.Builderbuilder()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. Valid values are
in_progress,completed,incomplete,interpreting, andfailed.
-
_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()
-
-
-
-