Yardımcı yöntemlerle sarmalanmış yanıt nesnesi.
İmza:
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
Uzantılar: GenerateContentResponse
Özellikler
Özellik | Tür | Açıklama |
---|---|---|
functionCalls | () => FunctionCall[] | tanımsız | |
metin | () => dize | Varsa yanıttaki metin dizesini döndürür. İstem veya aday engellenmişse atar. |
EnhancedGenerateContentResponse.functionCalls
İmza:
functionCalls: () => FunctionCall[] | undefined;
EnhancedGenerateContentResponse.text
Varsa yanıttaki metin dizesini döndürür. İstem veya aday engellenmişse atar.
İmza:
text: () => string;