以輔助方法包裝的回應物件。
簽名:
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
屬性
屬性 | 類型 | 說明 |
---|---|---|
functionCalls | () => FunctionCall[] | 未定義 | |
文字 | () => 字串 | 傳回回應中的文字字串 (如果有的話)。如果提示或候選項目遭到封鎖,就會擲回。 |
EnhancedGenerateContentResponse.functionCalls
簽名:
functionCalls: () => FunctionCall[] | undefined;
EnhancedGenerateContentResponse.text
傳回回應中的文字字串 (如果有的話)。如果提示或候選項目遭到封鎖,就會擲回。
簽名:
text: () => string;