Get Chat Task
Return a snapshot of one task's current state.
SDK clients call this to poll a previously-submitted task for its status, latest output, or failure reason. The shape is deliberately flat -- detailed step-by-step execution data lives behind GET /v1/chat/tasks/{task_id}/steps (commit F).
Args: task_id: Path parameter; the target task's primary key. authed: (Agent, AgentApiKey) tuple. db: SQLAlchemy session.
Returns: :class:TaskInfoResponse with task_id, agent_id, status, latest-turn input / output / error, created_at, and completed_at (set only when the task has reached a terminal state).
Raises: V1ApiError 401: missing / invalid / revoked key. V1ApiError 404: task missing or not owned by the calling agent.
Path parameters
Response
Successful Response
Changes
Changed in 1 of the 4 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○