Class FunctionToolCallDelta
-
- All Implemented Interfaces:
public final class FunctionToolCallDelta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FunctionToolCallDelta.Builder
A builder for FunctionToolCallDelta.
public final class
FunctionToolCallDelta.Function
The definition of the function that was called.
-
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 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.Builder
toBuilder()
final FunctionToolCallDelta
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static FunctionToolCallDelta.Builder
builder()
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
function
for 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()
-
builder
final static FunctionToolCallDelta.Builder builder()
Returns a mutable builder for constructing an instance of FunctionToolCallDelta.
The following fields are required:
.index()
-
-
-
-