Skip to main content
Run templates save a full evaluation configuration — agent, persona, test set, metrics, and parameters — so you can re-launch identical runs without specifying every option each time.

List Run Templates

coval run-templates list [OPTIONS]
OptionTypeDefaultDescription
--filterstringFilter expression
--page-sizenumber50Results per page
--order-bystringSort order
Output columns: ID, NAME, AGENT, PERSONA, TEST SET, ITERATIONS, CONCURRENCY
# List all templates
coval run-templates list

# JSON output
coval run-templates list --format json

Get Run Template

coval run-templates get <run_template_id>
ArgumentTypeRequiredDescription
run_template_idstringYesThe run template ID
coval run-templates get rt_abc123

Create Run Template

coval run-templates create [OPTIONS]
OptionTypeRequiredDescription
--namestringYesDisplay name for the template
--agent-idstringNoAgent to evaluate
--persona-idstringNoPersona for simulations
--test-set-idstringNoTest set to use
--metric-idsstringNoComma-separated metric IDs
--mutation-idsstringNoComma-separated mutation IDs
--iteration-countnumberNoNumber of iterations per test case
--concurrencynumberNoMax concurrent simulations
--sub-sample-sizenumberNoNumber of test cases to sample
--sub-sample-seednumberNoRandom seed for sampling
# Create a basic template
coval run-templates create \
  --name "Nightly Regression" \
  --agent-id ag_abc123 \
  --persona-id per_xyz789 \
  --test-set-id ts_123456

# Create a template with metrics and concurrency
coval run-templates create \
  --name "Full Evaluation" \
  --agent-id ag_abc123 \
  --persona-id per_xyz789 \
  --test-set-id ts_123456 \
  --metric-ids "met_001,met_002,met_003" \
  --iteration-count 3 \
  --concurrency 5

Update Run Template

coval run-templates update <run_template_id> [OPTIONS]
ArgumentTypeRequiredDescription
run_template_idstringYesThe run template ID to update
OptionTypeDescription
--namestringNew display name
--agent-idstringNew agent ID
--persona-idstringNew persona ID
--test-set-idstringNew test set ID
--metric-idsstringNew comma-separated metric IDs
--mutation-idsstringNew comma-separated mutation IDs
--iteration-countnumberNew iteration count
--concurrencynumberNew concurrency limit
--sub-sample-sizenumberNew sample size
--sub-sample-seednumberNew sample seed
coval run-templates update rt_abc123 \
  --concurrency 10 \
  --iteration-count 5

Delete Run Template

coval run-templates delete <run_template_id>
ArgumentTypeRequiredDescription
run_template_idstringYesThe run template ID to delete
Deleting a run template will fail with a 409 error if it has active scheduled runs. Remove or disable associated scheduled runs first.
coval run-templates delete rt_abc123