ToolCall class final

One call of a project tool: what an agent passed, under the name it called.

One object rather than the arguments alone, so a tool's body can be handed more in a minor release (a way to report progress, to hear that the call was cancelled, the project's root) without a second parameter, which would break every tool written against 1.0. ProjectToolRun and OfferedTool.run take one.

Implementers

Constructors

ToolCall({required String name, required Map<String, Object?> arguments})
const

Properties

arguments → Map<String, Object?>
What the agent passed, already held to the tool's input schema.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name the tool was called by, as published: wind.gust for a plugin's tool, level.list for a server's.
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