# Interface ExperimentDefinition

Experiment definition.

interface ExperimentDefinition {
id: string;
name: string;
description: string;
status: ExperimentStatus;
variants: readonly ExperimentVariant[];
startedAt: string | null;
endedAt: string | null;
minSampleSize: number;
primaryMetric: "successRate" | "avgReward" | "avgLatency";
minimumDetectableEffect: number;
tags: readonly string[];
}

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

##### Index

### Properties

id
name
description
status
variants
startedAt
endedAt
minSampleSize
primaryMetric
minimumDetectableEffect
tags

## Properties

### `Readonly` id

id: string

Unique experiment identifier

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

### `Readonly` name

name: string

Human-readable name

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

### `Readonly` description

description: string

Description of the experiment's hypothesis

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

### `Readonly` status

status: ExperimentStatus

Current status

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

### `Readonly` variants

variants: readonly ExperimentVariant[]

Experiment variants

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

### `Readonly` startedAt

startedAt: string | null

Start timestamp (ISO 8601)

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

### `Readonly` endedAt

endedAt: string | null

End timestamp (ISO 8601)

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

### `Readonly` minSampleSize

minSampleSize: number

Minimum sample size per variant

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

### `Readonly` primaryMetric

primaryMetric: "successRate" | "avgReward" | "avgLatency"

Primary metric to optimize

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

### `Readonly` minimumDetectableEffect

minimumDetectableEffect: number

Minimum detectable effect size

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

### `Readonly` tags

tags: readonly string[]

Tags for categorization

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