declarations property
The tool set as the contract declares tools — one descriptor per tool in registry, generated every time.
Implementation
@override
List<ToolDescriptor> get declarations => [
for (final tool in registry.tools)
ToolDescriptor(
name: tool.name,
description: tool.summary,
parametersSchema: tool.arguments.toJsonSchema(),
),
];