wait_thronglet
Wait for a session to finish its running or queued turn, then return the last turn's result or its error. On timeout, returns session state instead.
Instructions
Waits until a session has no running or queued turn and returns the last turn's result: the same JSON as run_thronglet, or its error. With timeout_s elapsed returns {session_id, state, queued} instead. Idempotent: the result is stored with the session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | How long to wait in seconds; default from config (21600). Elapsed → the session state, not an error | |
| session_id | Yes | session_id from run_thronglet |