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 serverserverName: 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
namewithargumentsand answers the model. A refusal is an answer withisError: 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