In the first blog we considered teams of AI agents and how they invoke the increase in productivity Adam Smith observed from specialised teams of workers.
In the second blog we looked at the four key steps to autonomous agents (Agentic AI) which were required to to deliver on the promise.
Now we have the tools, let's look at how to manage teams of agents. We will focus on software development with agent teams, but many other applications are possible.
We, the human user, become the software development manager. We specify the objective, who we want on our team and the collaboration methodology (waterfall / agile / etc). The three leading tools are:
“a framework that enables development of LLM applications using multiple agents that can converse with each other to solve tasks…seamlessly allowing human participation”
“provides the entire process of a software company along with carefully orchestrated standard operating procedures"
“a virtual software company that operates through various intelligent agents holding different roles”.
The first task is to establish the team, all the frameworks allow control over what kind of team you need, or even employ a team of teams:
![](https://static.wixstatic.com/media/3cc179_1c76e8dcf41d45e389932cfba0573aee~mv2.png/v1/fill/w_49,h_17,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/3cc179_1c76e8dcf41d45e389932cfba0573aee~mv2.png)
Each agent is an LLM instance, adopting roles like CTO, Programmer, or Reviewer. Roles have a description, a prompt describing their responsibilities. Teams typically share one team memory of progress and prompts. Agents are capable of planning, using diagrams, before they set down code, as per this example from MetaGPT:
![](https://static.wixstatic.com/media/3cc179_cc8bfa4cdcc544baadca7737b6b424ce~mv2.png/v1/fill/w_49,h_29,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/3cc179_cc8bfa4cdcc544baadca7737b6b424ce~mv2.png)
Most diagrams and plans can easily be written by an LLM in code format and presented visually, as above, by tools such as PlantUML or GraphViz.
Having made their plan, they set to work. In the below example, note how they test their code then collaborate to correct errors (in red):
![](https://static.wixstatic.com/media/3cc179_926c8aa612e84da397892d7fe9ccf348~mv2.png/v1/fill/w_49,h_33,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/3cc179_926c8aa612e84da397892d7fe9ccf348~mv2.png)
These team management frameworks can accommodate a human in the loop, as if we were an agent like any other. Hence teams can iteratively make proposals for our feedback and approval.
Conversational Frameworks
We are free to configure any conversational pattern so the team is optimised for the task. Critically, an agent can be an environment, managing the rules and state of a simulation or game in which the other agents act, for example, an agent can adopt the role of a chess board for other agents to compete in.
![](https://static.wixstatic.com/media/3cc179_4b60dac7069348768acff27fec2e3c8d~mv2.png/v1/fill/w_49,h_23,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/3cc179_4b60dac7069348768acff27fec2e3c8d~mv2.png)
A New Recruitment Industry?
OpenAI are close to opening an ‘AgentStore’, a recruitment site for specialised agents. They can then be employed in teams and the more they are employed, the more they learn.
![](https://static.wixstatic.com/media/3cc179_6743693b460e48b79b6831a3b908ba1f~mv2.png/v1/fill/w_49,h_15,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/3cc179_6743693b460e48b79b6831a3b908ba1f~mv2.png)
“If It Aint Tested, It’s Broken”
Hallucination and trustworthiness are correctly cited as serious problems with the generative pretrained transformer (GPT) architecture of today’s LLM’s. Meta's Yann LeCun has been particularly vocal about this, alternatives are under research.
There are many techniques to uncover factual errors or inconsistencies, but all are fallible, there is no algorithm for truth. All of the frameworks feature self reflection and a tester agent. Autogen and ChatDev teams execute their own code in Docker, review errors and rectify. Where user feedback is required then the LLM’s can adopt personas of various users and review their own application, see RecAgent.
These developments are encouraging but assume we present precise SMART objectives, as opposed to vague aspirations. As with ChatGPT, our dialogue is only as enlightening as our question permits, echoing Douglas Adams in ‘Deep Thought’s answer to life the universe and everything.
LLM teams can extend beyond coding to advise on any subject; business strategy, agriculture, logistics, law, accounting, medicine etc. LLM’s are fallible, as per self-driving vehicles, any mission critical application would need hard evidence of performance consistently better than humans. To do this, the teams will need simulation or scenario testing environments to trial their proposals. Only applications where such trials are possible will find agent teams trustworthy.
However, not all tasks are so critical. For example, teams can be configured to create content; writers, illustrators, marketers and SEO specialists in co-operation to create and promote on behalf of resource strapped businesses.
Want to Know More ?
For much more detail and a theoretical basis of agentic AI and teams of agents, see:
‘The Rise and Potential of LLM Based Agents: A Survey.’
Xi et al, 19-Sep-2023 , https://arxiv.org/abs/2309.07864
‘A Survey on LLM Based Autonomous Agents’.
Wang et al, 22-Aug-2023, https://arxiv.org/abs/2308.11432