Individual response from generateContent.
Signature:
export declare interface GenerateContentResponse
Properties
| Property | Type | Description |
|---|---|---|
| candidates | GenerateContentCandidate[] | Candidate responses from the model. |
| promptFeedback | PromptFeedback | The prompt's feedback related to the content filters. |
| usageMetadata | UsageMetadata | Metadata on the generation request's token usage. |
ai.GeminiV1BetaGenerateContentResponse.candidates
Candidate responses from the model.
Signature:
candidates?: GenerateContentCandidate[];
ai.GeminiV1BetaGenerateContentResponse.promptFeedback
The prompt's feedback related to the content filters.
Signature:
promptFeedback?: PromptFeedback;
ai.GeminiV1BetaGenerateContentResponse.usageMetadata
Metadata on the generation request's token usage.
Signature:
usageMetadata?: UsageMetadata;