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

Method consumed_tokens

core/src/orchestration/workflow_budget.rs:80–82  ·  view source on GitHub ↗

Total tokens recorded so far.

(&self)

Source from the content-addressed store, hash-verified

78
79 /// Total tokens recorded so far.
80 pub fn consumed_tokens(&self) -> u64 {
81 self.consumed_tokens.load(Ordering::SeqCst)
82 }
83
84 /// A point-in-time view of the ledger.
85 pub fn snapshot(&self) -> BudgetSnapshot {

Callers 1

snapshotMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected