ChatToolChoice class sealed
Controls how the model responds to tool calls.
Constructors
- ChatToolChoice.forced({required String name})
-
The model is forced to to call the specified tool.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- auto → const ChatToolChoiceAuto
- The model can pick between responding to the end-user or calling a tool.
- none → const ChatToolChoiceNone
- The model does not call a tool, and responds to the end-user.
- required → const ChatToolChoiceRequired
- The model must call at least one tool, but doesn’t force a particular tool.