Ai Rate Limiter
constructor(name: String, maxRequests: Int = DEFAULT_MAX_REQUESTS, windowMs: Long = DEFAULT_WINDOW_MS, clock: () -> Long = System::currentTimeMillis)(source)
Parameters
name
Human-readable label used in log messages
max Requests
Maximum number of requests allowed per window
window Ms
Window duration in milliseconds