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