Individual response from GenerativeModel.generateContent() and GenerativeModel.generateContentStream(). generateContentStream()
will return one in each chunk until the stream is done.
Signature:
export interface GenerateContentResponse
Properties
Property | Type | Description |
---|---|---|
candidates | GenerateContentCandidate[] | |
promptFeedback | PromptFeedback | |
usageMetadata | UsageMetadata |
GenerateContentResponse.candidates
Signature:
candidates?: GenerateContentCandidate[];
GenerateContentResponse.promptFeedback
Signature:
promptFeedback?: PromptFeedback;
GenerateContentResponse.usageMetadata
Signature:
usageMetadata?: UsageMetadata;