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

# Experiments, runs and reports

An experiment can run multiple times. Each run has its own ID for inspecting cases, stopping execution and exporting a report.

First select [an evaluation workspace](https://docs.veadk.xyz/productions/agentkit-cli/archives/0.57.4/en/commands/eval/workspace.md) and set `WORKSPACE_ID` to its ID. Use resource IDs and revisions returned in that workspace. For the complete example files and variable assignments, see [Run an evaluation and export its report](https://docs.veadk.xyz/productions/agentkit-cli/archives/0.57.4/en/workflows/evaluation.md).

## eval experiment create

Bind fixed dataset and evaluator releases to an experiment. Data mode scores existing answers. Inference mode calls a validated target first.

| Option | Description | Default |
| - | - | - |
| `--dataset-id <value>` | Dataset ID in the workspace | — |
| `--dataset-version-id <value>` | VersionId of a fixed dataset release | — |
| `--description <value>` | Resource or version description | — |
| `--evaluation-mode <value>` | Data scores existing answers. Inference calls the target and scores its output `Data`, `Inference` | — |
| `--evaluators <json\|@file\|->` | Published evaluator bindings with EvaluatorId, VersionId and FieldMappings. Map inference output from \$.experiment\_output | — |
| `--input-path <value>` | Path in the HTTP request body for the input. The root is \$ | — |
| `--max-concurrency <number>` | Inference only, from 1 to 20 | 5 |
| `--name <value>` | Resource name | — |
| `--space-id <value>` | Required only for A2AAgent. Use the source platform space ID | — |
| `--target-agent-id <value>` | Validated source ID for inference, or the saved target ID for custom HTTP | — |
| `--target-type <value>` | Target type for inference `A2AAgent`, `RuntimeAgent`, `CustomHttpAgent` | — |
| `--target-version <value>` | Exact platform resource version. For a runtime use a canonical decimal i32 string, including 0. Omit for CustomHttpAgent | — |
| `--target-input-field <value>` | Inference only. Case-sensitive dataset field to pass as target input | input |
| `--run-now <boolean>` | Use true to start a run at creation, false to create only the experiment. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment create --json --workspace-id "$WORKSPACE_ID" --name answer-quality \
  --evaluation-mode Data --dataset-id "$DATASET_ID" \
  --dataset-version-id "$DATASET_RELEASE_ID" --evaluators @evaluators.json --run-now false
```

## eval experiment delete

Delete an experiment.

> [!WARNING]
>
> A live deletion removes the selected resource or cases in the workspace. Verify the IDs and revisions before submitting.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |
| `-y, --yes` | Skip the deletion prompt. Required for unattended deletion, except during a supported dry run | false |

```bash theme={null}
agentkit eval experiment delete --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --yes
```

## eval experiment get

Read experiment settings and resource references.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment get --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID"
```

## eval experiment list

Find experiments by status or keyword, one page at a time.

| Option | Description | Default |
| - | - | - |
| `--experiment-ids <value...>` | Match experiment IDs exactly | — |
| `--keyword <value>` | Keyword filter | — |
| `--status <value>` | Filter by exact status `Pending`, `Collecting`, `Running`, `Stopping`, `Succeeded`, `Failed`, `Stopped` | — |
| `--page-number <number>` | One-based page number | 1 |
| `--page-size <number>` | Results per page from 1 to 100 | 10 |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment list --json --workspace-id "$WORKSPACE_ID" --page-number 1
```

## eval experiment run start

Start an asynchronous run. Use `Result.Run.RunId` to follow that run.

> [!WARNING]
>
> This operation can invoke a target or consume evaluation resources, which may incur charges.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run start --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID"
```

## eval experiment run stop

Request a stop. If the run is Stopping, keep checking its report until it reaches a terminal state.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--run-id <value>` | Run ID from Result.Run.RunId in the start response. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run stop --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --run-id "$RUN_ID"
```

## eval experiment run list

List the runs of an experiment.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--page-number <number>` | One-based page number | 1 |
| `--page-size <number>` | Results per page from 1 to 100 | 10 |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run list --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID"
```

## eval experiment run case get

Inspect one case, its input, actual output and evaluator results.

| Option | Description | Default |
| - | - | - |
| `--case-id <value>` | CaseId from the case list for the same run. Required. | — |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--run-id <value>` | Run ID from Result.Run.RunId in the start response. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run case get --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --run-id "$RUN_ID" --case-id "$CASE_ID"
```

## eval experiment run case list

Page through cases in a run, optionally filtering for failures.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--status <value>` | Filter by exact status `NotStarted`, `Pending`, `Running`, `Succeeded`, `Failed`, `Stopped` | — |
| `--page-number <number>` | One-based page number | 1 |
| `--page-size <number>` | Results per page from 1 to 100 | 10 |
| `--run-id <value>` | Run ID from Result.Run.RunId in the start response. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run case list --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --run-id "$RUN_ID" --status Failed
```

## eval experiment run report

Read run status and aggregates. Terminal states are Succeeded, Failed and Stopped. A final report also requires `Result.IsPartial=false`.

| Option | Description | Default |
| - | - | - |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--run-id <value>` | Run ID from Result.Run.RunId in the start response. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run report --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --run-id "$RUN_ID"
```

## eval experiment run export-report

Generate a new CSV snapshot. Omit filters to export the whole run. Check `Result.IsPartial`, download before `ExpiresAt` and verify the file size and SHA256 digest.

| Option | Description | Default |
| - | - | - |
| `--client-token <value>` | Required export token of 1–64 printable ASCII characters without spaces. Reusing a token still creates a new file. Required. | — |
| `--experiment-id <value>` | Experiment ID. Required. | — |
| `--case-duration-gt-seconds <number>` | Exclusive lower duration bound in seconds, up to three fractional digits | — |
| `--case-duration-lt-seconds <number>` | Exclusive upper duration bound in seconds, up to three fractional digits | — |
| `--case-statuses <value...>` | Filter by case execution status, including failures without scores `NotStarted`, `Pending`, `Running`, `Succeeded`, `Failed`, `Stopped` | — |
| `--conditions <json\|@file\|->` | Per-evaluator filter conditions, mutually exclusive with simple evaluator ID, score and label filters | — |
| `--detail-mode <value>` | Evaluator details to include in the export `SelectedEvaluators`, `MatchedOnly` | SelectedEvaluators |
| `--evaluator-ids <value...>` | List of evaluator IDs | — |
| `--labels <value...>` | Match output labels exactly | — |
| `--match <value>` | Match any or all supplied conditions `Any`, `All` | All |
| `--score-gte <number>` | Inclusive lower score bound. Select a single evaluator on multi-evaluator runs | — |
| `--score-lte <number>` | Inclusive upper score bound. Select a single evaluator on multi-evaluator runs | — |
| `--run-id <value>` | Run ID from Result.Run.RunId in the start response. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval experiment run export-report --json --workspace-id "$WORKSPACE_ID" \
  --experiment-id "$EXPERIMENT_ID" --run-id "$RUN_ID" --client-token export-answers \
  --case-statuses Failed
```

## Evaluate a live target

Validate the target in the same workspace and confirm that `Result.Validation.Status` is `Passed`. Use the returned `SourceReference.Id` and `SourceReference.Version` for the runtime target. In the earlier evaluators.json, change the answer’s SourceField to `$.experiment_output` and save it as inference-evaluators.json. The dataset release must include an inference input field, named `input` by default.

```bash theme={null}
agentkit eval experiment create --workspace-id "$WORKSPACE_ID" --name live-answers \
  --evaluation-mode Inference --target-type RuntimeAgent --target-agent-id "$RUNTIME_ID" \
  --target-version "$RUNTIME_VERSION" --target-input-field input --dataset-id "$DATASET_ID" \
  --dataset-version-id "$DATASET_RELEASE_ID" --evaluators @inference-evaluators.json --run-now false --json
```


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