Class CodeInterpreterToolCallDelta
-
- All Implemented Interfaces:
public final class CodeInterpreterToolCallDelta
Details of the Code Interpreter tool call the run step was involved in.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CodeInterpreterToolCallDelta.Builder
A builder for CodeInterpreterToolCallDelta.
public final class
CodeInterpreterToolCallDelta.CodeInterpreter
The Code Interpreter tool call definition.
-
Method Summary
Modifier and Type Method Description final Long
index()
The index of the tool call in the tool calls array. final JsonValue
_type()
The type of tool call. final Optional<String>
id()
The ID of the tool call. final Optional<CodeInterpreterToolCallDelta.CodeInterpreter>
codeInterpreter()
The Code Interpreter tool call definition. final JsonField<Long>
_index()
Returns the raw JSON value of index. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<CodeInterpreterToolCallDelta.CodeInterpreter>
_codeInterpreter()
Returns the raw JSON value of codeInterpreter. final Map<String, JsonValue>
_additionalProperties()
final CodeInterpreterToolCallDelta.Builder
toBuilder()
final CodeInterpreterToolCallDelta
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CodeInterpreterToolCallDelta.Builder
builder()
Returns a mutable builder for constructing an instance of CodeInterpreterToolCallDelta. -
-
Method Detail
-
_type
final JsonValue _type()
The type of tool call. This is always going to be
code_interpreter
for 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).
-
codeInterpreter
final Optional<CodeInterpreterToolCallDelta.CodeInterpreter> codeInterpreter()
The Code Interpreter tool call definition.
-
_index
final JsonField<Long> _index()
Returns the raw JSON value of index.
Unlike index, this method doesn't throw if the JSON field has an unexpected type.
-
_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<CodeInterpreterToolCallDelta.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 CodeInterpreterToolCallDelta.Builder toBuilder()
-
validate
final CodeInterpreterToolCallDelta validate()
-
builder
final static CodeInterpreterToolCallDelta.Builder builder()
Returns a mutable builder for constructing an instance of CodeInterpreterToolCallDelta.
The following fields are required:
.index()
-
-
-
-