Get run result
get_run_resultGet run status, timestamps, credits, tokens, and the assistant reply, plus a session URL. Use to poll asynchronous runs; also shows failure cause and pending input details.
Instructions
Get a run's status, started/ended/heartbeat timestamps, attributed credits and tokens (null when unavailable), and, if it has completed, the assistant's reply, plus a "url" that opens the run's session in the web app. Use to poll a run started with invoke_agent wait=false. Credit/token counters advance after each completed model call; unchanged counters while a tool is running are normal, so use last_heartbeat_at to judge liveness. A failed run includes its cause and whether it is retryable. Status "awaiting_input" includes the pending request details inline for answer_pending_input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run id returned by invoke_agent. | |
| agent_id | Yes | The agent's UUID. |