eval_suites
Create, update, list, and re-sync agent evaluation suites, import test scenarios, and diff repo spec changes against live DB rows before applying them.
Instructions
agent_eval_suites CRUD + scenario import + repo re-sync. action:
list | get |
create (name; EITHER profile_id — agent_kind is then DERIVED from that
profile via _sync_agent_kind, overriding any agent_kind also passed, and
an unresolvable profile_id errors — OR agent_kind directly, one of this
build's suite kinds (legacy/no-profile path, unchanged); runner_kind
defaults 'chat' ('voice_live' grades a whole duplex-voice conversation —
see docs/admin-portal/03-test.md#voice-eval-suites-runner_kind-voice_live;
any other kind is a plugin's own runner, see 03-test.md);
default_context, when supplied, is stored as-is (e.g. a voice_live
suite's {"voice": {"mode": "sim", ...}}; runner knobs read from it:
concurrency (1-8 scenario attempts at once, default 4 — set 1 for
scenarios that must not overlap) and fail_on_tool_error (true = any
error-shaped tool result fails the scenario)); pass_threshold defaults 0.7,
is_active defaults false unless set true — mirrors the portal's "create
suite" dialog; scenarios, when supplied, are stored with the new suite,
each needing a question as in import_scenarios) | update (suite_id + only the fields supplied change;
profile_id, when supplied, re-derives and overwrites agent_kind the same
way as create; clear_profile=true UNBINDS an existing profile instead —
sets profile_id to NULL and leaves agent_kind untouched (the suite goes
back to being manually-managed, same as one that was never bound),
mirroring the portal edit form's "— none —" Profile option; a non-empty
profile_id takes priority over clear_profile if both are somehow passed;
with neither supplied, profile_id is left alone (back-compat for callers
that never mention profile_id at all); runner_kind, when supplied, must
be one of this build's runner kinds; name, when supplied non-blank, renames
the suite; scenarios, when supplied, REPLACES the whole array) |
import_scenarios (suite_id, scenarios — each needs a question; an
optional name is what the portal shows for the case (the question is
shown without one); a missing id is auto-slugified from the name, else
the question — APPENDS to the existing array,
doesn't replace it) | sync_from_repo (name = the suite's name field in
admin.seed_eval_suites._SUITES (the plugin's specs) — NOT suite_id, since the repo constant
has no suite_id; seeders are insert-if-missing, so a repo edit to an
already-seeded suite's scenarios/runner_kind/default_context/
pass_threshold never reaches a live DB on its own. Without confirm:
dry-run — resolves the repo entry and the existing DB row by name and
returns a diff summary (scenario id adds/removes, changed-scenario
count, and whether runner_kind/default_context/pass_threshold differ)
without writing anything. With confirm=true: applies the repo's
scenarios + runner_kind + default_context + pass_threshold onto the
existing row. Errors if no suite with that name exists yet in the DB
(this re-syncs an existing seeded row, it does not create one) or if
name isn't a known _SUITES entry).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "eval_suites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| name | No | Suite name (sync_from_repo: the repo suite's name in admin.seed_eval_suites._SUITES). | |
| action | Yes | Operation to run: list | get | create | update | import_scenarios | sync_from_repo. The tool description lists what each action needs. | |
| confirm | No | false (default) = dry run, nothing changes; true = execute. | |
| suite_id | No | Eval suite UUID (eval_suites action=list). | |
| is_active | No | Active flag (false = soft delete). | |
| scenarios | No | Scenario objects (question, expected, ...). | |
| agent_kind | No | Agent kind (derived from profile_id when that is given). | |
| profile_id | No | Agent profile UUID (list_profiles / get_profile). | |
| runner_kind | No | Scoring path: chat | voice_live, or a runner a plugin adds. | |
| clear_profile | No | Unbind the suite from its profile. | |
| pass_threshold | No | Score (0-1) a run must reach to pass the gate. | |
| default_context | No | JSON stored as the suite's default run context. | |
| evaluator_model_id | No | agent_models UUID of the judge model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |