Class ChatCompletionChunk.Choice.Delta.ToolCall
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.Delta.ToolCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionChunk.Choice.Delta.ToolCall.BuilderA builder for ToolCall.
public final classChatCompletionChunk.Choice.Delta.ToolCall.Functionpublic final classChatCompletionChunk.Choice.Delta.ToolCall.TypeThe type of the tool. Currently, only
functionis supported.
-
Method Summary
-
-
Method Detail
-
function
final Optional<ChatCompletionChunk.Choice.Delta.ToolCall.Function> function()
-
type
final Optional<ChatCompletionChunk.Choice.Delta.ToolCall.Type> type()
The type of the tool. Currently, only
functionis supported.
-
_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<ChatCompletionChunk.Choice.Delta.ToolCall.Function> _function()
Returns the raw JSON value of function.
Unlike function, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<ChatCompletionChunk.Choice.Delta.ToolCall.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder toBuilder()
-
validate
final ChatCompletionChunk.Choice.Delta.ToolCall 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 ChatCompletionChunk.Choice.Delta.ToolCall.Builder builder()
Returns a mutable builder for constructing an instance of ToolCall.
The following fields are required:
.index()
-
-
-
-