Skip to main content

require_approval

Function
This function is defined in the approval module.
Decorator to mark a tool as requiring human approval.

Signature

Parameters

RiskLevel
default:"'high'"
No description available.

Returns

Any
The result of the operation.

Uses

  • get_approval_registry
  • reg.add_requirement
  • add
  • is_already_approved
  • func
  • is_yaml_approved
  • mark_approved
  • is_env_auto_approve
  • is_async_context
  • RuntimeError

Source

View on GitHub

praisonaiagents/approval/__init__.py at line 201