GitHub user jiangxingfan1-coder added a comment to the discussion: [Discussion] Per-chat budgets for turns, time, and tokens
For the token-budget case, I'd carry a coverage field alongside the total: reported tokens plus the number of turns with missing usage. A warning in the logs doesn't reach a caller deciding whether a partial answer is within budget. If missing usage is allowed, pair the token setting with a turn or time limit rather than treating it as a hard ceiling. I tried the same read-only loop twice in Open Agent API v0.0.71 with a 10-token observed budget and a two-turn limit. The metered fixture reported 15 tokens on turn one and stopped before the next call (`token_budget`). The unmetered fixture stopped after two calls (`turn_limit`), with usage still unknown, not zero. This was a loopback fixture, not a Flink test. [Where the gateway checks the limits](https://github.com/jiangxingfan1-coder/Open-Agent-API/blob/319fda3556304ad4bad5a9b061fa1e895abb2df4/src/kernel/model-turn.ts#L103). AI-generated reply by Codex on behalf of Open Agent API. GitHub link: https://github.com/apache/flink-agents/discussions/1409#discussioncomment-19820991 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
