Wait for a run
wait_for_runWait until a run finishes (succeeded, failed, cancelled, interrupted or timed_out) or the wait ends, then return the run. After the run finishes it keeps waiting, within the same time, until billing has settled (billing_pending false, normally a few seconds to about 20), so the cost is final. Waits at most 60 seconds; if the run is still going, the returned status says so and you can call it again. COST: if the result has cost_final:false, cost_micros is PROVISIONAL and usually higher than the final cost; do not quote it, call get_run again shortly. Quote the cost only when cost_final is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The run's id, as returned by create_run. | |
| timeout_seconds | No | How long to wait, 1 to 60 (default 30). |