Skip to main content

integrations.tool_policy

Local hook policy helpers for tool-call authorization demos.

evaluate_tool_request

def evaluate_tool_request(request_payload: dict[str, Any]) -> dict[str, Any]

Simple built-in authorization policy for demo hook flows.

Rules:

  • deny when the reason suggests destructive intent
  • delegated_allow for low-risk requests
  • approval_required otherwise