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 class
ChatCompletionChunk.Choice.Delta.ToolCall.Builder
A builder for ToolCall.
public final class
ChatCompletionChunk.Choice.Delta.ToolCall.Function
public final class
ChatCompletionChunk.Choice.Delta.ToolCall.Type
The type of the tool. Currently, only
function
is 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
function
is 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()
-
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()
-
-
-
-