> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ExperimentResponseType

***

# Type Alias: ExperimentResponseType

```ts theme={null}
type ExperimentResponseType = object;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

ExperimentResponse

## Properties

### ~~aggregateFeedback?~~

```ts theme={null}
optional aggregateFeedback: object;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Aggregate Feedback

Aggregate feedback information related to the experiment (traces only)

#### Index Signature

```ts theme={null}
[key: string]: FeedbackAggregate
```

#### Deprecated

***

### ~~aggregateMetrics?~~

```ts theme={null}
optional aggregateMetrics: object;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Aggregate Metrics

#### Index Signature

```ts theme={null}
[key: string]: unknown
```

#### Deprecated

Use `metricAggregates` instead, which returns full statistical aggregates
(avg, min, max, p50, p90, p95, p99) keyed by scorer UUID for scorer-backed metrics,
or raw string for system metrics (e.g. 'cost', 'duration\_ns').

***

### createdAt?

```ts theme={null}
optional createdAt: string;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Created

Timestamp of the experiment's creation

***

### createdBy?

```ts theme={null}
optional createdBy: string | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Created By

***

### createdByUser?

```ts theme={null}
optional createdByUser: UserInfo | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### dataset?

```ts theme={null}
optional dataset: ExperimentDataset | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### getMetricAggregate()?

```ts theme={null}
optional getMetricAggregate: (metric: string) => Promise<MetricAggregates | undefined>;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Look up aggregate statistics for a metric by any identifier.
Populated by the SDK via `_enrichExperimentResponse`.

Accepts (in priority order):

1. Scorer UUID string — direct lookup in `metricAggregates`
2. GalileoMetrics value / human-readable label (e.g. "Correctness")
3. Legacy metric\_key\_alias (e.g. "correctness") — fallback after label miss

#### Parameters

##### metric

`string`

#### Returns

`Promise`\<`MetricAggregates` | `undefined`>

***

### id

```ts theme={null}
id: string;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

ID

Galileo ID of the experiment

***

### metricAggregates?

```ts theme={null}
optional metricAggregates:
  | {
[key: string]: MetricAggregates;
}
  | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Metric Aggregates

Structured aggregate metrics keyed by scorer UUID for scorer-backed metrics, or raw
string for system metrics (e.g. 'cost', 'duration\_ns'). Alias for
`structuredAggregateMetrics` — use this field instead of the deprecated `aggregateMetrics`.
Populated by the SDK from `structuredAggregateMetrics`.

***

### name?

```ts theme={null}
optional name: string;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Name

Name of the experiment

***

### numSpans?

```ts theme={null}
optional numSpans: number | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Num Spans

***

### numTraces?

```ts theme={null}
optional numTraces: number | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Num Traces

***

### playground?

```ts theme={null}
optional playground: ExperimentPlayground | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### playgroundId?

```ts theme={null}
optional playgroundId: string | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Playground Id

***

### projectId

```ts theme={null}
projectId: string;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Project ID

Galileo ID of the project associated with this experiment

***

### prompt?

```ts theme={null}
optional prompt: ExperimentPrompt | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### promptModel?

```ts theme={null}
optional promptModel: string | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Prompt Model

***

### promptRunSettings?

```ts theme={null}
optional promptRunSettings: PromptRunSettingsType | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### rank?

```ts theme={null}
optional rank: number | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Rank

***

### rankingScore?

```ts theme={null}
optional rankingScore: number | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Ranking Score

***

### ratingAggregates?

```ts theme={null}
optional ratingAggregates: object;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Rating Aggregates

Annotation aggregates keyed by template ID and root type

#### Index Signature

```ts theme={null}
[key: string]: object
```

***

### status?

```ts theme={null}
optional status: ExperimentStatus;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### structuredAggregateMetrics?

```ts theme={null}
optional structuredAggregateMetrics:
  | {
[key: string]: MetricAggregates;
}
  | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Structured Aggregate Metrics

Structured aggregate metrics keyed by raw metric name with full statistical aggregates. Present only when use\_clickhouse\_run\_aggregates flag is enabled.

***

### tags?

```ts theme={null}
optional tags: object;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Tags

#### Index Signature

```ts theme={null}
[key: string]: RunTagDB[]
```

***

### taskType

```ts theme={null}
taskType: TaskType;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

***

### updatedAt?

```ts theme={null}
optional updatedAt: string | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Last Updated

Timestamp of the trace or span's last update

***

### winner?

```ts theme={null}
optional winner: boolean | null;
```

Defined in: [src/types/new-api.types.ts](https://github.com/rungalileo/galileo-js/blob/main/src/types/new-api.types.ts)

Winner
