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
-
ChatToolChoice.fromMap(Map<
String, dynamic> map) -
Converts a map to a ChatToolChoice. Requires at least a type hint.
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
-
toMap(
) → Map< String, dynamic> - Converts this ChatToolChoice to a map along with a type hint for deserialization.
-
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.