call method

  1. @override
Future<ToolReturn> call(
  1. FunctionCall functionCall
)
override

Implementation

@override
Future<ToolReturn> call(FunctionCall functionCall) async {
  Map<String, dynamic> result = await _callJsonRpcHttp(
    functionCall.id,
    functionCall.name,
    functionCall.arguments,
  );
  return ToolReturn(id: functionCall.id, result: result);
}