MCPcopy Create free account
hub / github.com/AI45Lab/Code / is_exhausted

Method is_exhausted

core/src/orchestration/workflow_budget.rs:49–51  ·  view source on GitHub ↗

Whether a configured cap has been reached.

(&self)

Source from the content-addressed store, hash-verified

47
48 /// Whether a configured cap has been reached.
49 pub fn is_exhausted(&self) -> bool {
50 matches!(self.limit_tokens, Some(limit) if self.consumed_tokens >= limit)
51 }
52}
53
54/// A shared, workflow-scoped token ledger that also acts as a [`BudgetGuard`].

Callers 3

phaseMethod · 0.80
check_before_llmMethod · 0.80
check_before_toolMethod · 0.80

Calls 1

snapshotMethod · 0.45

Tested by

no test coverage detected