Class ChatCompletionMessageToolCall.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionMessageToolCall.Builder
A builder for ChatCompletionMessageToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatCompletionMessageToolCall.Builder id(String id)
The ID of the tool call.
-
id
final ChatCompletionMessageToolCall.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 ChatCompletionMessageToolCall.Builder function(ChatCompletionMessageToolCall.Function function)
The function that the model called.
-
function
final ChatCompletionMessageToolCall.Builder function(JsonField<ChatCompletionMessageToolCall.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 ChatCompletionMessageToolCall.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("function")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionMessageToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionMessageToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionMessageToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionMessageToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionMessageToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionMessageToolCall build()
Returns an immutable instance of ChatCompletionMessageToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .function()
-
-
-
-