Interface GenerateContentRequest (1.10.0)

Params used to call the generateContent method.

Inheritance

BaseModelParams > GenerateContentRequest

Package

@google-cloud/vertexai

Properties

cachedContent

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

contents: Content[];

Array of Content.

labels

labels?: Record<string, string>;

Optional. Custom metadata labels for organizing API calls and managing costs at scale. See https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/add-labels-to-api-calls

systemInstruction

systemInstruction?: string | Content;

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