Closed Vlassie closed 5 months ago
Hey @Vlassie, have you checked out the native st.chat_input and st.chat_message? That should work well with them!
For interactivity inside chat messages, using st.chat_message
and st.chat_input
directly is the best way to got 👍 Making that stateful in a generic way is quite complicated.
Description
I would love to be able to add expanders, buttons or other interactable elements to stateful chat. This could, for example, make answers from a chatbot more customizable. One example would be the ability for a RAG application to return its sources in an expander, such that the sources aren't simply added to the answer text.