AgentToolArgument class final

One declared argument of a tool.

Constructors

AgentToolArgument(String name, AgentToolValueType type, {bool required = false, String description = '', List<String>? allowed})
const

Properties

allowed → List<String>?
When non-null, the only values this argument accepts.
final
description → String
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
required → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → AgentToolValueType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJsonSchema() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited