mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.5 KiB
1.5 KiB
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
GenerateContentStreamResult interface
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>;