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