# Interface RecordOutcomeParams

Parameters for recording an outcome.

interface RecordOutcomeParams {
routingDecisionId: string;
success: boolean;
qualityScore: number;
durationMs: number;
tokenUsage: number;
retryCount?: number;
traceId?: string;
errorMessage?: string;
}

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:27

##### Index

### Properties

routingDecisionId
success
qualityScore
durationMs
tokenUsage
retryCount?
traceId?
errorMessage?

## Properties

### `Readonly` routingDecisionId

routingDecisionId: string

Routing decision ID

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:29

### `Readonly` success

success: boolean

Whether the task succeeded

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:31

### `Readonly` qualityScore

qualityScore: number

Quality score (0-1)

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:33

### `Readonly` durationMs

durationMs: number

Execution duration in milliseconds

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:35

### `Readonly` tokenUsage

tokenUsage: number

Token usage

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:37

### `Optional` `Readonly` retryCount

retryCount?: number

Number of retries (default: 0)

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:39

### `Optional` `Readonly` traceId

traceId?: string

Trace ID for correlation

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:41

### `Optional` `Readonly` errorMessage

errorMessage?: string

Error message for failed outcomes (sanitized before persistence)

- Defined in packages/nexus-agents/src/learning/feedback-integration-types.ts:43