# Interface AvailableModelsCacheOptions

interface AvailableModelsCacheOptions {
sources: readonly AvailableModelsSource[];
ttlMs?: number;
staleTtlMs?: number;
now?: () => number;
}

- Defined in packages/nexus-agents/src/config/available-models-cache.ts:63

##### Index

### Properties

sources
ttlMs?
staleTtlMs?
now?

## Properties

### `Readonly` sources

sources: readonly AvailableModelsSource[]

- Defined in packages/nexus-agents/src/config/available-models-cache.ts:64

### `Optional` `Readonly` ttlMs

ttlMs?: number

Freshness TTL (ms). Defaults to 5 minutes.

- Defined in packages/nexus-agents/src/config/available-models-cache.ts:66

### `Optional` `Readonly` staleTtlMs

staleTtlMs?: number

Beyond this, callers block on the next refresh. Defaults to 25 minutes.

- Defined in packages/nexus-agents/src/config/available-models-cache.ts:68

### `Optional` `Readonly` now

now?: () => number

Override `Date.now` for tests.

- Defined in packages/nexus-agents/src/config/available-models-cache.ts:70