Can anyone explain me the difference?
Are they both the same thing.
From my understanding here’s what they mean
Sub agents
They are like an extension of the main agent context. So an agent with a context and a task might assign work to different sub agent so they can work in loops with the main agents, until the desired result is achieved. Once all sub-agents give the desired output, the main agent then combines everything and gives back a final output. You don’t necessarily set this up yourself, and Claude ai or any other ai just works that way?
Multi agents
This on the other hand are different agents with their own context working together? For example, if I have an agent that supposed to perform calculations and then I have an agent that uses these calculations to generate graphs.
So in this case I can make them work together and they loop with each other. This is the very basic example for a multi agent that runs in sequence. There also can be agents that follow a hierarchy or can work parallel?
And how can I set this up?