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.ResultThe output of a code interpreter tool.
public final classResponseCodeInterpreterToolCall.StatusThe status of the code interpreter tool call.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the code interpreter tool call. final Stringcode()The code to run. final List<ResponseCodeInterpreterToolCall.Result>results()The results of the code interpreter tool call. final ResponseCodeInterpreterToolCall.Statusstatus()The status of the code interpreter tool call. final JsonValue_type()The type of the code interpreter tool call. final Optional<String>containerId()The ID of the container used to run the code. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_code()Returns the raw JSON value of code. final JsonField<List<ResponseCodeInterpreterToolCall.Result>>_results()Returns the raw JSON value of results. final JsonField<ResponseCodeInterpreterToolCall.Status>_status()Returns the raw JSON value of status. final JsonField<String>_containerId()Returns the raw JSON value of containerId. 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
-
results
final List<ResponseCodeInterpreterToolCall.Result> results()
The results of the code interpreter tool call.
-
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).
-
containerId
final Optional<String> containerId()
The ID of the container used to run the code.
-
_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.
-
_results
final JsonField<List<ResponseCodeInterpreterToolCall.Result>> _results()
Returns the raw JSON value of results.
Unlike results, 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.
-
_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.
-
_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() .results() .status()
-
-
-
-