StartChatParams interface

GenerativeModel.startChat() 的参数。

签名

export interface StartChatParams extends BaseParams 

扩展BaseParams

属性

属性 类型 说明
历史记录 内容[]
systemInstruction 字符串 | 部分 | 内容
toolConfig ToolConfig
工具 工具[]

StartChatParams.history

签名

history?: Content[];

StartChatParams.systemInstruction

签名

systemInstruction?: string | Part | Content;

StartChatParams.toolConfig

签名

toolConfig?: ToolConfig;

StartChatParams.tools

签名

tools?: Tool[];