Interface Content

Contains the multi-part content of a message.

interface Content {
    parts?: Part[];
    role?: string;
}

Properties

Properties

parts?: Part[]

List of parts that constitute a single message. Each part may have a different IANA MIME type.

role?: string

Optional. 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. If role is not specified, SDK will determine the role.

MMNEPVFCICPMFPCPTTAAATR