`POST /api/intelligence/agent-experiments/{id}/launch` — launch the experiment's dataset cases as a task group. Admin-only.
const url = 'https://example.com/api/intelligence/agent-experiments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/launch';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"dataset_case_ids":["example"],"launch":true,"max_cases":1,"rerun":true,"variant_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/intelligence/agent-experiments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/launch \ --header 'Content-Type: application/json' \ --data '{ "dataset_case_ids": [ "example" ], "launch": true, "max_cases": 1, "rerun": true, "variant_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
#838 E2 — launch exactly these dataset cases (by their id/case_id/key, or
the case-N positional fallback the dataset reader mints). None keeps the
historical “first max_cases” behaviour; an explicit list makes a SINGLE case
re-runnable without firing duplicates of everything before it.
#838 E4 — repeat (variant, case) pairs that already have a live or successful
attempt. Default false: those pairs are reported in skipped_existing rather
than silently duplicated. Set true for a deliberate repeat (a flake repro).
Examplegenerated
{ "dataset_case_ids": [ "example" ], "launch": true, "max_cases": 1, "rerun": true, "variant_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”object
#838 E5 — non-blocking observations about the launch (e.g. a case whose wording does not match the project’s detected stack). Typed data, never prose: the surface renders the sentence.
A typed, non-blocking launch observation (#838 E5). code is the stable machine
key a surface localises; the fields carry the FACTS the sentence needs, so no
user-facing text is minted in the service layer.
object
The project languages the stack detection actually found, verbatim.
#838 E1 — attempts parked on the workspace agent-concurrency cap. They are NOT failures: the scheduler’s concurrency tick promotes each as a slot frees.
object
#838 E4 — (variant, case) pairs this launch declined to duplicate.
One (variant, case) pair a launch declined to repeat (#838 E4).
object
Why the pair was skipped: active_attempt (one is in flight) or
successful_attempt (one already succeeded).
object
Examplegenerated
{ "created": 1, "experiment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "group_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "launched": 1, "notes": [ { "code": "example", "dataset_case_id": "example", "detected_languages": [ "example" ] } ], "queued": 1, "skipped_cases": [ { "dataset_case_id": "example", "reason": "example" } ], "skipped_existing": [ { "dataset_case_id": "example", "reason": "example", "variant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "variant_name": "example" } ], "tasks": [ { "dataset_case_id": "example", "status": "example", "task_class": "example", "task_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "task_label": "example", "variant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "variant_name": "example" } ]}