# Interface ExperimentOutcome

Recorded outcome for an experiment.

interface ExperimentOutcome {
experimentId: string;
variantId: string;
traceId: string;
success: boolean;
reward: number;
latencyMs: number;
timestamp: string;
metadata?: Record<string, unknown>;
}

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:65

##### Index

### Properties

experimentId
variantId
traceId
success
reward
latencyMs
timestamp
metadata?

## Properties

### `Readonly` experimentId

experimentId: string

Experiment ID

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:67

### `Readonly` variantId

variantId: string

Assigned variant ID

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:69

### `Readonly` traceId

traceId: string

Routing decision trace ID

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:71

### `Readonly` success

success: boolean

Whether the task succeeded

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:73

### `Readonly` reward

reward: number

Reward value

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:75

### `Readonly` latencyMs

latencyMs: number

Latency in milliseconds

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:77

### `Readonly` timestamp

timestamp: string

Timestamp (ISO 8601)

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:79

### `Optional` `Readonly` metadata

metadata?: Record<string, unknown>

Additional metadata

- Defined in packages/nexus-agents/src/learning/ab-test-types.ts:81