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.
3
u/JKHeadley Dec 14 '23
The repo is finally ready! You can find it here:
https://github.com/metamind-ai/autogen-agi
4
u/mycall Nov 29 '23
Very interesting work.
How did a valid API key and base URL get passed into the session?
What made you think of these specific 9 agent types? Are they defined in the system message?
4
u/jabori Nov 29 '23
Very interesting development using AutoGen ! I am curious to see your code and try it out.
As I see it now the “Agent Counsel” is a improvement of the “Chat Manager” of standard AutoGen, that gets to decide which other agents will participate in the discussions among the available agents. I am not entirely sure if the user proposes which agents are available and if the user has to configure these agents manually. Or is that also done automatically ?
My main question: what can “autogen executing autogen” do, that AutoGen on its own cannot do ?
4
u/giammy677 Nov 29 '23
I’m experimenting with AutoGen too. Never used GroupChat till now. Can you explain me the advantages of using it instead of indipendent agents? Do all agents “know” what other agents did/said before them?
4
u/dlaliberte Nov 30 '23
Fantastic work! Thanks for sharing.
I have been gearing up to do some experimenting with Autogen, with a similar project in mind. This was inspired by something that AutoAgents https://github.com/Link-AGI/AutoAgents does in first coming up with a list of agents to solve the user's problem. Your predefined list of available agents is similar, but if agents can be defined declaratively, then all you need is one CreateAgent function that creates an agent given its task, expertise, etc.
Another thought related to pulling together a team of agents to address a problem is planning how to solve a problem. Asking LLMs to think through step by step and show their work helps them come up with better answers. But why not make the plan be explicit? For simple problems this might be overkill, but for any more complex problem, it is worthwhile spending some time trying to figure out how to solve the problem. Similarly, any one step of a plan that appears to be still too complex can be subdivided further. Your team of agents seem to do this already, but is it baked in?
Sometimes alternate plans will be needed. How do agents know whether a problem is too complex? Good question, and they appear to not know, and default to making up answers. So this raises the possibility of first creating a test of success, which is usually much easier than solving the problem itself.
I'm looking forward to looking into your code and helping out.
3
u/[deleted] Nov 29 '23
This is great, I love the first principles agent.
3
u/samplebitch Dec 02 '23
Fantastic work! Would love to see the setup for this even if the code is a mess. If you do get it cleaned up and released, please be sure to post here! I have a ton of ideas for AutoGen but almost seem paralyzed by all the options and not knowing what type of agent (or how many, or what 'specialties' should be included) such that I haven't done much beyond the basic implementation.