Interface Content (0.4.0)

The base structured datatype containing multi-part content of a message. {Part[]} - parts. Array of Part {string} - [role]. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.

Package

@google-cloud/vertexai

Properties

parts

parts: Part[];

role

role?: string;