agentskit.js

throttle

Auto-generated API reference for throttle.

Function: throttle()

throttle(sink, windowMs, now?): CostAlertSink

Defined in: observability/src/cost-guard-advanced.ts:451

Throttle wrapper β€” at most one alert per (tenant, window, type) per windowMs. Wrap any sink to bound emit rate.

#Parameters

#sink

CostAlertSink

#windowMs

number

#now?

() => number

#Returns

CostAlertSink

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page