interface GeminiResponseCandidate {
    avgLogprobs?: number;
    citationMetadata?: GeminiCitationMetadata;
    content: {
        parts: GeminiPart[];
        role: string;
    };
    finishReason: string;
    groundingMetadata?: GeminiGroundingMetadata;
    index: number;
    logprobsResult: GeminiLogprobsResult;
    safetyRatings: GeminiSafetyRating[];
    tokenCount?: number;
}

Properties

avgLogprobs?: number
citationMetadata?: GeminiCitationMetadata
content: {
    parts: GeminiPart[];
    role: string;
}
finishReason: string
groundingMetadata?: GeminiGroundingMetadata
index: number
logprobsResult: GeminiLogprobsResult
safetyRatings: GeminiSafetyRating[]
tokenCount?: number