Run Experiment
run_experimentRun a full automatic experiment, baseline only, or a manual comparison.
May incur remote agent costs and, for steering, proposal-model charges.
Use phase='steering' for the full flow: freeze reviewed cases, run any
unfinished baseline, then optimize automatically. Choose comparison
repetitions up front; each candidate and fresh baseline use that same
count, frozen when comparison starts. Baseline-only remains available
for reviewing results before a manual comparison. Steering accumulates improvements
and stops at 100%, patience, or its candidate/budget limits. sweep applies
only to steering; omit methods to use this agent's integration. Poll
get_experiment_job every 30-60s. A repeated request_key never launches
twice, even after completion. A new key explicitly resumes paused work.
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": {
"agent_id": "<agent_id>",
"experiment_id": "<experiment_id>",
"revision": "<revision>",
"phase": "<phase>",
"request_key": "<request_key>"
},
"name": "run_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | Yes | ||
| sweep | No | Optional steering bounds (max_candidates, patience, methods); applies only when phase='steering'. | |
| agent_id | Yes | Stable agent ID from list_agents or create_agent. | |
| revision | Yes | Latest draft revision returned by get_experiment or the previous edit. | |
| request_key | Yes | Unique key for this launch. Retry lost responses with the same key and arguments; use a new key to resume. | |
| max_new_runs | No | ||
| experiment_id | Yes | Experiment ID within this agent; letters, digits, hyphens, underscores. | |
| comparison_repetitions | No |