Outputs
Text Output and Chat Output components define where data exits your flow. They can send data to the user or the Playground, or define how the data is presented in the Playground.
-
Text Output takes
Text`input with no additional formatting or metadata and creates a `Message
object. -
Chat Output handles multiple input types and creates a
Message
object that includes chat-specific features like message history and sender information.
Chat Output
This component displays chat messages in the Playground.
The Chat Output component creates a Message
object that includes the input text, sender information, session ID, and styling properties.
It can optionally store the message in a chat history.
The component accepts the following input types.
-
Data
-
DataFrame
-
Message
Parameters
Name | Display Name | Info |
---|---|---|
input_value |
Text |
The message to be passed as output. |
should_store_message |
Store Messages |
The flag to store the message in the history. |
sender |
Sender Type |
The type of sender. |
sender_name |
Sender Name |
The name of the sender. |
session_id |
Session ID |
The session ID of the chat. If this option is empty, the current session ID parameter is used. |
data_template |
Data Template |
The template to convert Data to Text. If this option is empty, it is dynamically set to the Data’s text key. |
background_color |
Background Color |
The background color of the icon. |
chat_icon |
Icon |
The icon of the message. |
text_color |
Text Color |
The text color of the name. |
clean_data |
Basic Clean Data |
When enabled, |
Name | Display Name | Info |
---|---|---|
message |
Message |
The resulting chat message object with all specified properties. |
Component code
chat.py
404: Not Found
Text Output
The Text output component takes a single input of text and returns a Message
object containing that text.
The output does not appear in the Playground.
Parameters
Name | Display Name | Info |
---|---|---|
input_value |
Text |
The text to be passed as output. |
Name | Display Name | Info |
---|---|---|
text |
Text |
The response message containing the input text. |
Component code
text.py
404: Not Found