require_approval
Function
This function is defined in the approval module.Decorator to mark a tool as requiring human approval.
Signature
Parameters
The risk level of the tool (“critical”, “high”, “medium”, “low”)
Returns
The result of the operation.
Uses
APPROVAL_REQUIRED_TOOLS.addis_already_approvedfuncis_yaml_approvedmark_approvedis_env_auto_approveasyncio.get_running_loopRuntimeErrorasyncio.runrequest_approval
Source
View on GitHub
praisonaiagents/approval.py at line 303
