Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.03 KB

generative-ai.generatecontentstreamresult.md

File metadata and controls

21 lines (13 loc) · 1.03 KB

Home > @google/generative-ai > GenerateContentStreamResult

GenerateContentStreamResult interface

Result object returned from generateContentStream() call. Iterate over stream to get chunks as they come in and/or use the response promise to get the aggregated response when the stream is done.

Signature:

export interface GenerateContentStreamResult 

Properties

Property Modifiers Type Description
response Promise<EnhancedGenerateContentResponse>
stream AsyncGenerator<EnhancedGenerateContentResponse>