# Interface StoredTaskOutcome

Stored task outcome record.

interface StoredTaskOutcome {
routingDecisionId: string;
timestamp: string;
outcomeClass: OutcomeClass;
success: boolean;
qualityScore: number;
durationMs: number;
tokenUsage: number;
errorMessage?: string;
}

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

##### Index

### Properties

routingDecisionId
timestamp
outcomeClass
success
qualityScore
durationMs
tokenUsage
errorMessage?

## Properties

### `Readonly` routingDecisionId

routingDecisionId: string

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

### `Readonly` timestamp

timestamp: string

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

### `Readonly` outcomeClass

outcomeClass: OutcomeClass

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

### `Readonly` success

success: boolean

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

### `Readonly` qualityScore

qualityScore: number

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

### `Readonly` durationMs

durationMs: number

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

### `Readonly` tokenUsage

tokenUsage: number

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

### `Optional` `Readonly` errorMessage

errorMessage?: string

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