ModelParams interface

傳遞至 getGenerativeModel() 的參數。

簽名:

export interface ModelParams extends BaseParams 

擴充: BaseParams

屬性

屬性 類型 說明
模型 字串
systemInstruction 字串 | 部分 | 內容
toolConfig ToolConfig
工具 工具[]

ModelParams.model

簽名:

model: string;

ModelParams.systemInstruction

簽名:

systemInstruction?: string | Part | Content;

ModelParams.toolConfig

簽名:

toolConfig?: ToolConfig;

ModelParams.tools

簽名:

tools?: Tool[];