ai.clients.StreamRelay$stream
Pulls one selected stream through a reliability policy. A typed, safely retryable failure 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.
Reference version
Signature
class ai.clients.StreamRelay$streamPulls one selected stream through a reliability policy. A typed, safely retryable failure 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 0–0
Fields
open
unknownretry
unknowncurrent
ai.stream.TurnStream$stream | nullemitted
bool | nullpending_text
string[]pending_cursor
int | nullterminal
terminal_cursor
int | nullfinished
bool | null