onFunctionCall method
Future<FunctionCallOutput>
onFunctionCall(
- ResponsesSessionController controller,
- FunctionCall call
Implementation
Future<FunctionCallOutput> onFunctionCall(ResponsesSessionController controller, FunctionCall call) async {
try {
final result = await execute(controller, jsonDecode(call.arguments));
return call.output(result);
} catch (e) {
return call.output(translateError(e));
}
}