Start with one agent.
A multi-agent system is a set of agents that each handle part of a task and pass work between them. It is harder to build and to test than a single agent, so begin with one agent doing the whole job.
Split the job when one agent stops coping. The signs are instructions that have grown long and pull against each other, a list of tools so large that the agent picks the wrong one, or parts of the job that need different permissions.
Decide what each agent does and hands on.
Give each agent one task with a clear end, such as gathering the facts, drafting the reply or checking the draft. Each has its own instructions and only the tools and access its task needs.
Write down what passes between them. State what each agent receives, what it must produce and in what form, because a vague handover is where information gets lost.
Decide what coordinates them. A fixed order, in which each agent runs after the one before, is the easiest to follow. An agent that directs the others allows more flexibility and is harder to predict.
Test each agent, then the whole.
Test every agent alone first, on cases with known answers. An agent that fails alone will fail in the group, and the cause is easier to find alone.
Then test them together and read what was passed at each step. A mistake by one agent carries through the others unless something checks it, so place a check or a person where an error would matter most.
Keep a record of each run that shows which agent did what. Without one, a wrong result is hard to trace to its cause.
- Related terms
- Read more
- Lessons
This is general guidance, not advice for your situation.