Class ChatCompletionChunk.Choice.Delta.ToolCall.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.Delta.ToolCall.Builder
A builder for ToolCall.
-
-
Method Summary
-
-
Method Detail
-
index
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder index(Long index)
-
index
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder index(JsonField<Long> index)
Sets Builder.index to an arbitrary JSON value.
You should usually call Builder.index with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder id(String id)
The ID of the tool call.
-
id
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
function
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder function(ChatCompletionChunk.Choice.Delta.ToolCall.Function function)
-
function
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder function(JsonField<ChatCompletionChunk.Choice.Delta.ToolCall.Function> function)
Sets Builder.function to an arbitrary JSON value.
You should usually call Builder.function with a well-typed Function value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder type(ChatCompletionChunk.Choice.Delta.ToolCall.Type type)
The type of the tool. Currently, only
function
is supported.
-
type
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder type(JsonField<ChatCompletionChunk.Choice.Delta.ToolCall.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionChunk.Choice.Delta.ToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionChunk.Choice.Delta.ToolCall build()
Returns an immutable instance of ToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.index()
-
-
-
-