Package com.anthropic.models.messages
Class ToolChoiceAny.Builder
-
- All Implemented Interfaces:
public final class ToolChoiceAny.BuilderA builder for ToolChoiceAny.
-
-
Method Summary
Modifier and Type Method Description final ToolChoiceAny.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ToolChoiceAny.BuilderdisableParallelToolUse(Boolean disableParallelToolUse)Whether to disable parallel tool use. final ToolChoiceAny.BuilderdisableParallelToolUse(JsonField<Boolean> disableParallelToolUse)Sets Builder.disableParallelToolUse to an arbitrary JSON value. final ToolChoiceAny.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceAny.BuilderputAdditionalProperty(String key, JsonValue value)final ToolChoiceAny.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ToolChoiceAny.BuilderremoveAdditionalProperty(String key)final ToolChoiceAny.BuilderremoveAllAdditionalProperties(Set<String> keys)final ToolChoiceAnybuild()Returns an immutable instance of ToolChoiceAny. -
-
Method Detail
-
type
final ToolChoiceAny.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("any")This method is primarily for setting the field to an undocumented or not yet supported value.
-
disableParallelToolUse
final ToolChoiceAny.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 ToolChoiceAny.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 ToolChoiceAny.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolChoiceAny.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolChoiceAny.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolChoiceAny.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolChoiceAny.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolChoiceAny build()
Returns an immutable instance of ToolChoiceAny.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-