传递给 getGenerativeModel() 的参数。
签名:
export interface ModelParams extends BaseParams
扩展:BaseParams
属性
属性 | 类型 | 说明 |
---|---|---|
model | 字符串 | |
systemInstruction | 字符串 |部分 |内容 | |
toolConfig | 工具配置 | |
工具 | 工具[] |
ModelParams.model
签名:
model: string;
ModelParams.systemInstruction
签名:
systemInstruction?: string | Part | Content;
ModelParams.toolConfig
签名:
toolConfig?: ToolConfig;
ModelParams.tools
签名:
tools?: Tool[];