GenerateToolArgument class

Annotation to customize a field's behavior when generating ToolArgument.

Example:

@GenerateTool()
class GetWeatherModel {
  @GenerateToolArgument(description: 'The city name', isOptional: false)
  final String city;

  @GenerateToolArgument(description: 'Number of days to forecast', isOptional: true)
  final int? days;
}

Constructors

GenerateToolArgument({String? description, bool? isOptional, Map<String, dynamic>? constraints, bool exclude = false})
const

Properties

constraints → Map<String, dynamic>?
final
description → String?
final
exclude → bool
final
hashCode → int
The hash code for this object.
no setterinherited
isOptional → bool?
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