Generation
GenerationMessage
GenerationMessage
is used in the ChatGeneration class to represent a message.
Attributes
The template of the message prompt.
The formatted version of the template.
The role of the message, such as “system”, “assistant” or “user”.
Only used for OpenAI’s function message.
The format of the template, defaults to “f-string”.
Was this page helpful?