使用辅助方法封装的响应对象。
签名:
export interface EnhancedGenerateContentResponse extends GenerateContentResponse
属性
属性 | 类型 | 说明 |
---|---|---|
functionCalls | () => FunctionCall[] | 未定义 | |
文本 | () => 字符串 | 返回响应中的文本字符串(如果有)。如果提示或候选对象被屏蔽,则抛出。 |
EnhancedGenerateContentResponse.functionCalls
签名:
functionCalls: () => FunctionCall[] | undefined;
增强型生成内容响应.text
返回响应中的文本字符串(如果有)。如果提示或候选对象被屏蔽,则抛出。
签名:
text: () => string;