eval-format.md
attributes
| source_path | references/eval-format.md |
|---|---|
| source_sha256 | 1406f22313a22d482c020017abf8912c6eed97413c4eea4ba5866c73dbc2cf88 |
| source_url | https://github.com/docker/skills/blob/ce4693b88722334625780ca8e9d54201b2d96f6d/skills/docker-agent-deploy/references/eval-format.md |
| supporting_skill_id | 40165 |
| upstream_revision | ce4693b88722334625780ca8e9d54201b2d96f6d |
Eval session format and CLI flags
Eval directory layout
my-agent/
├── agent.yaml
└── evals/
├── <uuid>.json # one eval session
└── results/ # auto-created output
├── <run-name>.json
├── <run-name>.log
├── <run-name>.db
└── <run-name>-sessions.json
Eval session JSON schema
Use assets/eval-session-example.json (relative to the skill root) for the
complete example. The shape below is only a structural skeleton, not an
eval to run:
{
"id": "<session UUID>",
"title": "<scenario title>",
"messages": [],
"evals": {}
}
messagesholds the recorded conversation. A user entry nests the message
asmessage.message; assistant entries also setmessage.agent_name.
Recorded tool calls live inmessage.message.tool_calls.evalsholds scoring criteria and working-directory setup; see the fields
below. Keep the concrete conversation and assertions in the asset rather
than maintaining another copy here.
evals object fields
| Field | Type | Description |
|---|---|---|
relevance |
string[] | Statements that must be true about the response; scored by the LLM judge |
assertions |
object[] | Deterministic checks: {name, type, value} |
size |
string | Expected response size: S, M, L, XL |
working_dir |
string | Subdirectory under evals/working_dirs/ mounted as the container's working dir |
setup |
string | Shell script run in the container before the agent executes |
Assertion types
contains, not_contains, equals, starts_with, ends_with, regex,
cost_threshold (dollar amount ceiling), tool_called.
CLI flags
| Flag | Default | Description |
|---|---|---|
-c, --concurrency |
16 |
Concurrent evaluation runs |
--judge-model |
anthropic/claude-opus-5 |
Model for relevance scoring |
--output |
<eval-dir>/results |
Results/logs/session-db directory |
--only |
(all) | Only run evals matching these filename patterns |
--base-image |
(default) | Custom base image for eval containers |
--container-runtime |
docker |
Runtime executable (e.g. podman) |
--keep-containers |
false |
Keep containers after evaluation for inspection |
-e, --env |
(none) | Extra env vars to forward into the container |
--env-from-file |
(none) | Set env vars in the container from a KEY=VALUE file |
--repeat |
1 |
Repeat each eval k times; also unlocks pass@k/pass^k |
--baseline |
(none) | Prior run JSON to regress-test against |
--regression-tolerance |
0 |
Aggregate-rate drop allowed before --baseline fails |
Source: https://docs.docker.com/ai/docker-agent/features/evaluation/.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.