Skip to content
Eval Commands

Eval Commands

Last updated:

Use camber eval commands to test a Camber agent against a set of examples from your terminal.

An evaluation has three parts:

  • Evaluation: a named test suite tied to one agent under test.
  • Examples: inputs sent to the agent, each paired with an evaluator that decides whether the agent’s output passes.
  • Experiments: runs of every example in the evaluation. A scoring experiment reports a score; a tuning experiment also tunes the agent toward a target score.

Before you begin, install the Camber CLI and log in.

These commands require the Evaluations feature to be enabled for your account.

Quick start

# 1. Create an evaluation for an agent
camber eval create --name "Math eval" --agent my-agent

# 2. Add examples (use the evaluation ID from step 1)
camber eval example add <EVALUATION_ID> --input "What is 2+2?" --evaluator exact --reference 4

# 3. Start an experiment
camber eval experiment start <EVALUATION_ID> --mode scoring --repetitions 3

# 4. Check progress and results
camber eval experiment get <EVALUATION_ID> <EXPERIMENT_ID>
camber eval experiment results <EVALUATION_ID> <EXPERIMENT_ID>

Command summary

CommandDescription
camber eval listList evaluations in a workspace
camber eval createCreate an evaluation
camber eval get EVALUATION_IDShow an evaluation
camber eval rename EVALUATION_IDRename an evaluation
camber eval delete EVALUATION_IDDelete an evaluation
camber eval example list EVALUATION_IDList the examples of an evaluation
camber eval example add EVALUATION_IDAdd an example
camber eval example update EVALUATION_ID EXAMPLE_IDReplace an example
camber eval example delete EVALUATION_ID EXAMPLE_IDDelete an example
camber eval experiment start EVALUATION_IDStart a scoring or tuning experiment
camber eval experiment list EVALUATION_IDList the experiments of an evaluation
camber eval experiment get EVALUATION_ID EXPERIMENT_IDShow an experiment’s status and score
camber eval experiment results EVALUATION_ID EXPERIMENT_IDShow per-example results
camber eval experiment stop EVALUATION_ID EXPERIMENT_IDStop a running experiment

Evaluation, example, and experiment IDs are UUIDs. The CLI rejects a malformed ID before sending any request:

$ camber eval get not-a-uuid
Error: invalid evaluation ID: "not-a-uuid" is not a valid UUID

Manage evaluations

Create an evaluation

camber eval create --name "Math eval" --agent my-agent
Evaluation created successfully.
ID: 3a6d424f-3b83-45ab-972f-55546d6b368e
Name: Math eval
Agent: @research-team.my-agent
FlagRequiredDescription
--nameYesEvaluation name
--agentYesAgent under test, as alias or @owner.alias
--teamNoWorkspace unique name. Defaults to the selected workspace
--output jsonNoPrint the response as JSON

The agent is given by alias:

  • A bare alias, such as my-agent, refers to an agent owned by the workspace.
  • Use @owner.alias, such as @research-team.my-agent, for an agent of another owner.
# Agent owned by the selected workspace
camber eval create --name "Alias eval" --agent my-agent

# Agent referenced by owner and alias, in a specific workspace
camber eval create --name "Tagged eval" --agent @research-team.my-agent --team research-team

List evaluations

camber eval list
ID                                     Name                Agent                     Created
--                                     ----                -----                     -------
85aad99e-8e42-4679-a780-1b32e6789d9a   Math eval           @research-team.my-agent   2026-11-25T06:32:55Z
c56a1263-6088-42e4-98b4-e98359a3db4a   Tagged eval         @research-team.my-agent   2026-11-25T06:32:55Z

Page 1 of 1 | Total Evaluations: 2
FlagDefaultDescription
--teamSelected workspaceWorkspace unique name
--searchCase-insensitive match on evaluation name
--page1Page number, must be greater than 0
--size10Evaluations per page, must be greater than 0
--output jsonPrint the response as JSON

Filter by name:

camber eval list --team research-team --search math

Get an evaluation

camber eval get <EVALUATION_ID>
ID: 419f49b6-fb5e-4b0a-ba0d-6aa45a3157f4
Name: Math eval
Agent: @research-team.my-agent

Rename an evaluation

camber eval rename <EVALUATION_ID> --name "Arithmetic eval"
Evaluation renamed successfully.
ID: ebf1795d-9235-4a8e-b1fc-24a4c12e020c
Name: Arithmetic eval
Agent: @research-team.my-agent

Delete an evaluation

camber eval delete <EVALUATION_ID>

The command asks for confirmation. Pass --force (or -f) to skip the prompt:

camber eval delete <EVALUATION_ID> --force
Deleting an evaluation stops any running experiments first. This cannot be undone.

Manage examples

Each example has an --input sent to the agent and an --evaluator that scores the agent’s output. Each evaluator takes its own flags.

Evaluators

EvaluatorFlagsPasses when
exact--referenceThe output matches the reference exactly
number--reference, --tolerance (both numeric)The output is within the tolerance of the reference
contains--value (repeatable), --orderedThe output contains every value, in order if --ordered is set
python--stash-uriA Python script stored in Stash scores the output
judge--rubricA model judges the output against the rubric

Flag rules are checked locally before the request is sent:

  • Flags that do not belong to the chosen evaluator are rejected.
  • --reference and --tolerance must be numbers for the number evaluator.
  • --value must be given at least once for contains, and cannot be empty.
  • --stash-uri must start with stash://, point to a .py file, and cannot contain ...

Add an example

camber eval example add <EVALUATION_ID> \
  --input "What is 2+2?" --evaluator exact --reference 4
Example added successfully.
ID: 98acaa79-1977-4681-95de-f6c17ad192f9
Evaluator: exact
Input: What is 2+2?
Config: {"reference":"4"}

One example per evaluator:

# exact: output must equal the reference
camber eval example add <EVALUATION_ID> --input "Capital of France?" --evaluator exact --reference Paris

# number: output must be within tolerance of the reference
camber eval example add <EVALUATION_ID> --input "What is pi to 2 decimals?" \
  --evaluator number --reference 3.14 --tolerance 0.01

# contains: output must contain every value; add --ordered to require them in order
camber eval example add <EVALUATION_ID> --input "Name the colors of the French flag" \
  --evaluator contains --value blue --value white --value red --ordered

# python: a scoring script stored in Stash
camber eval example add <EVALUATION_ID> --input "Summarize the report" \
  --evaluator python --stash-uri stash://research-team/evals/score_summary.py

# judge: a model scores the output against a rubric
camber eval example add <EVALUATION_ID> --input "Reply to an angry customer" \
  --evaluator judge --rubric "Must be polite and offer a concrete next step"

List examples

camber eval example list <EVALUATION_ID>
ID                                     Evaluator           Input               Config
--                                     ---------           -----               ------
148e18ed-6a55-4c32-86be-cd2730f8bd95   exact               Exact?              {"reference":"4.61"}
eaf6c6f5-74d8-4120-8823-ea6dd5096db1   number              Number?             {"reference":"4","tolerance":"0.01"}
cc3c1f22-8542-4249-9365-7379312840d2   contains            Colors?             {"values":["red","blue"],"ordered":false}
1973fbb4-ad45-4632-88f6-fc0c086a482a   judge               Judged?             {"rubric":"Must be polite"}

Page 1 of 1 | Total Examples: 4

Supports --page, --size, and --output json.

Update an example

update replaces the whole example, so --input and --evaluator are both required, along with the evaluator’s flags:

camber eval example update <EVALUATION_ID> <EXAMPLE_ID> \
  --input "What is 3+3?" --evaluator exact --reference 6
Example updated successfully.
ID: 16f549b6-5319-47bb-9bec-4b1ac640d9c8
Evaluator: exact
Input: What is 3+3?
Config: {"reference":"6"}

Once an experiment has started with an example, the original is kept so past results stay intact. The edit is saved as a new example with a new ID, and the CLI tells you so:

Example updated successfully.
An experiment already started with the original example, so it was kept
and this edit was saved as a new example.
ID: <NEW_EXAMPLE_ID>

Delete an example

camber eval example delete <EVALUATION_ID> <EXAMPLE_ID>

The command asks for confirmation. Pass --force (or -f) to skip the prompt.

Run experiments

Experiment modes

ModeWhat it doesRequired flags
scoringRuns every example and reports a score--mode scoring
tuningRuns the examples and tunes the agent across iterations until it reaches the target score or the iteration limit--mode tuning, --target-score, --max-iterations

Only one experiment per evaluation runs at a time.

Start an experiment

camber eval experiment start <EVALUATION_ID> --mode scoring --repetitions 3
camber eval experiment start <EVALUATION_ID> --mode tuning --target-score 0.9 --max-iterations 4
Experiment started successfully.
ID: 7d3b23d5-2148-444a-83b1-4ed69e18dc55
Pod: c31248a3-18eb-45e0-993c-deafe12d4e48

Check progress with:
  camber eval experiment get <EVALUATION_ID> 7d3b23d5-2148-444a-83b1-4ed69e18dc55
FlagDefaultDescription
--modeRequired. scoring or tuning
--repetitions1Times to run each example, from 1 to 10
--target-scoreScore to tune toward, from 0 to 1. Required for tuning
--max-iterationsMaximum tuning iterations, from 1 to 10. Required for tuning
--output jsonPrint the response as JSON

The command returns as soon as the experiment starts. There is no streaming output, so poll with camber eval experiment get.

List experiments

camber eval experiment list <EVALUATION_ID>
ID                                     Status              Mode                Repetitions         Created
--                                     ------              ----                -----------         -------
7d3b23d5-2148-444a-83b1-4ed69e18dc55   running             tuning              1                   2026-11-25T08:16:10Z

Page 1 of 1 | Total Experiments: 1

Supports --page, --size, and --output json.

Check an experiment

camber eval experiment get <EVALUATION_ID> <EXPERIMENT_ID>
ID: 7d3b23d5-2148-444a-83b1-4ed69e18dc55
Status: running
Mode: tuning
Repetitions: 1
Iteration: 1
Score: -
Target score: 0.9
Pod: c31248a3-18eb-45e0-993c-deafe12d4e48

Score shows - until a score is available. Target score appears only for tuning experiments.

View results

camber eval experiment results <EVALUATION_ID> <EXPERIMENT_ID>

Results show one row per example, with a column per repetition:

#   Example                                Evaluator   Input          Rep 1   Rep 2   Rep 3
-   -------                                ---------   -----          -----   -----   -----
1   98acaa79-1977-4681-95de-f6c17ad192f9   exact       What is 2+2?   pass    pass    -
2   eaf6c6f5-74d8-4120-8823-ea6dd5096db1   number      Number?        pass    fail    -

Page 1 of 1 | Total Examples: 2

Each cell is pass, fail, or - when that repetition has not reported yet, so you can run results while the experiment is still running.

FlagDefaultDescription
--iterationLatest iteration with a runTuning iteration to show, must be greater than 0
--page1Page number
--size10Examples per page
--output jsonPrint the response as JSON

For a tuning experiment, compare iterations:

camber eval experiment results <EVALUATION_ID> <EXPERIMENT_ID> --iteration 1
camber eval experiment results <EVALUATION_ID> <EXPERIMENT_ID> --iteration 2

Stop an experiment

camber eval experiment stop <EVALUATION_ID> <EXPERIMENT_ID>
Experiment 7d3b23d5-2148-444a-83b1-4ed69e18dc55 stopped successfully.

JSON output

All commands except delete and stop accept --output json for scripting:

camber eval list --output json
camber eval experiment get <EVALUATION_ID> <EXPERIMENT_ID> --output json

Troubleshooting

ErrorCause
API error: code=404, message=Workspace not foundThe --team value is not a workspace you can access. Check camber team list.
API error: code=404, message=Agent not foundNo agent with that alias exists for the owner.
API error: code=400, message=agent must be "alias" or "@owner.alias"The --agent value is malformed, for example @owner without an alias.
--rubric does not apply to the exact evaluator (it takes --reference)A flag was passed that the chosen evaluator does not use.
invalid evaluator "...": must be one of exact, number, contains, python, judgeUnknown --evaluator value.
--target-score is required for a tuning experimentTuning experiments need both --target-score and --max-iterations.
invalid repetitions value: 99. Must be between 1 and 10--repetitions and --max-iterations accept 1 to 10; --target-score accepts 0 to 1.
code=404, message=user not foundThe API key is invalid. Log in again or check CAMBER_API_KEY.