# Interface TaskOutcome

Task outcome for a routing decision.

interface TaskOutcome {
routingDecisionId: string;
timestamp: string;
outcomeClass: OutcomeClass;
success: boolean;
qualityScore: number;
durationMs: number;
tokenUsage: number;
errorMessage?: string;
qualitySignals: QualitySignals;
traceId: string;
}

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:113

##### Index

### Properties

routingDecisionId
timestamp
outcomeClass
success
qualityScore
durationMs
tokenUsage
errorMessage?
qualitySignals
traceId

## Properties

### `Readonly` routingDecisionId

routingDecisionId: string

Reference to the routing decision

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:115

### `Readonly` timestamp

timestamp: string

Timestamp of outcome

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:117

### `Readonly` outcomeClass

outcomeClass: OutcomeClass

Outcome classification

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:119

### `Readonly` success

success: boolean

Overall success indicator

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:121

### `Readonly` qualityScore

qualityScore: number

Quality score (0-1)

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:123

### `Readonly` durationMs

durationMs: number

Execution duration in milliseconds

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:125

### `Readonly` tokenUsage

tokenUsage: number

Token usage

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:127

### `Optional` `Readonly` errorMessage

errorMessage?: string

Error message if failed

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:129

### `Readonly` qualitySignals

qualitySignals: QualitySignals

Extracted quality signals

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:131

### `Readonly` traceId

traceId: string

Trace ID for correlation

- Defined in packages/nexus-agents/src/learning/outcome-feedback-types.ts:133