# Interface TaskOutcomeRecord

Record of a task outcome.

interface TaskOutcomeRecord {
decisionId: string;
success: boolean;
qualityScore: number;
durationMs: number;
tokenUsage: number;
retryCount: number;
errorCategory?: string;
}

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

##### Index

### Properties

decisionId
success
qualityScore
durationMs
tokenUsage
retryCount
errorCategory?

## Properties

### `Readonly` decisionId

decisionId: string

Associated decision ID

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

### `Readonly` success

success: boolean

Whether task succeeded

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

### `Readonly` qualityScore

qualityScore: number

Quality score (0-1)

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

### `Readonly` durationMs

durationMs: number

Execution duration in milliseconds

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

### `Readonly` tokenUsage

tokenUsage: number

Token usage

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

### `Readonly` retryCount

retryCount: number

Number of retries

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

### `Optional` `Readonly` errorCategory

errorCategory?: string

Error category (if failed)

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