# Interface RateLimiterState

Current state of the rate limiter.

interface RateLimiterState {
tokens: number;
capacity: number;
nextTokenMs: number;
}

- Defined in packages/nexus-agents/src/mcp/middleware/rate-limiter.ts:31

##### Index

### Properties

tokens
capacity
nextTokenMs

## Properties

### `Readonly` tokens

tokens: number

Current number of available tokens

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

### `Readonly` capacity

capacity: number

Capacity of the bucket

- Defined in packages/nexus-agents/src/mcp/middleware/rate-limiter.ts:35

### `Readonly` nextTokenMs

nextTokenMs: number

Time until next token is available (0 if tokens available)

- Defined in packages/nexus-agents/src/mcp/middleware/rate-limiter.ts:37