ai.clients.StreamRelay
Pulls one selected stream through a reliability policy. A typed, safely retryable failure or a member timeout may replace the selected stream only before the first text delta has been returned. Once any delta is visible, every later failure is terminal: replaying would duplicate a prefix and there is no resumable-stream contract at the client boundary.
Signature
class ai.clients.StreamRelayPulls one selected stream through a reliability policy. A typed, safely retryable failure or a member timeout may replace the selected stream only before the first text delta has been returned. Once any delta is visible, every later failure is terminal: replaying would duplicate a prefix and there is no resumable-stream contract at the client boundary.
Source:<builtin>/ai/ns_clients/clients.bamlbytes 27322–32826
Fields
open
() -> ai.stream.TurnStream throws ai.errors.InvokeErrorretry
(ai.clients.Retryable) -> bool throws ai.errors.InvokeErrorcurrent
ai.stream.TurnStream | nullemitted
boolpending_text
string[]pending_cursor
intterminal
terminal_cursor
intfinished
bool