call method
Implementation
Future<String> call(
AgentEngine engine,
AIChatMessageToolCall toolCall,
) async {
try {
return await handleCall(
engine: engine,
result: await mapToResult(toolCall.arguments),
);
} catch (e) {
error("Failed to handle tool $name");
error(e);
rethrow;
}
}