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

# Experiments Methods

> HoneyHive TypeScript Data Plane SDK Experiments namespace reference

#### compareRunEvents

> **compareRunEvents**(`request`: [`GetExperimentCompareEventsRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentCompareEventsRequest)): `Promise`\<[`GetExperimentCompareEventsResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentCompareEventsResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Compare events between two experiment runs

Retrieve and compare events between two experiment runs for detailed analysis

#### compareRuns

> **compareRuns**(`request`: [`GetExperimentComparisonRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentComparisonRequest)): `Promise`\<[`GetExperimentComparisonResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentComparisonResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Retrieve experiment comparison

Compare metrics and results between two experiment runs in the project.

#### createRun

> **createRun**(`request`: [`CreateRunRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/CreateRunRequest)): `Promise`\<[`CreateRunResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/CreateRunResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Create a new evaluation run

Create a new experiment run to track an evaluation against a dataset.

#### deleteRun

> **deleteRun**(`request`: [`DeleteRunRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/DeleteRunRequest)): `Promise`\<[`DeleteRunResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/DeleteRunResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Delete an evaluation run

Permanently delete an experiment run by its run ID.

#### getRun

> **getRun**(`request`: [`GetRunRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunRequest)): `Promise`\<[`GetRunResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Get details of an evaluation run

Retrieve the full details of a single experiment run by its run ID.

#### getRunMetrics

> **getRunMetrics**(`request`: [`GetExperimentRunMetricsRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentRunMetricsRequest)): `Promise`\<[`GetExperimentRunMetricsResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentRunMetricsResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Get event metrics for an experiment run

Retrieve event metrics from ClickHouse for a specific experiment run

#### getRunSchema

> **getRunSchema**(`request`: [`GetRunSchemaRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunSchemaRequest)): `Promise`\<[`GetRunSchemaResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunSchemaResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Get events schema for a single experiment run

Retrieve the events schema (fields, datasets, mappings) for a single experiment run.

#### getRunsSchema

> **getRunsSchema**(`request?`: [`GetRunsSchemaRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunsSchemaRequest)): `Promise`\<[`GetRunsSchemaResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunsSchemaResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Get events schema across all experiment runs in a project

Retrieve the aggregated events schema (fields, datasets, mappings) across all experiment runs in the project.

#### getSummary

> **getSummary**(`request`: [`GetExperimentSummaryRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentSummaryRequest)): `Promise`\<[`GetExperimentSummaryResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetExperimentSummaryResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Retrieve experiment summary

Compute evaluation summary for an experiment run: pass/fail results, metric aggregations, per-datapoint results, event details, and the experiment run object.

#### listRuns

> **listRuns**(`request?`: [`GetRunsRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunsRequest)): `Promise`\<[`GetRunsResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/GetRunsResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Get a list of evaluation runs

List experiment runs with optional filtering by dataset, status, name, date range, and specific run IDs. Results are paginated and sortable.

#### updateRun

> **updateRun**(`request`: [`UpdateRunRequest`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/UpdateRunRequest)): `Promise`\<[`UpdateRunResponse`](https://docs.honeyhive.ai/v2/sdk-reference/typescript/ref/experiments/UpdateRunResponse)>

**Accepted keys:** [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) with `project_id`; [Project API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#key-types) without `project_id` (deprecated)

Update an evaluation run

Update fields on an existing experiment run such as name, status, metadata, or results.


## Related topics

- [Comparing Experiments](https://docs.honeyhive.ai/v2/evaluation/comparing_evals.md)
- [Experiments](https://docs.honeyhive.ai/v2/cli-reference/ref/experiments.md)
- [AI Experiments and Evaluations in HoneyHive](https://docs.honeyhive.ai/v2/evaluation/introduction.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.