costGuard
Auto-generated API reference for costGuard.
Function: costGuard()
costGuard(
options):Observer&object
Defined in: observability/src/cost-guard.ts:213
A cost-guarded observer. Tracks token usage from llm:end events,
computes running cost incrementally per active model, aborts the run
when the budget is exceeded.