Skip to contents

Chat interfaces

chat_ui()
Create a chat UI element
chat_app() chat_server()
Open a live chat application in the browser
chat_append()
Append an assistant response (or user message) to a chat control
chat_append_message()
Low-level function to append a message to a chat control
chat_clear()
Clear all messages from a chat control
chat_greeting()
Create a greeting for a chat UI
chat_set_greeting()
Set the greeting for a chat UI
chat_get_greeting()
Get the current greeting content
update_chat_user_input()
Update the user input of a chat control

Page chat

page_chat()
Create a full-window chat page
page_chat_theme()
Create a theme for page_chat()
chat_nav_panel()
Create a page-chat navigation panel
chat_sidebar()
Create a chat sidebar configuration
chat_ui_history()
Create a chat history selector
chat_drawer()
Create a chat drawer configuration
chat_drawer_show()
Show a chat drawer
chat_drawer_hide()
Hide a chat drawer
chat_drawer_toggle()
Toggle a chat drawer
chat_drawer_update()
Update a chat drawer

Streaming markdown interface

markdown_stream()
Stream markdown content
output_markdown_stream()
Create a UI element for a markdown stream.

Chat history

chat_enable_history()
Enable conversation history for a chat
history_options()
Configure chat history options
ConversationStore
Abstract base class for conversation storage backends
FileConversationStore
File-based conversation storage backend
chat_restore()
Add Shiny bookmarking for shinychat

Slash commands

ContentSlashCommand()
Slash command content

File attachments

chat_attachment()
Create an attachment from a local file path

Integration with ellmer

contents_shinychat()
Format ellmer content for shinychat
tool_result_display()
Customize how a tool result is displayed