View source: R/app_chat_style.R
chat_history_append | R Documentation |
This appends a new response to the chat history
chat_history_append(history, role, content, name = NULL)
history |
List containing previous responses. |
role |
Author of the message. One of |
content |
Content of the message. If it is from the user most probably comes from an interactive input. |
name |
Name for the author of the message. Currently used to support rendering of help pages |
list of chat messages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.