docs-devsite/ai.generatecontentresponse.md
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 %}
Individual response from GenerativeModel.generateContent() and GenerativeModel.generateContentStream()<!-- -->. generateContentStream() will return one in each chunk until the stream is done.
<b>Signature:</b>
export interface GenerateContentResponse
| Property | Type | Description |
|---|---|---|
| candidates | GenerateContentCandidate<!-- -->[] | |
| promptFeedback | PromptFeedback | |
| usageMetadata | UsageMetadata |
<b>Signature:</b>
candidates?: GenerateContentCandidate[];
<b>Signature:</b>
promptFeedback?: PromptFeedback;
<b>Signature:</b>
usageMetadata?: UsageMetadata;