GenerativeModel.generateContent() और GenerativeModel.generateContentStream() से मिलने वाले अलग-अलग जवाब. जब तक स्ट्रीम पूरी नहीं हो जाती, तब तक generateContentStream()
हर हिस्से में एक जवाब दिखाएगा.
हस्ताक्षर:
export interface GenerateContentResponse
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
---|---|---|
उम्मीदवार | GenerateContentContent[] | |
सुझाव, शिकायत या राय | PromptFeedback | |
इस्तेमाल मेटाडेटा | इस्तेमाल का मेटाडेटा |
जनरेट कॉन्टेंट रिस्पॉन्स.candidates
हस्ताक्षर:
candidates?: GenerateContentCandidate[];
जनरेट करेंContentResponse.promptFeedback
हस्ताक्षर:
promptFeedback?: PromptFeedback;
जनरेट ContentResponse.usageMetadata
हस्ताक्षर:
usageMetadata?: UsageMetadata;