GenerationMessage is used in the ChatGeneration class to represent a message.

Attributes

content
str

The content of the message.

role
str

The role of the message, such as “system”, “assistant” or “user”.

name
str

Only used for OpenAI’s function message.