Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 765 Bytes

File metadata and controls

34 lines (22 loc) · 765 Bytes

Configuration

AuthorityLayer exposes three runtime controls:

Budget

Use budget to halt a run after a configured spend threshold.

budget: { dailyUSD: 25 }

Loop Guard

Use loopGuard to stop repeated tool execution within a single run.

loopGuard: { maxToolCallsPerRun: 12 }

Tool Throttle

Use toolThrottle to enforce per-minute limits for tool usage.

toolThrottle: { maxCallsPerMinute: 30 }

Operational Notes

  • Limits are opt-in and only apply when the corresponding configuration block is provided.
  • wrap() defines the runtime boundary that is measured.
  • tool() is the tracked execution path for tool calls and rate limits.
  • recordSpend() applies explicit provider cost data to budget enforcement.