budget_guard
Live MID-RUN budget check (fast, no LLM). Send whatever counters you have and get an advisory on context %, token burn, cost burn, step budget, and off-task drift - with concrete suggested_actions and the projected cost of NOT acting. Call it every few steps to catch a runaway BEFORE you hit a limit. Advisory only (never blocks). Params: step, max_steps, tokens_used, token_budget, cost_used_usd, cost_budget_usd, context_used, context_window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | No | ||
| task | No | ||
| format | No | 'summary' adds a one-line relayable answer (for chat/Telegram agents); 'summary_only' returns just that line. Default full. | |
| max_steps | No | ||
| tokens_used | No | ||
| context_used | No | ||
| token_budget | No | ||
| cost_used_usd | No | ||
| context_window | No | ||
| recent_actions | No | ||
| cost_budget_usd | No |