You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a qa engineer,
I want to be able to save a conversation,
So that I can refer to it later
AC
There's a button in the streamlit app that allows saving the conversation history
The conversation is saved as JSON messages to the folder/file described by the project/test case name
Notes
The button should probably appear before we show the input for the user message
# User message
if last_message == None or last_message["role"] == "assistant":
## here
with st.chat_message("user"):
user_message_content = st.text_area(
"User message content",
"Let's write a test for a chat app. We should test a user can send a message.",
key="user_message_content",
label_visibility="collapsed",
)
if user_message_content:
prompt_messages.append(HumanMessage(content=user_message_content))
else:
st.stop()
The reasoning is we probably want to save the conversation after the assistant sent a message. We either save the conversation because we are done, or we write another prompt.
The text was updated successfully, but these errors were encountered:
As a qa engineer,
I want to be able to save a conversation,
So that I can refer to it later
AC
Notes
The text was updated successfully, but these errors were encountered: