(
options: RunOptions & {pipe: Pipe},
)
| 437 | * @returns A promise that resolves to the response of the stream operation. |
| 438 | */ |
| 439 | export const streamText = async ( |
| 440 | options: RunOptions & {pipe: Pipe}, |
| 441 | ): Promise<RunResponseStream> => { |
| 442 | return options.pipe.run({...options, stream: true}); |
| 443 | }; |
| 444 | |
| 445 | interface ContentChunk { |
| 446 | type: 'content'; |