AgentSdkToolSet.fromBinding constructor
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.
Implementation
factory AgentSdkToolSet.fromBinding(
LlmToolBinding binding, {
required String serverName,
}) => AgentSdkToolSet(
serverName: serverName,
declarations: [
for (final tool in binding.declarations)
(
name: tool.name,
description: tool.description,
inputSchema: tool.parametersSchema,
),
],
call: binding.call,
);