Core Features
Policy Engine
Define and enforce governance policies for AI agents using declarative YAML configuration.
Overview
The Policy Engine evaluates every action against your defined rules before execution. Policies can ALLOW, BLOCK, WARN, or require APPROVAL for specific actions.
Permit the action
Reject the action
Allow but flag
Require human review
Policy Configuration
Define policies using human-readable YAML:
Checking Policies
Check content before your agent acts on it with POST /api/v1/govern. There is no separate policy-check endpoint and no client.policy namespace in any SDK; the decision comes back in action: allow, redact (use output), deny or block.
From Python, the same endpoint over HTTP with a Bearer token:
Dynamic Policy Evaluation
Policies can use dynamic conditions based on context:
Pro Tip: Test policies before deploying to production: create the policy with is_active: false, send representative content to POST /api/v1/govern from a staging API key, and read the receipts before you activate it.