v2
chat
chat
Resume Session Stream
Changed onResume a session's stream.
With turn, serves exactly that turn's stored entries after after (0-0 for all of them) and then its live ones: 409 when entries after the cursor were trimmed, 410 when the stream is gone. Every entry frame carries id: <turn>:<entry>.
Without turn, replays the active turn from 0-0, or returns 204 when nothing is running: the AI SDK's parser cannot continue a block it did not see start.
get/api/chat/sessions/{session_id}/stream
Request
- The document declares no server URL.
- AuthHTTP bearer
Path parameters
session_idstring required
Query parameters
turnstring nullable
Turn to read; with it, only its stored entries
afterstring
Stream entry id the client last applied
Response
Successful Response
unknown required
Changes
- info
added the new optional
queryrequest parameterafter - info
added the new optional
queryrequest parameterturn - info
added the non-success response with the status
- info
added the non-success response with the status
- info