Dashboard

Governance

Define and enforce safety policies, tool restrictions, and human-in-the-loop approval gates for your agents. Ensure AI behavior stays within boundaries.

What is Governance?

Governance policies are rules that control what agents can and cannot do. They are enforced automatically before every tool call and LLM interaction, ensuring your agents stay safe in production.

Create a Policy

Create Governance Policybash
curl -X POST http://localhost:8000/api/v1/governance/policies \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "name": "production-safety",
    "agent_id": "AGENT_ID",
    "rules": [
      { "type": "token_limit", "max_tokens_per_run": 5000 },
      { "type": "tool_restriction", "blocked_tools": ["file-delete", "email-send"] },
      { "type": "approval_gate", "requires_approval_for": ["dangerous"] },
      { "type": "content_filter", "block_patterns": ["credit card", "SSN"] }
    ],
    "enabled": true
  }'

Policy Types

TypeDescription
token_limitMax tokens per run to control costs and prevent runaway generations
tool_restrictionBlock specific tools from being called
approval_gateRequire human approval before certain actions
content_filterBlock outputs containing sensitive patterns
escalationAuto-escalate to a human agent under certain conditions

Always add governance for production agents!

At minimum, set a token limit and block dangerous tools. This prevents unexpected costs and unsafe behavior.