Class ToolChoiceTool.Builder
-
- All Implemented Interfaces:
public final class ToolChoiceTool.BuilderA builder for ToolChoiceTool.
-
-
Method Summary
-
-
Method Detail
-
name
final ToolChoiceTool.Builder name(String name)
The name of the tool to use.
-
name
final ToolChoiceTool.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ToolChoiceTool.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("tool")This method is primarily for setting the field to an undocumented or not yet supported value.
-
disableParallelToolUse
final ToolChoiceTool.Builder disableParallelToolUse(Boolean disableParallelToolUse)
Whether to disable parallel tool use.
Defaults to
false. If set totrue, the model will output exactly one tool use.
-
disableParallelToolUse
final ToolChoiceTool.Builder disableParallelToolUse(JsonField<Boolean> disableParallelToolUse)
Sets Builder.disableParallelToolUse to an arbitrary JSON value.
You should usually call Builder.disableParallelToolUse with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ToolChoiceTool.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolChoiceTool.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolChoiceTool.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolChoiceTool.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolChoiceTool.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolChoiceTool build()
Returns an immutable instance of ToolChoiceTool.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name()
-
-
-
-