CertSafari
    Databricks Certified Generative AI Engineer Associate· Lessons

    Domain 1 · Lesson 6/56

    Agent Bricks Supervisor Agent and When to Build a Custom Agent

    Determine how and when to use Agent Bricks (Knowledge Assistant, Multiagent Supervisor, Information Extraction) to solve problems

    8 min read
    1.79% of exam
    3 sources
    Published 3 Oct 2026
    Docs as of 30 Sep 2026

    What you will be able to do

    • Identify when a multi-agent Supervisor Agent fits a problem and what it can coordinate
    • Apply the Supervisor Agent's permission model and limits
    • Choose between Agent Bricks, a simpler design pattern, and a custom-coded agent

    1.Supervisor Agent: one endpoint over many specialists

    A single-purpose brick runs out of reach once a request crosses domains. An example is a question that needs both research reports and usage data. Supervisor Agent is the Agent Bricks answer. It builds a supervisor that delegates tasks to specialised subagents and tools, then combines their results into one response. The documented use cases are market analysis across research reports and usage data, answering questions about internal processes while automating a ticket backlog, and customer service across policy, FAQ and account questions. You must provide at least one subagent and can use at most 50 agents in one supervisor system. A Knowledge Assistant endpoint is one of the supported subagent types, so the bricks compose.

    This is the key design consequence. Granting access to the supervisor is not enough, because each subagent type needs its own end-user permission.

    Selected Supervisor Agent subagent types and the end-user permission each needs
    Subagent typeRequired end user permission
    Genie AgentAccess to the Genie Agent and its underlying Unity Catalog objects
    Knowledge Assistant agent endpointCAN QUERY on the agent endpoint
    Unity Catalog functionEXECUTE on the Unity Catalog function
    AI Search index (Delta Sync indexes only)USE CATALOG, USE SCHEMA, and SELECT on the AI Search index
    Custom agent on Databricks AppsCAN_USE on the Databricks app
    Web searchNo additional permissions; the user approves each invocation

    Two capabilities come built in. Every supervisor has a code execution tool that runs model-generated Python (the default), SQL or shell commands in a sandboxed serverless session, and you don't configure it. Web search always runs on the databricks-gpt-5 Foundation Model API, whatever model powers the supervisor. It needs databricks-gpt-5 in the workspace's system.ai allowlist and is unavailable in workspaces with the Enhanced Security and Compliance add-on.

    Checkpoint 1 of 4· Check yourself

    A supervisor is powered by a non-GPT model. The team adds the web search tool. Which model performs the web search?

    Sources1

    2.Building, tuning and sharing a supervisor

    You can build a supervisor in the Agents UI. You can also build one with the Databricks SDK for Python, which is in Beta. With the SDK, the supervisor is an object with a display name, a description and instructions. Each subagent is attached as a Tool.

    Creating a supervisor agent with the Databricks SDKpython
    from databricks.sdk import WorkspaceClient
    from databricks.sdk.service.supervisoragents import SupervisorAgent
    
    w = WorkspaceClient()
    
    supervisor_agent = SupervisorAgent(
        display_name="<display-name>",
        description="<description>",
        instructions="<instructions>",
    )
    created = w.supervisor_agents.create_supervisor_agent(supervisor_agent=supervisor_agent)
    print(created)

    Checkpoint 2 of 4· Fill the gap

    Which SDK method attaches a Knowledge Assistant to an existing supervisor?

    tool = Tool(
        tool_type="knowledge_assistant",
        description="<tool-description>",
        knowledge_assistant=KnowledgeAssistant(
            knowledge_assistant_id="<knowledge-assistant-id>",
        ),
    )
    
    created_tool = w.supervisor_agents. ? (
        parent="supervisor-agents/<supervisor-agent-id>",
        tool=tool,
        tool_id="<tool-id>",
    )

    To improve quality, you give feedback instead of writing code. In the Examples tab, add questions and task scenarios. Share the configuration page with experts, who need Can Manage on the supervisor plus access to each subagent, and have them attach Guidelines to questions. The supervisor is then retrained and optimised from the labeled data. People who only consume the endpoint get Can Query, which lets them call it from AI Playground or the API but not view or edit the agent.

    Sources1

    3.Agent Bricks, a simpler pattern, or a custom agent?

    Agent Bricks isn't the only option, and a multi-agent supervisor isn't the default. Databricks' design-pattern guidance says to start simple and add agentic behaviour only when you need it, because flexibility costs complexity and latency.

    Agent design patterns and when each fits
    PatternWhen to useMain cost
    LLM + promptGeneric Q&A, quick short-term prototypeMinimal customization
    Deterministic chainWell-defined tasks, static pipelines such as basic RAGInflexible; requires code changes to adapt
    Single-agent systemModerate to complex queries in the same domainLess predictable; guard against repeated or incorrect tool calls
    Multi-agent systemLarge or cross-functional domains with multiple expert agentsComplex to orchestrate; harder to trace and debug

    A supervisor earns its complexity when the work really is multi-domain. Signs of this are distinct skill areas, too many tools to fit in one agent's schema, or a need for agents to critique one another. The general risks don't go away: agents can bounce tasks between themselves without resolving them, so constraints and tracing still matter. When no brick fits, for example because you need a specific authoring library or control flow, build a custom agent in Python with LangGraph, LangChain, OpenAI, LlamaIndex or another library. This isn't an either/or choice. A custom agent deployed on Databricks Apps can itself be a supervisor subagent.

    Checkpoint 3 of 4· Exam question

    A finance team receives thousands of scanned vendor invoices as PDFs. They need to populate a Delta table with structured columns such as `invoice_number`, `vendor_name`, `invoice_date`, and `total_amount` for downstream reporting, and want to avoid writing custom parsing code for each vendor's invoice layout. Which Agent Bricks component best fits this requirement?

    Checkpoint 4 of 4· Check yourself

    A retailer needs one assistant that answers product-documentation questions, queries sales data through a Genie Agent, and calls a returns-processing Unity Catalog function. Which choice best fits the guidance?

    Sources23

    Exam traps

    Each one states something that sounds right. Open it to see what is actually true.

    1. 1.A multi-agent supervisor is the best default design for any agent application.Why is that wrong?

      The guidance is to start simple and move to multi-agent only for large or cross-functional domains. Multi-agent systems are harder to orchestrate, trace and debug.

      Covered in Agent Bricks, a simpler pattern, or a custom agent?

    2. 2.Any AI Search index can be added to a supervisor as a subagent.Why is that wrong?

      Supervisor Agent supports only Delta Sync indexes as AI Search index subagents.

      Covered in Supervisor Agent: one endpoint over many specialists

    3. 3.Granting a user CAN QUERY on the supervisor endpoint gives them answers from every subagent.Why is that wrong?

      The supervisor enforces each end user's own access, so users need explicit permission on each subagent and its data.

      Covered in Supervisor Agent: one endpoint over many specialists

    Sources

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “You cannot use more than 50 agents in a single supervisor system.”
      ↩︎ Supervisor Agent: one endpoint over many specialists
      “Every supervisor includes a code execution tool by default.”
      ↩︎ Supervisor Agent: one endpoint over many specialists
      “Supervisor Agent will retrain and optimize the supervisor from the new data.”
      ↩︎ Building, tuning and sharing a supervisor
      “If the SME does not have access to any subagents, the supervisor will end the conversation.”
      ↩︎ Building, tuning and sharing a supervisor
      “Can Query: Allows querying the agent endpoint in AI Playground and through the API.”
      ↩︎ Building, tuning and sharing a supervisor
      “AI Search index subagents support only Delta Sync indexes.”
      ↩︎ Exam trap 2
      “The supervisor has built-in access controls, so that its end users only access the subagents and data they have access to.”
      ↩︎ Exam trap 3
      “the supervisor will redirect the conversation away from subagents the user cannot access.”
      ↩︎ Prediction
      “Supervisor Agent uses the databricks-gpt-5 Foundation Model API for web search, regardless of the model that powers the supervisor.”
      ↩︎ Checkpoint
      “coordinates Genie Agents, agent endpoints, Unity Catalog functions, MCP servers, and custom agents to work together to complete complex tasks across different, specialized domains.”
      ↩︎ Checkpoint
    2. 2.
      “You have so many tools that fitting them all into one agent's schema is impractical; each agent can own a subset.”
      ↩︎ Agent Bricks, a simpler pattern, or a custom agent?
      “Agents can bounce tasks indefinitely among themselves without resolution if not carefully constrained.”
      ↩︎ Agent Bricks, a simpler pattern, or a custom agent?
      “When building any AI-powered application, start simple.”
      ↩︎ Exam trap 1
    3. 3.
      “Supports agents written with any authoring library, including LangGraph, LangChain, OpenAI, and LlamaIndex.”
      ↩︎ Agent Bricks, a simpler pattern, or a custom agent?

    Spotted a mistake, or was something unclear? Tell us.