Closed rosx27 closed 8 months ago
Only messages directed to user_proxy will show, if you want to see messages from the other agents you can implement following the same pattern of userproxyweb, create a queue and a websocket for each agent
@bonadio thanks for the reply, i've tried your suggestion the whole day yesterday but was unable to implement it. I'm just starting to learn python so I used chatgpt and claude to help me but the suggested code was not working.
@bonadio thanks for the reply, i've tried your suggestion the whole day yesterday but was unable to implement it. I'm just starting to learn python so I used chatgpt and claude to help me but the suggested code was not working.
Hi @rosx27, make the UI work on a multi agent setup will not be easy. The way I would do is to register a custom reply function to each agent and in this reply function you would send the data to a queue and then to the websocket. Check the register_reply function of the ConversableAgent. Good luck
@bonadio thanks for the reply, i've tried your suggestion the whole day yesterday but was unable to implement it. I'm just starting to learn python so I used chatgpt and claude to help me but the suggested code was not working.
Hi @rosx27, make the UI work on a multi agent setup will not be easy. The way I would do is to register a custom reply function to each agent and in this reply function you would send the data to a queue and then to the websocket. Check the register_reply function of the ConversableAgent. Good luck
ohh I see what you mean, checking and comparing your implementation of check_termination_and_human_reply
made me think twice about the workflow I'm trying. I'll use prompting and just talk to one agent instead of multiple agents, if there is a code execution, it will be just silent and then a feedback from the agent. thank you!
I changed the code where it requires an openai key. this is the code i'm running now:
autogen_group_chat.py and autogen_chat.py
although the app runs smoothly while using autogen_chat.py as reference in main.py:
from autogen_chat import AutogenChat
if i change it tofrom autogen_group_chat import AutogenChat
so it will use the autogen_group_chat.py instead of autogen_chat.py, the responses during agent conversation are not being displayed on the webpage, only the last response is displayed.this is the console log:
screenshot: