Interface GenerateContentResponse (0.3.1)

Response from the model supporting multiple candidates {GenerateContentCandidate} - candidates. GenerateContentCandidate {PromptFeedback} - [promptFeedback]. This is only populated if there are no candidates due to a safety block PromptFeedback {UsageMetadata} - [usageMetadata]. UsageMetadata

Package

@google-cloud/vertexai

Properties

candidates

candidates: GenerateContentCandidate[];

promptFeedback

promptFeedback?: PromptFeedback;

usageMetadata

usageMetadata?: UsageMetadata;