mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
1.7 KiB
1.7 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 %}
GenerateContentResponse interface
Individual response from GenerativeModel.generateContent() and GenerativeModel.generateContentStream(). generateContentStream() will return one in each chunk until the stream is done.
Signature:
export interface GenerateContentResponse
Properties
| Property | Type | Description |
|---|---|---|
| candidates | GenerateContentCandidate[] | |
| promptFeedback | PromptFeedback | |
| usageMetadata | UsageMetadata |
GenerateContentResponse.candidates
Signature:
candidates?: GenerateContentCandidate[];
GenerateContentResponse.promptFeedback
Signature:
promptFeedback?: PromptFeedback;
GenerateContentResponse.usageMetadata
Signature:
usageMetadata?: UsageMetadata;