ส่งคำขอผ่าน GenerativeModel.generateContent()
ลายเซ็น:
export interface GenerateContentRequest extends BaseParams
ขยาย: BaseParams
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
---|---|---|
เนื้อหา | เนื้อหา[] | |
คำแนะนำสำหรับระบบ | string | ส่วนที่ | เนื้อหา | |
toolConfig | การกำหนดค่าเครื่องมือ | |
เครื่องมือ | เครื่องมือ[] |
GenerateContentRequest.contents
ลายเซ็น:
contents: Content[];
GenerateContentRequest.systemInstruction
ลายเซ็น:
systemInstruction?: string | Part | Content;
GenerateContentRequest.toolConfig
ลายเซ็น:
toolConfig?: ToolConfig;
GenerateContentRequest.tools
ลายเซ็น:
tools?: Tool[];