What policies can do
- Budgets
- Session budget: cap total spend across the process lifetime
- Run budget: cap total spend per run
- Action budgets: cap spend for a given action name across calls
- Allow/Deny lists
- Deny specific action names
- Allowlist mode: only permit a specific set of action names
- Rate limits
- Per-action windows:
max_countperwindow_seconds
- Per-action windows:
BudgetExceededErrorPolicyViolationError
Local configuration
You can configure policies in code or viacallguard.yaml.
See:
Remote policy sync (platform)
If you enable remote policy sync, the SDK downloads policies from:- global (
scope="global") - agent (
scope="agent",target_id=<agent_id>) - run (
scope="run",target_id=<run_id>)
