callFunction method

Future<AppResponse<TriggerResponse<FunctionCallResponse>>> callFunction({
  1. required FunctionCall functionCall,
})

Implementation

Future<AppResponse<TriggerResponse<FunctionCallResponse>>> callFunction({
  required FunctionCall functionCall,
}) {
  final payload = TriggerParse(
    trigger: Trigger.callTool,
    functionCall: functionCall,
  );
  return _sendTrigger<FunctionCallResponse>(
    payload: payload,
    fromJsonT: (json) => FunctionCallResponse.fromJson(json),
  );
}