Prevent rogue agent cascades with client-side spend and rate limits. Evaluated locally with zero network latency.
Agent hint
Use for max_cost_per_minute, max_cost_per_session, on_budget_exceeded throw/warn/webhook.
In scope
Out of scope
| Python | Node.js | Type | Description |
|---|---|---|---|
| max_cost_per_minute | maxCostPerMinute | float | Max USD spend per rolling 60s. |
| max_cost_per_session | maxCostPerSession | float | Max USD per workflow_id. |
| max_requests_per_minute | maxRequestsPerMinute | integer | Request count cap per minute. |
| max_context_tokens | maxContextTokens | integer | Estimated input token cap. |
| on_budget_exceeded | onBudgetExceeded | string | throw | warn | webhook |
| webhook_url | webhookUrl | string | Webhook destination when configured. |
| dry_run | dryRun | boolean | Evaluate without blocking. |