# Interface AdapterRateLimiterConfig

Configuration options for the RateLimiter.

interface AdapterRateLimiterConfig {
capacity: number;
refillRate: number;
refillInterval?: number;
}

- Defined in packages/nexus-agents/src/adapters/rate-limiter.ts:17

##### Index

### Properties

capacity
refillRate
refillInterval?

## Properties

### `Readonly` capacity

capacity: number

Maximum number of tokens the bucket can hold. This is also the initial token count.

- Defined in packages/nexus-agents/src/adapters/rate-limiter.ts:22

### `Readonly` refillRate

refillRate: number

Number of tokens added to the bucket per second.

- Defined in packages/nexus-agents/src/adapters/rate-limiter.ts:27

### `Optional` `Readonly` refillInterval

refillInterval?: number

Interval in milliseconds for automatic refill checks. Only used when waiting for tokens. Default: 100ms.

- Defined in packages/nexus-agents/src/adapters/rate-limiter.ts:33