ToolExecutor typedef

ToolExecutor = Future<Map<String, dynamic>> Function(Map<String, dynamic> args)

Executor signature for a tool call.

Receives the JSON-decoded arguments map (parsed from ToolCall.argumentsJson) and returns a JSON-encodable result map. The framework re-encodes the result into ToolResult.resultJson.

Implementation

typedef ToolExecutor =
    Future<Map<String, dynamic>> Function(Map<String, dynamic> args);