Interfaccia GeneraContentCandidate (0.4.0)

Un candidato di risposta generato dal modello. {Content} - contenuti. Contenuti {number} - [indice]. L'indice del candidato nel campo GenerateContentResponse {FinishReason} - [finishReason]. FinishReason {string} - [finishMessage]. {SafetyRating[]} - [safetyRatings]. Array di SafetyRating {CitationMetadata} - [citationMetadata]. CitationMetadata {GroundingMetadata} - [groundingMetadata]. GroundingMetadata

Pacchetto

@google-cloud/vertexai

Proprietà

citationMetadata

citationMetadata?: CitationMetadata;

content

content: Content;

finishMessage

finishMessage?: string;

finishReason

finishReason?: FinishReason;

functionCall

functionCall?: FunctionCall;

groundingMetadata

groundingMetadata?: GroundingMetadata;

index

index?: number;

safetyRatings

safetyRatings?: SafetyRating[];