toggleFunctionState method
Future<AppResponse<TriggerResponse<ToggleStatusResponse> > >
toggleFunctionState({
- required FunctionCall functionCall,
Enables or disables a specific function for the AI model.
This is useful for dynamically changing AI capabilities based on user permissions or application state.
Implementation
Future<AppResponse<TriggerResponse<ToggleStatusResponse>>>
toggleFunctionState({required FunctionCall functionCall}) {
final payload = TriggerParse(
trigger: Trigger.toggleStatus,
functionCall: functionCall,
);
return _sendTrigger<ToggleStatusResponse>(
payload: payload,
fromJsonT: (json) => ToggleStatusResponse.fromJson(json),
);
}