Class ToolCallDeltaObject
-
- All Implemented Interfaces:
public final class ToolCallDeltaObjectDetails of the tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolCallDeltaObject.BuilderA builder for ToolCallDeltaObject.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()Always tool_calls.final Optional<List<ToolCallDelta>>toolCalls()An array of tool calls the run step was involved in. final JsonField<List<ToolCallDelta>>_toolCalls()Returns the raw JSON value of toolCalls. final Map<String, JsonValue>_additionalProperties()final ToolCallDeltaObject.BuildertoBuilder()final ToolCallDeltaObjectvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolCallDeltaObject.Builderbuilder()Returns a mutable builder for constructing an instance of ToolCallDeltaObject. -
-
Method Detail
-
_type
final JsonValue _type()
Always
tool_calls.Expected to always return the following:
JsonValue.from("tool_calls")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
toolCalls
final Optional<List<ToolCallDelta>> toolCalls()
An array of tool calls the run step was involved in. These can be associated with one of three types of tools:
code_interpreter,file_search, orfunction.
-
_toolCalls
final JsonField<List<ToolCallDelta>> _toolCalls()
Returns the raw JSON value of toolCalls.
Unlike toolCalls, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ToolCallDeltaObject.Builder toBuilder()
-
validate
final ToolCallDeltaObject 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 ToolCallDeltaObject.Builder builder()
Returns a mutable builder for constructing an instance of ToolCallDeltaObject.
-
-
-
-