AgentSdkToolSet class final

The tools a request offers, reduced to what a transport needs to relay a call.

Constructors

AgentSdkToolSet({required String serverName, required List<AgentSdkToolDeclaration> declarations, required Future<LlmToolAnswer> call(String name, Map<String, Object?> arguments)})
const
AgentSdkToolSet.fromBinding(LlmToolBinding binding, {required String serverName})
The tool set of binding, declared on the server serverName: its declarations, each call dispatched back into it — so whatever gates and records the binding applies to a call apply here, and nothing here can declare a tool the binding does not hold.
factory

Properties

call → Future<LlmToolAnswer> Function(String name, Map<String, Object?> arguments)
Runs the call name with arguments and answers the model. A refusal is an answer with isError: true, never a throw.
final
declarations → List<AgentSdkToolDeclaration>
Every tool the model may call, generated from the registry.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverName → String
The in-process MCP server the tools are declared on; the model sees each as mcp__<serverName>__<tool> (agentSdkMcpToolName).
final

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