sdk-v1
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.
get/v1/chat/tasks/{task_id}
Path parameters
task_idinteger required
Response
Successful Response