Class BetaResponseCodeInterpreterToolCall
-
- All Implemented Interfaces:
public final class BetaResponseCodeInterpreterToolCallA tool call to run code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseCodeInterpreterToolCall.BuilderA builder for BetaResponseCodeInterpreterToolCall.
public final classBetaResponseCodeInterpreterToolCall.OutputThe logs output from the code interpreter.
public final classBetaResponseCodeInterpreterToolCall.StatusThe status of the code interpreter tool call. Valid values are
in_progress,completed,incomplete,interpreting, andfailed.public final classBetaResponseCodeInterpreterToolCall.AgentThe agent that produced this item.
-
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<BetaResponseCodeInterpreterToolCall.Output>>outputs()The outputs generated by the code interpreter, such as logs or images. final BetaResponseCodeInterpreterToolCall.Statusstatus()The status of the code interpreter tool call. final JsonValue_type()The type of the code interpreter tool call. final Optional<BetaResponseCodeInterpreterToolCall.Agent>agent()The agent that produced this item. 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<BetaResponseCodeInterpreterToolCall.Output>>_outputs()Returns the raw JSON value of outputs. final JsonField<BetaResponseCodeInterpreterToolCall.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseCodeInterpreterToolCall.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseCodeInterpreterToolCall.BuildertoBuilder()final BetaResponseCodeInterpreterToolCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseCodeInterpreterToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseCodeInterpreterToolCall. -
-
Method Detail
-
containerId
final String containerId()
The ID of the container used to run the code.
-
outputs
final Optional<List<BetaResponseCodeInterpreterToolCall.Output>> outputs()
The outputs generated by the code interpreter, such as logs or images. Can be null if no outputs are available.
-
status
final BetaResponseCodeInterpreterToolCall.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).
-
agent
final Optional<BetaResponseCodeInterpreterToolCall.Agent> agent()
The agent that produced this item.
-
_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<BetaResponseCodeInterpreterToolCall.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<BetaResponseCodeInterpreterToolCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseCodeInterpreterToolCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseCodeInterpreterToolCall.Builder toBuilder()
-
validate
final BetaResponseCodeInterpreterToolCall validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseCodeInterpreterToolCall.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseCodeInterpreterToolCall.
The following fields are required:
.id() .code() .containerId() .outputs() .status()
-
-
-
-