Hi @blackary I’m using AutoGen to create a multi-agent system. When I run the agent, I can see its thought process in the terminal. How can I display this “thinking” process in a Streamlit UI in real time?
Here’s a sample of my code:
python
CopyEdit
sql_manager = GroupChatManager(
sql_groupchat,
llm_config=config_list[0],
max_consecutive_auto_reply=2
)
with st.spinner("Running..."):
sql_query = {}
sql_manager.initiate_chat(sql_manager, message=user_question, clear_history=True)
response = sql_groupchat.messages[-1]['content']
sql_query['query'] = sql_groupchat.messages[-2]['content']
st.write_stream(stream_data(text=response))
How can I update the Streamlit UI dynamically to show the agent’s thought process as it generates responses?