wait_for_run
Wait for a run to settle (completed, failed, or needs_input) and return it with the agent's final reply. Returns wait_timed_out if it is still running when the timeout passes; call again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | A run id (trun_...). | |
| timeout_seconds | No | How long to wait for the run to settle before returning (default 60, max 90). On wait_timed_out, call wait_for_run with the run id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| object | Yes | ||
| result | No | ||
| reused | No | ||
| status | Yes | ||
| chat_id | No | ||
| summary | No | ||
| task_id | Yes | ||
| task_name | No | ||
| created_at | Yes | ||
| started_at | No | ||
| completed_at | No | ||
| error_message | No | ||
| credits_consumed | No | ||
| pending_approval_ids | No |