Interface GenerateContentStreamResult

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.

interface GenerateContentStreamResult {
    response: Promise<EnhancedGenerateContentResponse>;
    stream: AsyncGenerator<EnhancedGenerateContentResponse, any, unknown>;
}

Properties

Properties