nativeDeclarations method
The tool set as native provider tool declarations —
{name, description, input_schema}, the tool-use shape of the Anthropic
Messages API. Generated from registry every time.
Implementation
List<Map<String, Object?>> nativeDeclarations() => [
for (final tool in registry.tools)
{
'name': tool.name,
'description': tool.summary,
'input_schema': tool.arguments.toJsonSchema(),
},
];