getApiV1ChatStreamsByInferenceId
getApiV1ChatStreamsByInferenceId<
ThrowOnError>(options:Options<GetApiV1ChatStreamsByInferenceIdData,ThrowOnError>):RequestResult<GetApiV1ChatStreamsByInferenceIdResponses,GetApiV1ChatStreamsByInferenceIdErrors,ThrowOnError>
Defined in: src/client/sdk.gen.ts:779Â
Resume (replay + tail) a buffered chat stream
Replays the buffered SSE prefix of an interrupted chat stream from the Redis buffer, byte-identical to the original wire, then live-tails it to its terminal state. The response is an SSE stream (text/event-stream) terminated by data: [DONE]. A non-completed terminal (tool calls awaited, deadline exceeded, generation error, or a cancel raced in during tail) is delivered as an in-stream error event (code: stream_interrupted) followed by [DONE]; raw tool-request frames are never replayed. Unknown, expired, cancelled, and not-owned ids all return 410 (no existence oracle), as does corruption detected before the stream starts (a completed terminal whose buffered frames were lost or head-truncated); the same corruption surfacing mid-tail arrives after headers commit and is delivered in-stream as stream_interrupted + [DONE], so callers must handle both signals. Bearer auth; the caller must own the stream.
Type Parameters
| Type Parameter | Default type |
|---|---|
|
|
|
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
RequestResult<GetApiV1ChatStreamsByInferenceIdResponses, GetApiV1ChatStreamsByInferenceIdErrors, ThrowOnError>