Tool class final
Tool details that the model may use to generate a response.
A Tool
is a piece of code that enables the system to interact with
external systems to perform an action, or set of actions, outside of
knowledge and scope of the model.
Constructors
-
Tool({List<
FunctionDeclaration> ? functionDeclarations})
Properties
-
functionDeclarations
→ List<
FunctionDeclaration> ? -
A list of
FunctionDeclarations
available to the model that can be used for function calling.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
-
toJson(
) → Map< String, Object> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited