Class CodeInterpreterToolCall
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCallDetails of the Code Interpreter tool call the run step was involved in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCodeInterpreterToolCall.BuilderA builder for CodeInterpreterToolCall.
public final classCodeInterpreterToolCall.CodeInterpreterThe Code Interpreter tool call definition.
-
Method Summary
Modifier and Type Method Description final Stringid()The ID of the tool call. final CodeInterpreterToolCall.CodeInterpretercodeInterpreter()The Code Interpreter tool call definition. final JsonValue_type()The type of tool call. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<CodeInterpreterToolCall.CodeInterpreter>_codeInterpreter()Returns the raw JSON value of codeInterpreter. final Map<String, JsonValue>_additionalProperties()final CodeInterpreterToolCall.BuildertoBuilder()final CodeInterpreterToolCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CodeInterpreterToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of CodeInterpreterToolCall. -
-
Method Detail
-
codeInterpreter
final CodeInterpreterToolCall.CodeInterpreter codeInterpreter()
The Code Interpreter tool call definition.
-
_type
final JsonValue _type()
The type of tool call. This is always going to be
code_interpreterfor this type of tool call.Expected to always return the following:
JsonValue.from("code_interpreter")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.
-
_codeInterpreter
final JsonField<CodeInterpreterToolCall.CodeInterpreter> _codeInterpreter()
Returns the raw JSON value of codeInterpreter.
Unlike codeInterpreter, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CodeInterpreterToolCall.Builder toBuilder()
-
validate
final CodeInterpreterToolCall 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 CodeInterpreterToolCall.Builder builder()
Returns a mutable builder for constructing an instance of CodeInterpreterToolCall.
The following fields are required:
.id() .codeInterpreter()
-
-
-
-