# Interface AvailableModelsSource

One adapter (CLI or API) that can be asked what models it currently has. Exists so this cache doesn't have to know about IModelAdapter vs ICliAdapter — both can adapt themselves to this minimal surface.

interface AvailableModelsSource {
name: string;
providerHint?: string;
listModels(): Promise<readonly { id: string }[]>;
}

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

##### Index

### Properties

name
providerHint?

### Methods

listModels

## Properties

### `Readonly` name

name: string

Stable, human-readable identifier — e.g. `claude`, `gateway-openrouter`.

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

### `Optional` `Readonly` providerHint

providerHint?: string

Optional vendor-family hint — `anthropic` / `openai` / `google` / etc. Used to pre-tag entries when the source's own model ids don't carry a `provider/` prefix (Anthropic API, Google API).

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

## Methods

### listModels

- listModels(): Promise<readonly { id: string }[]>

  Probe the underlying surface for currently available models.

  #### Returns Promise<readonly { id: string }[]>

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