隨附輔助方法的回應物件。
簽名:
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
屬性
屬性 | 類型 | 說明 |
---|---|---|
functionCalls | () =>FunctionCall[] |未定義 | |
文字 | () =>字串 | 傳回回應中的文字字串 (如有)。如果提示或候選人遭到封鎖,就會由系統傳回。 |
EnhancedGenerateContentResponse.functionCalls
簽名:
functionCalls: () => FunctionCall[] | undefined;
強化產生內容回應.text
傳回回應中的文字字串 (如有)。如果提示或候選人遭到封鎖,就會由系統傳回。
簽名:
text: () => string;