Skip to main content
A tool call returns a task. Save its task_id and use the submitting credential to check status and retrieve the result. Poll with backoff while the status is submitted, queued, or in_progress. The terminal statuses are succeeded, failed, timed_out, and canceled. Read result after success and error after an unsuccessful completion. A successful task can have a null result after the result retention period. A client timeout only stops the client from waiting. Continue checking the original task by ID. If the connection fails before you receive a task ID, follow the idempotent submission procedure.