GenerateContentRequest interface

Solicitud enviada con GenerativeModel.generateContent()

Firma:

export interface GenerateContentRequest extends BaseParams 

Extiende: BaseParams

Propiedades

Propiedad Tipo Descripción
contenido Contenido[]
instruccióndelsistema cadena | Parte | Contenido
toolConfig Configuración de la herramienta
herramientas Herramienta[]

GenerateContentRequest.contents

Firma:

contents: Content[];

GenerateContentRequest.systemInstruction

Firma:

systemInstruction?: string | Part | Content;

GenerateContentRequest.toolConfig

Firma:

toolConfig?: ToolConfig;

GenerateContentRequest.tools.

Firma:

tools?: Tool[];