Relative Content

Tag Archive for autogen

ImportError: cannot import name ‘Autogen’ from ‘autogen’

I’ve installed pyautogen module and have validated the location and version including checking for duplicate autogen.py, etc., but I’m getting the above error ImportError: cannot import name ‘Autogen’ from ‘autogen’.Tried multiple times reinstalling the module in a variety of ways, but no luck. what could be wrong and what are the tips to solve this

My autogenstudio userproxy excute code is successful but without any output

I have created a autonomous workflow with user proxy agent and my assistant agent.
For my assistant agent I provide a skill, and in the past it works. However recently my output from my user proxy agent is blank, even in the console the execution is successful. I don’t get it.
exitcode: 0 (execution successful) Code output:

Autogen: Having an agent dynamically decide to which other agent to talk to

Example: I want to have a human user (represented by a UserProxy instance) having a multiturn conversation with an AssistantAgent (main_agent) to solve some complex task. During the conversation the assistant dynamically decides to have 1:1 conversations with other specialized helper Agents. For example the task might be do create some document about a specific topic and one helper agent would know how to do web-research (research_helper) and the other how to create diagrams (diagram_helper). The main Assistant would from time to time have ad hoc conversations with these helpers asking them to perform some task (these might be multiturn conversations).
That means for each turn the assistant would have to dynamically decide if to send a message to the user or any of the helpers.
How to implement this communication pattern?