def show_past_chat()

in UI/pages/chat_agent_app.py [0:0]


def show_past_chat():
    """ """
    for message in st.session_state.messages:
        with st.chat_message(message["role"]):
            st.markdown(message["content"].replace("$", r"\$"))  # noqa: W605
            try:
                if message["backend_details"]:
                    with st.expander("Intermediate Steps:"):
                        st.markdown(message["backend_details"])
            except KeyError:
                pass