GenerateTool class
Annotation to mark a class as a Tool that should be generated.
Example:
@GenerateTool(description: 'Get weather information for a city')
class GetWeatherModel {
final String city;
final int? days;
}
Constructors
- GenerateTool({String? name, String? description})
-
const
Properties
- description → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name of the tool. If not provided, it will be generated from the class name
by converting PascalCase to snake_case (e.g., GetWeatherModel -> get_weather_model).
final
- 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