GenerateContentRequest interface

Request sent through GenerativeModel.generateContent()

Signature:

export interface GenerateContentRequest extends BaseParams 

Extends: BaseParams

Properties

Property Type Description
contents Content[]
systemInstruction string | Part | Content
toolConfig ToolConfig
tools Tool[]

GenerateContentRequest.contents

Signature:

contents: Content[];

GenerateContentRequest.systemInstruction

Signature:

systemInstruction?: string | Part | Content;

GenerateContentRequest.toolConfig

Signature:

toolConfig?: ToolConfig;

GenerateContentRequest.tools

Signature:

tools?: Tool[];