declarations property

  1. @override
List<ToolDescriptor> get declarations
override

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(),
    ),
];