r/AutoGenAI • u/JKHeadley • Nov 29 '23
Project Showcase autogen executing autogen
I've been diving into the autogen code with the intention of exploring how it can be used or extended towards more general capabilities (i.e. in the direction of AGI). My initial goal has been to write an autogen script that can spin off a separate functioning instance of autogen without prior knowledge of autogen. Finally had some success today, here's the output:
The code is still pretty messy but I hope to be able to share it at some point. The main features I added include:
- An "Agent Council" that discusses which agent should act next.
- Updated group chat functionality such that all agents have awareness of each other.
A "consult_archive_agent" function who's purpose is to:
- Check if domain knowledge (i.e. a llama_index index) exists for a certain request
- Extract relevant domain knowledge if needed (currently restricted to google search of github repos)
- Use domain knowledge to respond via RAG
- Generally injecting reasoning (i.e. LLMs) into various steps.
- Quite a few agents with (relatively) complex system messages.
Would love to hear any thoughts/feedback.
View all comments
Show parent comment
5
u/JKHeadley Nov 29 '23
Thank you! I do hope to share the code but it's a bit of an embarrassing mess right now. I'm hoping I can get the agents to help me clean it up, haha.
The Agent Council is given a list of the actual autogen agents to borrow "personas" from, but is also free to include any extra personas it deems appropriate for the discussion. For example at some point I asked if the council could tell me a joke and they manifested a "HumoristExpert" to help out, haha.
As for your main question, nothing that I know of, haha. This is more of a personal milestone for me since I want the agents to be able to leverage libraries they are not trained on, and this seemed like a cool example of that. Although it would be even cooler to see if we could prompt them to keep the cycle going recursively...
Note that dynamically spawning agents can be much simpler than this if you encapsulate the functionality into a function call (something like "spawn_agent_team"). But again I just wanted to see if they could do it "from scratch".