Result object returned from GenerativeModel.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 | Type | Description |
|---|---|---|
| response | Promise<EnhancedGenerateContentResponse> | |
| stream | AsyncGenerator<EnhancedGenerateContentResponse> |
GenerateContentStreamResult.response
Signature:
response: Promise<EnhancedGenerateContentResponse>;
GenerateContentStreamResult.stream
Signature:
stream: AsyncGenerator<EnhancedGenerateContentResponse>;