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

Method snapshot

core/src/orchestration/workflow_budget.rs:85–90  ·  view source on GitHub ↗

A point-in-time view of the ledger.

(&self)

Source from the content-addressed store, hash-verified

83
84 /// A point-in-time view of the ledger.
85 pub fn snapshot(&self) -> BudgetSnapshot {
86 BudgetSnapshot {
87 consumed_tokens: self.consumed_tokens(),
88 limit_tokens: self.limit_tokens,
89 }
90 }
91
92 /// Whether the configured cap has been reached.
93 pub fn is_exhausted(&self) -> bool {

Callers 7

run_snapshotMethod · 0.45
current_runMethod · 0.45
budget_snapshotMethod · 0.45
phaseMethod · 0.45
is_exhaustedMethod · 0.45

Calls 1

consumed_tokensMethod · 0.80