Interface GenerateContentResponse (0.5.0)

Response from the model supporting multiple candidates.

Package

@google-cloud/vertexai

Properties

candidates

candidates: GenerateContentCandidate[];

promptFeedback

promptFeedback?: PromptFeedback;

Optional. This is only populated if there are no candidates due to a safety block. PromptFeedback.

usageMetadata

usageMetadata?: UsageMetadata;

Optional. UsageMetadata.