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