AutoToolChoice class
Model can use any tool, and may elect to use none. This is the default behavior and gives the model flexibility.
Maps to:
- OpenAI:
{"type": "auto"}
- Anthropic:
"auto"
or{"type": "auto", "disable_parallel_tool_use": true}
- xAI:
{"type": "auto"}
- Inheritance
-
- Object
- ToolChoice
- AutoToolChoice
Constructors
- AutoToolChoice.new({bool? disableParallelToolUse})
-
const
Properties
- disableParallelToolUse → bool?
-
Whether to disable parallel tool use (Anthropic only)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAnthropicJson(
) → String -
Convert to Anthropic format
override
-
toJson(
) → Map< String, dynamic> -
override
-
toOpenAIJson(
) → Map< String, dynamic> -
Convert to OpenAI format
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXAIJson(
) → Map< String, dynamic> -
Convert to xAI format (OpenAI-compatible)
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited