wait_trial
Wait for a trial to reach a terminal state in one call, replacing a polling loop. Returns final status plus waited_seconds and timed_out.
Instructions
Wait for a trial to reach a terminal state — one call instead of a polling loop.
Polls get_trial_status internally every poll_seconds until the trial is completed/failed/retryable/abandoned or timeout_seconds elapses (server-side cap: 60s). Returns the final status payload plus 'waited_seconds' and 'timed_out'. Caps the get_trial_status amplification loop: a 60s wait replaces ~30 round-trips.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trial_id | Yes | ID of the target trial. | |
| poll_seconds | No | Interval between server-side status checks. | |
| programme_id | Yes | ID of the target research programme. | |
| timeout_seconds | No | Max seconds to wait server-side (capped at 60 — long trials still need client polling, just far less of it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| reason | No | ||
| status | No | ||
| progress | No | ||
| trial_id | No | ||
| cancelled | No | ||
| started_at | No | ||
| eta_seconds | No | ||
| finished_at | No | ||
| artifact_path | No | ||
| elapsed_seconds | No | ||
| executor_output | No | ||
| duration_seconds | No |