GenerateContentRequest interface

通过 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[];