Messages
MessageDict
The MessageDict
represents a Chainlit App conversation message.
Attributes
id
str
The message ID.
createdAt
int
The date of the message creation.
conversationId
Optional[str]
The conversation ID from which the message comes from.
content
str
The text content of the message.
author
str
The message author.
prompt
Optional[Prompt]
The prompt value passed to a message.
language
Optional[str]
Language of the code if the content is code. See https://react-code-blocks-rajinwonderland.vercel.app/?path=/story/codeblock—supported-languages for a list of supported languages.
parentId
Optional[str]
The parent message ID, if available.
authorIsUser
Optional[bool]
True if the author of the message is a Chainlit App user.
waitForAnswer
Optional[bool]
True if the message is waiting for the user’s answer.
isError
Optional[bool]
True if the message is an ErrorMessage
.
humanFeedback
Optional[int]
The value of the user’s feedback.
disableHumanFeedback
Optional[bool]
True if the message doesn’t expect feedback.
Was this page helpful?