> ## 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.

# Evaluators and releases

Agent evaluators use a model and rubric. Code evaluators run Python. For scoring, return numeric `score` and string `label` and `reason`. For classification, return strings `result`, `label` and `reason`.

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 evaluator create

Create an agent or Python evaluator and obtain its latest version ID and revision.

| Option | Description | Default |
| - | - | - |
| `--model-api-key-file <path\|->` | Required for agent evaluators. Supply a private UTF-8 key file or stdin. The CLI applies Base64 encoding | — |
| `--model-base-url <value>` | Required HTTP(S) model service base URL for agent evaluators | — |
| `--model-name <value>` | Required model name or endpoint ID for agent evaluators | — |
| `--code <value>` | Python source for a Code evaluator. The evaluate parameters must match the input definitions | — |
| `--evaluation-choices <json\|@file\|->` | Agent evaluator choices with distinct label and definition fields. Score mode also requires a numeric score for each choice | — |
| `--evaluation-criteria <value>` | Agent evaluator rubric. Reference inputs with expressions such as `{{answer}}` | — |
| `--evaluation-type <value>` | Select scoring or classification for either evaluator type `ScoreEvaluation`, `ClassEvaluation` | — |
| `--evaluator-type <value>` | Agent or Python evaluator. Its type is fixed at creation `Agent`, `Code` | — |
| `--input-variables <json\|@file\|->` | Ordered JSON array with name, a JSON Schema property object and boolean required for each input. Pass an empty array for no inputs | — |
| `--description <value>` | Resource or version description | — |
| `--dry-run [boolean]` | Ask the service to preflight the request without writing the resource | false |
| `--name <value>` | Resource name. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval evaluator create --json --workspace-id "$WORKSPACE_ID" --name answer-check \
  --evaluator-type Code --evaluation-type ScoreEvaluation \
  --input-variables '[{"name":"answer","property":{"type":"string"},"required":true}]' \
  --code "$(cat judge.py)"
```

## eval evaluator version save

Save the full configuration against the current Latest revision. On conflict, read the latest revision and reconcile your changes.

| Option | Description | Default |
| - | - | - |
| `--model-api-key-file <path\|->` | Required for agent evaluators. Supply a private UTF-8 key file or stdin. The CLI applies Base64 encoding | — |
| `--model-base-url <value>` | Required HTTP(S) model service base URL for agent evaluators | — |
| `--model-name <value>` | Required model name or endpoint ID for agent evaluators | — |
| `--code <value>` | Python source for a Code evaluator. The evaluate parameters must match the input definitions | — |
| `--evaluation-choices <json\|@file\|->` | Agent evaluator choices with distinct label and definition fields. Score mode also requires a numeric score for each choice | — |
| `--evaluation-criteria <value>` | Agent evaluator rubric. Reference inputs with expressions such as `{{answer}}` | — |
| `--evaluation-type <value>` | Select scoring or classification for either evaluator type `ScoreEvaluation`, `ClassEvaluation` | — |
| `--evaluator-type <value>` | Agent or Python evaluator. Its type is fixed at creation `Agent`, `Code` | — |
| `--input-variables <json\|@file\|->` | Ordered JSON array with name, a JSON Schema property object and boolean required for each input. Pass an empty array for no inputs | — |
| `--description <value>` | Resource or version description | — |
| `--dry-run [boolean]` | Ask the service to preflight the request without writing the resource | false |
| `--evaluator-id <value>` | Evaluator ID. Required. | — |
| `--expected-revision <value>` | Exact current content revision of Latest. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval evaluator version save --json --workspace-id "$WORKSPACE_ID" \
  --evaluator-id "$EVALUATOR_ID" --expected-revision "$LATEST_REVISION" --evaluator-type Code \
  --evaluation-type ScoreEvaluation \
  --input-variables '[{"name":"answer","property":{"type":"string"},"required":true}]' \
  --code "$(cat judge.py)"
```

## eval evaluator delete

Delete an evaluator. Use `--dry-run` first to verify that the service would accept the request.

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

| Option | Description | Default |
| - | - | - |
| `--dry-run [boolean]` | Ask the service to preflight the request without writing the resource | false |
| `--evaluator-id <value>` | Evaluator 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 evaluator delete --json --workspace-id "$WORKSPACE_ID" \
  --evaluator-id "$EVALUATOR_ID" --dry-run
```

## eval evaluator version list

Page through evaluator versions. Values within a filter use OR. Separate filters use AND.

| Option | Description | Default |
| - | - | - |
| `--evaluator-id <value>` | Evaluator ID. Required. | — |
| `--version-ids <value...>` | Filter by version IDs | — |
| `--version-types <value...>` | Filter by version types `Latest`, `Release` | — |
| `--version-names <value...>` | Filter by version names | — |
| `--publish-statuses <value...>` | Filter by publication statuses `Unpublished`, `Published` | — |
| `--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 evaluator version list --json --workspace-id "$WORKSPACE_ID" \
  --evaluator-id "$EVALUATOR_ID" --version-types Release --publish-statuses Published
```

## eval evaluator list

List evaluators by name, type or status.

| Option | Description | Default |
| - | - | - |
| `--names <value...>` | Filter by resource names | — |
| `--evaluator-ids <value...>` | List of evaluator IDs | — |
| `--evaluator-types <value...>` | Filter by evaluator types `Agent`, `Code` | — |
| `--evaluation-types <value...>` | Filter by evaluation types `ScoreEvaluation`, `ClassEvaluation` | — |
| `--statuses <value...>` | Filter by status `Draft`, `Normal` | — |
| `--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 evaluator list --json --workspace-id "$WORKSPACE_ID" --evaluator-types Code
```

## eval evaluator version publish

Publish Latest as a fixed release for experiments. Save `Result.EvaluatorVersion.VersionId`.

| Option | Description | Default |
| - | - | - |
| `--description <value>` | Resource or version description | Latest description |
| `--dry-run [boolean]` | Ask the service to preflight the request without writing the resource | false |
| `--evaluator-id <value>` | Evaluator ID. Required. | — |
| `--expected-revision <value>` | Exact current content revision of Latest. Required. | — |
| `--version-name <value>` | Name of the published release. Required. | — |
| `--workspace-id <value>` | Authorized evaluation workspace ID. Required. | — |

```bash theme={null}
agentkit eval evaluator version publish --json --workspace-id "$WORKSPACE_ID" \
  --evaluator-id "$EVALUATOR_ID" --expected-revision "$LATEST_REVISION" \
  --version-name judge-v1
```

## Score with a model

Prepare a model endpoint, base URL and a private file containing the raw UTF-8 API key. The CLI reads and encodes the key. Creation saves the model settings, which experiments use through the published release. This example preflights a rubric.

```bash theme={null}
agentkit eval evaluator create --workspace-id "$WORKSPACE_ID" --name answer-relevance \
  --evaluator-type Agent --evaluation-type ScoreEvaluation \
  --input-variables '[{"name":"answer","property":{"type":"string"},"required":true}]' \
  --evaluation-criteria 'Score whether {{answer}} names a city.' \
  --evaluation-choices '[{"label":"City","definition":"Names a city","score":1},{"label":"Other","definition":"No city named","score":0}]' \
  --model-name "$MODEL_NAME" --model-base-url "$MODEL_BASE_URL" --model-api-key-file "$MODEL_API_KEY_FILE" --dry-run --json
```


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