Back to Firebase Js Sdk

GenerateContentRequest interface

docs-devsite/ai.generatecontentrequest.md

12.12.11.7 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

GenerateContentRequest interface

Request sent through GenerativeModel.generateContent()

<b>Signature:</b>

typescript
export interface GenerateContentRequest extends BaseParams 

<b>Extends:</b> BaseParams

Properties

PropertyTypeDescription
contentsContent<!-- -->[]
systemInstructionstring | Part | Content
toolConfigToolConfig
toolsTool<!-- -->[]

GenerateContentRequest.contents

<b>Signature:</b>

typescript
contents: Content[];

GenerateContentRequest.systemInstruction

<b>Signature:</b>

typescript
systemInstruction?: string | Part | Content;

GenerateContentRequest.toolConfig

<b>Signature:</b>

typescript
toolConfig?: ToolConfig;

GenerateContentRequest.tools

<b>Signature:</b>

typescript
tools?: Tool[];