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.Result
The output of a code interpreter tool call that is text.
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 String
code()
The code to run. final List<ResponseCodeInterpreterToolCall.Result>
results()
The results of the code interpreter tool call. 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<List<ResponseCodeInterpreterToolCall.Result>>
_results()
Returns the raw JSON value of results. final JsonField<ResponseCodeInterpreterToolCall.Status>
_status()
Returns the raw JSON value of status. final Map<String, JsonValue>
_additionalProperties()
final ResponseCodeInterpreterToolCall.Builder
toBuilder()
final ResponseCodeInterpreterToolCall
validate()
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
-
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).
-
_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.
-
_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()
-
-
-
-