ModelParams interface

Các tham số được truyền đến getGenerativeModel().

Chữ ký:

export interface ModelParams extends BaseParams 

Mở rộng: BaseParams

Thuộc tính

Tài sản Loại Mô tả
mô hình chuỗi
systemInstruction chuỗi | Phần | Nội dung
toolConfig Cấu hình công cụ
công cụ Công cụ[]

ModelParams.model

Chữ ký:

model: string;

ModelParams.systemInstruction

Chữ ký:

systemInstruction?: string | Part | Content;

ModelParams.toolConfig

Chữ ký:

toolConfig?: ToolConfig;

ModelParams.tools

Chữ ký:

tools?: Tool[];