Suraj Yadav commited on
Commit
7d93036
·
1 Parent(s): 3de25ad

Update the Chat UI: Putting tool call msg in st.expander of streamlit.

Browse files
src/basicchatbot/ui/streamlitui/__pycache__/display_result.cpython-311.pyc CHANGED
Binary files a/src/basicchatbot/ui/streamlitui/__pycache__/display_result.cpython-311.pyc and b/src/basicchatbot/ui/streamlitui/__pycache__/display_result.cpython-311.pyc differ
 
src/basicchatbot/ui/streamlitui/display_result.py CHANGED
@@ -83,9 +83,11 @@ class DisplayResultStreamlit:
83
 
84
  st.session_state.message_history.append({"role": "assistant", "message": tool_message})
85
  with st.chat_message("assistant"):
86
- st.markdown("🔧 **Tool Call Start**")
87
- st.markdown(message.content)
88
- st.markdown("🔧 **Tool Call End**")
 
 
89
 
90
  except Exception as e:
91
  st.error(f"Error processing response: {str(e)}")
 
83
 
84
  st.session_state.message_history.append({"role": "assistant", "message": tool_message})
85
  with st.chat_message("assistant"):
86
+ # st.markdown("🔧 **Tool Call Start**")
87
+ # st.markdown(message.content)
88
+ with st.expander(label="Tool Call",expanded=False):
89
+ st.markdown(tool_message)
90
+ # st.markdown("🔧 **Tool Call End**")
91
 
92
  except Exception as e:
93
  st.error(f"Error processing response: {str(e)}")