# Interface RoutingDecisionRecord

Record of a routing decision.

interface RoutingDecisionRecord {
id: string;
timestamp: Date;
taskId: string;
taskType: string;
taskProfile: TaskProfileSummary;
selectedCli: "claude" | "gemini" | "codex" | "opencode";
confidence: number;
alternatives: readonly ("claude" | "gemini" | "codex" | "opencode")[];
reason: string;
budgetConstraint?: BudgetConstraint;
}

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:69

##### Index

### Properties

id
timestamp
taskId
taskType
taskProfile
selectedCli
confidence
alternatives
reason
budgetConstraint?

## Properties

### `Readonly` id

id: string

Unique decision ID

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:71

### `Readonly` timestamp

timestamp: Date

When the decision was made

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:73

### `Readonly` taskId

taskId: string

Associated task ID

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:75

### `Readonly` taskType

taskType: string

Task type classification

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:77

### `Readonly` taskProfile

taskProfile: TaskProfileSummary

Summary of task profile

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:79

### `Readonly` selectedCli

selectedCli: "claude" | "gemini" | "codex" | "opencode"

CLI selected for execution

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:81

### `Readonly` confidence

confidence: number

Confidence score (0-1)

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:83

### `Readonly` alternatives

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

Alternative CLIs considered

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:85

### `Readonly` reason

reason: string

Reasoning for selection

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:87

### `Optional` `Readonly` budgetConstraint

budgetConstraint?: BudgetConstraint

Budget constraint applied (if any)

- Defined in packages/nexus-agents/src/cli-adapters/routing-memory-types.ts:89