# Interface StoredRoutingDecision

Stored routing decision record.

interface StoredRoutingDecision {
id: string;
traceId: string;
timestamp: string;
routerType: RouterType;
selectedModel: "claude" | "gemini" | "codex" | "opencode";
alternativeModels: readonly ("claude" | "gemini" | "codex" | "opencode")[];
confidence: number;
reason: string;
taskProfile: Record<string, unknown>;
requestId?: string;
}

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:48

##### Index

### Properties

id
traceId
timestamp
routerType
selectedModel
alternativeModels
confidence
reason
taskProfile
requestId?

## Properties

### `Readonly` id

id: string

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:49

### `Readonly` traceId

traceId: string

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:50

### `Readonly` timestamp

timestamp: string

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:51

### `Readonly` routerType

routerType: RouterType

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:52

### `Readonly` selectedModel

selectedModel: "claude" | "gemini" | "codex" | "opencode"

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:53

### `Readonly` alternativeModels

alternativeModels: readonly ("claude" | "gemini" | "codex" | "opencode")[]

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:54

### `Readonly` confidence

confidence: number

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:55

### `Readonly` reason

reason: string

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:56

### `Readonly` taskProfile

taskProfile: Record<string, unknown>

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:57

### `Optional` `Readonly` requestId

requestId?: string

- Defined in packages/nexus-agents/src/learning/outcome-storage-types.ts:58