Text class allows you to display a text element in the chatbot UI. This class takes a string and creates a text element that can be sent to the UI.
It supports the markdown syntax for formatting text.
You must provide either an url or a path or content bytes.
Attributes
str
The name of the text element to be displayed in the UI.
Union[str, bytes]
The text string or bytes that should be displayed as the content of the text
element.
str
The remote URL of the text source.
str
The local file path of the text file.
ElementDisplay
Determines how the text element should be displayed in the UI. Choices are
“side”, “inline”, or “page”.
str
Language of the code if the text is a piece of code. See
https://react-code-blocks-rajinwonderland.vercel.app/?path=/story/codeblock—supported-languages
for a list of supported languages.