MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_budget_guard.mjs

File test_budget_guard.mjs

sdk/node/test_budget_guard.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Smoke test for the Node SDK BudgetGuard bridge.
2//
3// Verifies that a JS guard whose checkBeforeLlm returns
4// { decision: 'deny', ... } aborts session.send before the LLM is

Callers

nothing calls this directly

Calls 4

createMethod · 0.45
sessionMethod · 0.45
sendMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected