Multi-Agent Reference Designs and Hands-On Projects

Build three projects in rising order of difficulty, with the permissions, tests and stop conditions that make them credible.

BeginnerIntermediateExpert · 12 min read · Last updated:

In short

Start with a governed analytics agent over a few tables, then add documents and lookups to make an enterprise data agent, then coordinate specialists with a supervisor you write and test. Each project has acceptance criteria. Use synthetic or approved data, a development workspace and a budget.

What you will learn: when a multi-agent design is justified, four reference patterns, three projects with steps and acceptance tests, routing and handoff design, how to evaluate a system of agents and how to present your work.
Prerequisites: Genie, Genie Agents and Genie MCP, Unity Catalog governance and Supervisor and Orchestrator-Worker Patterns.

Versions used

The example runs in November 2026 with Python 3.13 and only the standard library. It uses keyword routing and invented users so that the control logic is visible; a real system would call models and platform services. Platform facts come from Databricks documentation checked on November 28, 2026. The designs are teaching material, not official Databricks reference architectures. Running cloud services can cost money.

Beginner Designs and first project

When more than one agent helps

A second agent is justified by a real boundary: different data permissions, different owners, different tool sets or evaluation that must proceed separately. It is not justified by a diagram that looks organized. Each handoff adds latency and cost and creates a place where context is lost. Try one agent with a few well-described tools first, as single versus multi-agent advises.

Four reference patterns

PatternHow it worksGood fitMain risk
One agent, many toolsOne loop chooses among search, queries and functionsOne team and a modest tool setTool confusion as the set grows
RouterOne decision sends the request to a specialist that finishes itClearly separate question typesWrong route
SupervisorA coordinator calls specialists, possibly several, and combines resultsQuestions spanning domainsCost, loops and distorted summaries
PipelineFixed stages, some using agentsKnown, repeatable processingErrors passed downstream

Databricks documentation now labels the configured Supervisor Agent as legacy and points new coordination in code to the Agent Bricks CLI. Older tutorials that click through a supervisor setup should be read with that in mind.

A reference design

User applicationVerified identity
SupervisorRoute, check, limit and combine
Data specialistGenie Agent or query functions
Document specialistAI Search over approved text
Action specialistNarrow functions with approval
FoundationsUnity Catalog, gateway, traces and evaluation
Specialists have different permissions, which is the reason to separate them.

Project 1: a governed analytics agent

Goal: sales staff ask about weekly orders and returns and see only their region.

  1. Create a development catalog schema with synthetic orders, returns, products and regions.
  2. Add descriptions, keys and a few views that exclude test records.
  3. Apply a row filter by region and create test users or groups.
  4. Configure a Genie Agent with only the needed objects.
  5. Add governed definitions and two verified queries for revenue and return rate.
  6. Write twenty benchmark questions, including ambiguous and forbidden ones.
  7. Tune using other questions, then run the benchmark.
  8. Test as users from two regions and record the results.
Acceptance testPass condition
Official revenue questionUses verified logic and matches a hand-checked value
Region isolationNo query by one region returns another region's rows
Ambiguous periodStates the default or asks
Question outside scopeSays it cannot answer from this data
CostBenchmark run stays within your set budget
Intermediate An enterprise data agent

Project 2: an enterprise data agent

Goal: a service assistant answers policy questions with citations, looks up order status and drafts, but never sends, a refund request.

  1. Prepare a policy passage table with versions, effective dates and audience.
  2. Build an AI Search index synchronized from that table.
  3. Write a catalog function that returns status for one order identifier, with validation.
  4. Create a table for draft requests in a transactional store.
  5. Write the agent with three tools: search, status and draft.
  6. Give the application its own service principal with only those grants.
  7. Trace every call and create an evaluation dataset with expected tool use.
  8. Deploy to development, then promote through your pipeline.
Acceptance testPass condition
Policy answerCites the current version; withdrawn text never appears
Unknown orderReports not found; invents nothing
Other customer's orderRefused by trusted checks
Instruction hidden in a documentNo draft or lookup outside the user's request
Tool outageSays what failed and does not claim success
Repeated submissionOne draft only

See agent data services for the stores and tool testing for the checks.

Project 3: a supervisor with specialists

Goal: combine the two projects behind one entry point, with an action specialist that requires approval.

Write the routing logic so that it can be tested without calling the specialists. Begin with explicit rules, then compare a model-based router on the same test set. Keep the access check in code, using the verified identity, after routing and before delegation.

Routing with access checks

"""A small supervisor: route, check access, delegate and keep a trace."""

SPECIALISTS = {
    "data": {"words": {"revenue", "orders", "count", "average"},
             "access": "sales"},
    "docs": {"words": {"policy", "warranty", "how", "guide"},
             "access": "handbook"},
    "action": {"words": {"cancel", "refund", "update"},
               "access": "operations", "approval": True},
}
USERS = {"ana": {"sales", "handbook"}, "ben": {"handbook", "operations"}}


def route(question):
    words = set(question.lower().strip("?.").split())
    hits = {n: len(words & s["words"]) for n, s in SPECIALISTS.items()}
    top = max(hits.values())
    best = [n for n, h in hits.items() if h == top]
    return best[0] if top and len(best) == 1 else None


def handle(user, question, approved=False):
    name = route(question)
    if name is None:
        return "ask_user", "unclear which specialist should answer"
    spec = SPECIALISTS[name]
    if spec["access"] not in USERS[user]:
        return "refused", f"{user} lacks {spec['access']} access"
    if spec.get("approval") and not approved:
        return "needs_approval", name
    return "done", name


TESTS = [
    ("ana", "average orders last week?", ("done", "data")),
    ("ana", "refund order 12", ("refused", None)),
    ("ben", "refund order 12", ("needs_approval", None)),
    ("ben", "what is the warranty policy?", ("done", "docs")),
    ("ben", "how do I count revenue?", ("refused", None)),
    ("ana", "tell me about last week", ("ask_user", None)),
]

passed = 0
for user, question, (want, who) in TESTS:
    status, detail = handle(user, question)
    ok = status == want and (who is None or detail == who)
    passed += ok
    print(f"{'ok  ' if ok else 'FAIL'} {user}: {question!r} -> {status}: {detail}")
print(f"{passed}/{len(TESTS)} routing tests passed")

Output:

ok   ana: 'average orders last week?' -> done: data
ok   ana: 'refund order 12' -> refused: ana lacks operations access
ok   ben: 'refund order 12' -> needs_approval: action
ok   ben: 'what is the warranty policy?' -> done: docs
ok   ben: 'how do I count revenue?' -> refused: ben lacks sales access
ok   ana: 'tell me about last week' -> ask_user: unclear which specialist should answer
6/6 routing tests passed

The tests cover the right route, a refusal, an approval requirement and an unclear request. The fifth case shows a weakness worth noticing: "how do I count revenue" matched two data words and one documentation word, so the router chose data and then refused the user. The person may have wanted documentation. Keyword routing is brittle by design here. In your project, add such cases to the test set, measure how often each router misroutes them and decide whether asking the user is better than guessing.

Expert Handoffs, evaluation and delivery

Design handoffs

Define a message between supervisor and specialist with fields rather than free text:

FieldPurpose
Task and constraintsWhat to do, period, region, limits
Verified user contextSet by trusted code, not by the model
Result and statusSuccess, refused, not found or failed
EvidenceQuery, source identifiers and dates
Cost and steps usedEnforce a shared budget

The Genie Agent MCP server does not carry conversation history, according to documentation, so a supervisor must send complete questions. Pass numbers and identifiers through unchanged and let the final answer cite them. See handoffs and shared state.

Limits and loops

  • Cap total steps, specialist calls, time and cost per request.
  • Do not let specialists call the supervisor back without a limit.
  • Stop when two attempts return the same failure.
  • Require approval outside the model for any change, bound to the exact action.
  • Return a partial answer clearly labeled as partial.

Evaluate the system

Score three levels separately: did the router choose correctly, did each specialist do its job on fixed inputs and was the combined answer correct and well supported? A system-level score alone cannot tell you which part to fix. Compare the multi-agent version with the single-agent baseline on quality, latency and cost per successful task. If the baseline wins, keep the baseline and say so. Multi-agent systems in production covers operation.

Trace across agents

Use one request identifier through every call, including MCP and function calls, so that a single trace shows the whole path. Record which identity each specialist used. When an answer is wrong, you should be able to see in a minute whether the route, the data, the handoff or the summary caused it.

Stretch goals

  • Add user authorization where available and prove that results differ correctly by user.
  • Add a gateway rate limit and observe behavior when it is hit.
  • Introduce a bad document load and show your checks stopping publication.
  • Roll back a release and measure how long it takes.
  • Replace keyword routing with a model router and report the confusion table.

Build the test set before the agent

For each project, write the test cases first. It forces you to say what correct behavior is and gives you a measure from the first run. A useful starting mix looks like this:

GroupExample for the service assistantExpected
Common requestStatus of an existing orderCorrect lookup and plain answer
Policy questionCan opened items be returned?Current policy with citation
CombinedIs this order still inside the return window?Lookup, policy and a correct comparison
AmbiguousWhere is my parcel?Asks which order
MissingAn order that does not existSays not found
ForbiddenAnother person's orderRefusal without detail
Hostile contentA document that says to refund everyoneNo unrequested action
FailureLookup tool returns an errorHonest report and safe next step

Write expected tool calls as well as expected answers. An answer can be right by luck while the agent skipped the check that makes it dependable.

Milestones and stop conditions

  1. Data ready: tables, descriptions and permissions pass tests without any agent.
  2. Tools ready: each function and search query passes its contract tests.
  3. Agent baseline: one agent runs the full test set and results are recorded.
  4. Hardening: forbidden, hostile and failure cases pass.
  5. Delivery: a pipeline deploys to a second environment and rollback works.
  6. Decision: compare against the goal and decide whether anything more complex is needed.

Stop and reconsider if a milestone cannot be passed with a reasonable effort. A conclusion such as "a dashboard answers these questions better" is a successful project outcome when the evidence supports it.

Plan the budget

Before creating anything, list the resources each project needs and which of them cost money while idle. Set a spending alert, tag resources with the project name and keep the evaluation set small while you iterate. Estimate the cost of one full evaluation run, including judge calls, because you will run it many times. See cost attribution.

Present your work

A strong project write-up states the problem, the design and why simpler options were rejected, the permissions, the test set, results including failures, cost and what you would change. Use synthetic data and remove workspace addresses, tokens and internal names before publishing anything. Building a portfolio has a structure.

Clean up

When you finish, stop or delete applications, warehouses, indexes, databases, endpoints and scheduled jobs you created, then check billing records a day or two later for anything still accruing. Revoke temporary grants and delete test principals. Cleanup is part of the project.

Review each project with someone else

Ask a colleague or a study partner to try to break your agent for half an hour. Give them a normal user account and the purpose statement, nothing more. Note every question that produced a wrong, unsupported or overconfident answer, and every action that surprised you. Then sort the findings by where the fix belongs: data, permissions, tool design, instructions, routing or the user interface. Many first reviews find that the largest group belongs to data and descriptions rather than to the model.

Finish with a one-page decision record: what was built, what the tests show, what remains unsafe or unknown and whether you would let real users try it. Writing "not yet, because" followed by specific reasons is a mark of good engineering.

Common mistakes

MistakeConsequenceInstead
Starting with the supervisorNothing underneath can be trustedMake each specialist pass alone
Real customer data in a practice projectExposure and policy breachSynthetic data
Access decided by the router promptBypassCheck identity in code and data
No baselineComplexity cannot be justifiedCompare with one agent
Happy-path demo onlyFailures appear in front of usersTest refusal and outage
Leaving resources runningSurprise costClean up and check

Checklist

  • Each project has a written goal, data and acceptance tests.
  • Permissions are tested with at least two different users.
  • Specialists pass their own tests before being combined.
  • Routing has a test set including unclear requests.
  • Budgets and step limits are enforced in code.
  • A baseline comparison is recorded.
  • Resources are cleaned up.

Frequently asked questions

Can I do these projects with a free account?

Some parts may be possible in free or trial offerings, but features and limits differ. Check what your account includes before starting, and set a budget if it can incur charges.

How long should the three projects take?

It varies with experience. Plan each as several focused sessions, and treat tests and permissions as the main work rather than the final polish.

Is a model router better than rules?

It often handles varied wording better and fails in less predictable ways. Measure both on the same cases before choosing.

What should I show an interviewer?

Your test set, a failure you found, how you fixed it and what you chose not to build. That shows judgment better than a smooth demo.

References

Where to go next