Skip to Content
Anuma SDKClientInternalFunctionsgetApiV1ChatStreamsByInferenceId

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 ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<GetApiV1ChatStreamsByInferenceIdData, ThrowOnError>

Returns

RequestResult<GetApiV1ChatStreamsByInferenceIdResponses, GetApiV1ChatStreamsByInferenceIdErrors, ThrowOnError>

Last updated on