Internal
Pipe the stream through a processing function.
The function to process the input stream.
Optionalresponse: OrchestrationStreamResponse<OrchestrationStreamChunkResponse>
The OrchestrationStreamResponse object for process function to store finish reason, token usage, etc.
The output stream containing processed items.
Transform the stream of chunks into a stream of content strings.
Orchestration stream.
A stream of content strings.
Converts this stream to a newline-delimited JSON ReadableStream.
A ReadableStream of UTF-8 encoded NDJSON bytes.
Static_Internal
Create an orchestration stream based on the http response.
Http response.
An orchestration stream.
Static_Internal
Wrap raw chunk data with chunk response class to provide helper functions.
Orchestration stream.
Static_Internal
Transform a stream of chunks into a stream of content strings.
Orchestration stream.
Static_Optionalresponse: OrchestrationStreamResponse<OrchestrationStreamChunkResponse>Static_Optionalresponse: OrchestrationStreamResponse<OrchestrationStreamChunkResponse>Protected Statictransform
Orchestration stream containing post-processing functions.