Class FunctionToolCallDelta
-
- All Implemented Interfaces:
public final class FunctionToolCallDelta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFunctionToolCallDelta.BuilderA builder for FunctionToolCallDelta.
public final classFunctionToolCallDelta.FunctionThe definition of the function that was called.
-
Method Summary
Modifier and Type Method Description final Longindex()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 object. final Optional<FunctionToolCallDelta.Function>function()The definition of the function that was called. final JsonField<Long>_index()Returns the raw JSON value of index. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<FunctionToolCallDelta.Function>_function()Returns the raw JSON value of function. final Map<String, JsonValue>_additionalProperties()final FunctionToolCallDelta.BuildertoBuilder()final FunctionToolCallDeltavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionToolCallDelta.Builderbuilder()Returns a mutable builder for constructing an instance of FunctionToolCallDelta. -
-
Method Detail
-
_type
final JsonValue _type()
The type of tool call. This is always going to be
functionfor this type of tool call.Expected to always return the following:
JsonValue.from("function")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
function
final Optional<FunctionToolCallDelta.Function> function()
The definition of the function that was called.
-
_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.
-
_function
final JsonField<FunctionToolCallDelta.Function> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final FunctionToolCallDelta.Builder toBuilder()
-
validate
final FunctionToolCallDelta 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 FunctionToolCallDelta.Builder builder()
Returns a mutable builder for constructing an instance of FunctionToolCallDelta.
The following fields are required:
.index()
-
-
-
-