praval.hitl.policy
Policy helpers for HITL approval gating.
Functions
|
Return operator-facing reason for approval requests. |
|
Determine whether a tool call requires human approval. |
|
Return normalized risk level from a tool definition. |
- praval.hitl.policy.requires_approval(tool_definition, default=False)[source]
Determine whether a tool call requires human approval.
- Return type:
bool- Parameters:
tool_definition (Dict[str, Any])
default (bool)