透過 GenerativeModel.generateContent() 傳送要求
簽名:
export interface GenerateContentRequest extends BaseParams
擴充: BaseParams
屬性
屬性 | 類型 | 說明 |
---|---|---|
內容 | 內容[] | |
system 指令 | 字串 |零件 |內容 | |
toolConfig | 工具設定 | |
工具 | 工具[] |
產生內容要求
簽名:
contents: Content[];
GenerateContentRequest.systeminstructions
簽名:
systemInstruction?: string | Part | Content;
產生內容要求.toolConfig
簽名:
toolConfig?: ToolConfig;
GenerateContentRequest.tools
簽名:
tools?: Tool[];