Class ChatCompletionMessageFunctionToolCall.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionMessageFunctionToolCall.Builder
A builder for ChatCompletionMessageFunctionToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatCompletionMessageFunctionToolCall.Builder id(String id)
The ID of the tool call.
-
id
final ChatCompletionMessageFunctionToolCall.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 ChatCompletionMessageFunctionToolCall.Builder function(ChatCompletionMessageFunctionToolCall.Function function)
The function that the model called.
-
function
final ChatCompletionMessageFunctionToolCall.Builder function(JsonField<ChatCompletionMessageFunctionToolCall.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 ChatCompletionMessageFunctionToolCall.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 ChatCompletionMessageFunctionToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionMessageFunctionToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionMessageFunctionToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionMessageFunctionToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionMessageFunctionToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionMessageFunctionToolCall build()
Returns an immutable instance of ChatCompletionMessageFunctionToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .function()
-
-
-
-