A message in the prompt for a language model API.
The prompt is a list of messages, where each message is a dictionary with keys as
follows.
-
role
The role of the message sender.
- Type:
Literal[“system”, “assistant”, “user”]
-
content
The content of the message.
- Type:
str
-
name
The name of the message sender.
- Type:
str, optional
Attributes
Methods