The Message
class is designed to send, stream, update or remove messages.
The content of the message.
The author of the message, defaults to the chatbot name defined in your config file.
Elements to attach to the message.
Actions to attach to the message.
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.
Send a new message to the UI.
Send a message token by token to the UI.
Update a message that already has been sent.
Remove a message from the UI.
The Message
class is designed to send, stream, update or remove messages.
The content of the message.
The author of the message, defaults to the chatbot name defined in your config file.
Elements to attach to the message.
Actions to attach to the message.
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.
Send a new message to the UI.
Send a message token by token to the UI.
Update a message that already has been sent.
Remove a message from the UI.