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

Method with_inner

core/src/orchestration/workflow_budget.rs:74–77  ·  view source on GitHub ↗

Delegate `check`/`record` to `inner` in addition to maintaining the shared ledger — lets a host's existing per-tenant guard keep working while the workflow gets its aggregate cap.

(mut self, inner: Arc<dyn BudgetGuard>)

Source from the content-addressed store, hash-verified

72 /// shared ledger — lets a host's existing per-tenant guard keep working
73 /// while the workflow gets its aggregate cap.
74 pub fn with_inner(mut self, inner: Arc<dyn BudgetGuard>) -> Self {
75 self.inner = Some(inner);
76 self
77 }
78
79 /// Total tokens recorded so far.
80 pub fn consumed_tokens(&self) -> u64 {

Callers 2

delegates_to_inner_guardFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected