ai.VertexV1Beta1GenerateContentRequest interface

Params used to call the generateContent method.

Signature:

export declare interface GenerateContentRequest extends BaseModelParams 

Extends: BaseModelParams

Properties

Property Type Description
cachedContent string Optional. The name of the cached content used as context to serve the prediction. This is the name of a CachedContent and not the cache object itself.
contents Content[] Array of Content.
generationConfig GenerationConfig Optional generation configuration.
safetySettings SafetySetting[] Optional safety settings.
systemInstruction string | Content Optional. The user provided system instructions for the model. Note: only text should be used in parts of Content.
toolConfig ToolConfig Optional tool configuration.
tools Tool[] Optional tools (such as function declarations) the model can interact with to assist in generating a response.

ai.VertexV1Beta1GenerateContentRequest.cachedContent

Optional. The name of the cached content used as context to serve the prediction. This is the name of a CachedContent and not the cache object itself.

Signature:

cachedContent?: string;

ai.VertexV1Beta1GenerateContentRequest.contents

Array of Content.

Signature:

contents: Content[];

ai.VertexV1Beta1GenerateContentRequest.generationConfig

Optional generation configuration.

Signature:

generationConfig?: GenerationConfig;

ai.VertexV1Beta1GenerateContentRequest.safetySettings

Optional safety settings.

Signature:

safetySettings?: SafetySetting[];

ai.VertexV1Beta1GenerateContentRequest.systemInstruction

Optional. The user provided system instructions for the model. Note: only text should be used in parts of Content.

Signature:

systemInstruction?: string | Content;

ai.VertexV1Beta1GenerateContentRequest.toolConfig

Optional tool configuration.

Signature:

toolConfig?: ToolConfig;

ai.VertexV1Beta1GenerateContentRequest.tools

Optional tools (such as function declarations) the model can interact with to assist in generating a response.

Signature:

tools?: Tool[];