ResponseToolChoiceAllowedTools class
Model can only call the specified tools.
This allows specifying a list of allowed tools (1-128) and an optional mode.
- Inheritance
-
- Object
- ResponseToolChoice
- ResponseToolChoiceAllowedTools
- Annotations
-
- @immutable
Constructors
-
ResponseToolChoiceAllowedTools({required List<
SpecificToolChoice> tools, ToolChoiceMode? mode}) -
Creates a ResponseToolChoiceAllowedTools.
const
-
ResponseToolChoiceAllowedTools.fromJson(Map<
String, dynamic> json) -
Creates a ResponseToolChoiceAllowedTools from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- mode → ToolChoiceMode?
-
The tool choice mode.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tools
→ List<
SpecificToolChoice> -
The list of allowed tools.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override