Optionalclient: BaseGeminiNextGenAPIClientConverts this stream to a newline-separated ReadableStream of
JSON stringified values in the stream
which can be turned back into a Stream with Stream.fromReadableStream().
StaticfromGenerates a Stream from a newline-separated ReadableStream where each item is a JSON value.
Optionalclient: BaseGeminiNextGenAPIClientStaticfromSSEResponseOptionalclient: BaseGeminiNextGenAPIClient
Stream subclass that runs each yielded SSE event through
maybeRemapLegacyStreamEventso consumers always see modern event shapes.Wired in via the
__streamClassrequest option fromresources/interactions.ts(read bysrc/internal/parse.ts:defaultParseResponse).