GenerativeModel.generateContentStream() çağrısından döndürülen sonuç nesnesi. Gelen parçaları almak için stream
üzerinde yineleme yapın ve/veya akış tamamlandığında toplu yanıt almak için response
sözünü kullanın.
İmza:
export interface GenerateContentStreamResult
Özellikler
Özellik | Tür | Açıklama |
---|---|---|
yanıt | Söz<EnhancedGenerateContentResponse> | |
akış | AsyncGenerator<EnhancedGenerateContentResponse> |
GenerateContentStreamResult.response
İmza:
response: Promise<EnhancedGenerateContentResponse>;
GenerateContentStreamResult.stream
İmza:
stream: AsyncGenerator<EnhancedGenerateContentResponse>;