LeonardTool class abstract

A single tool exposed by an LeonardExtension.

The name is a bare token (no .); the host registry prefixes it with the extension's namespace, producing the fully-qualified name <namespace>.<name> exposed to the agent.

Constructors

LeonardTool()
const

Properties

description → String
Human-readable description surfaced to the agent.
no setter
hashCode → int
The hash code for this object.
no setterinherited
inputSchema → JsonSchema
JSON Schema fragment for this tool's input.
no setter
name → String
Bare token (^[a-z][a-z0-9_]*$ recommended). Must not contain ..
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(Map<String, Object?> args) → Future<ToolResult>
Invoke the tool with args.
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