Response from the model supporting multiple candidates.
Signature:
export declare interface GenerateContentResponse
Properties
| Property | Type | Description |
|---|---|---|
| candidates | GenerateContentCandidate[] | Array of GenerateContentCandidate. |
| promptFeedback | PromptFeedback | Optional. This is only populated if there are no candidates due to a safety block. |
| usageMetadata | UsageMetadata | Optional. Usage metadata. |
ai.VertexV1Beta1GenerateContentResponse.candidates
Array of GenerateContentCandidate.
Signature:
candidates?: GenerateContentCandidate[];
ai.VertexV1Beta1GenerateContentResponse.promptFeedback
Optional. This is only populated if there are no candidates due to a safety block.
Signature:
promptFeedback?: PromptFeedback;
ai.VertexV1Beta1GenerateContentResponse.usageMetadata
Optional. Usage metadata.
Signature:
usageMetadata?: UsageMetadata;