ToolChoice class sealed

Controls which tool the model calls.

Implementers

Constructors

ToolChoice.auto()
Model decides whether to call a tool.
const
factory
ToolChoice.function(String name)
Model must call a specific tool.
factory
ToolChoice.none()
Model will not call any tool.
const
factory
ToolChoice.required()
Model must call at least one tool.
const
factory

Properties

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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited