Skip to main content

Supervisor Agent

View as Markdown

A Supervisor Agent coordinates tools and subagents, such as Genie Agents, Knowledge Assistants, Unity Catalog functions, MCP servers and agent endpoints, to answer requests that span several domains. It is served through its own serving endpoint. Tools and subagents are managed through the Tool resource. See https://docs.databricks.com/aws/en/generative-ai/agent-bricks/multi-agent-supervisor for the product documentation.

SupervisorAgent object​

A Supervisor Agent coordinates tools and subagents, such as Genie Agents, Knowledge Assistants, Unity Catalog functions, MCP servers and agent endpoints, to answer requests that span several domains. It is served through its own serving endpoint. Tools and subagents are managed through the Tool resource. See https://docs.databricks.com/aws/en/generative-ai/agent-bricks/multi-agent-supervisor for the product documentation.

namestringBetaIDImmutable

The resource name of the Supervisor Agent. Format: supervisor-agents/{supervisor_agent_id} The server assigns the name when the agent is created.

Example: supervisor-agents/0f8fad5b-d9cb-469f-a165-70867728950e

display_namestringBeta

The display name of the Supervisor Agent. It must be unique among the agents in the workspace. Creating an agent with a display name that is already in use fails with ALREADY_EXISTS.

descriptionstringBeta

A summary of what the agent does. It is shown to users of the agent.

instructionsstringBeta

Natural-language guidelines for how the supervisor should respond and how it should delegate requests to its tools and subagents.

idstringDeprecatedBetaOutput only

Deprecated: Use supervisor_agent_id instead. This field is no longer populated.

supervisor_agent_idstringBetaOutput only

The universally unique identifier (UUID) of the Supervisor Agent. It is the last segment of name.

creatorstringBetaOutput only

The email address of the user who created the Supervisor Agent.

create_timestringBetaOutput only

The time at which the Supervisor Agent was created, as an RFC 3339 timestamp.

endpoint_namestringBetaOutput only

The name of the Model Serving endpoint that serves the Supervisor Agent. Query this endpoint to chat with the agent.

Example: mas-0f8fad5b-endpoint

experiment_idstringBetaOutput only

The ID of the MLflow experiment that is created together with the Supervisor Agent.

Get a Supervisor Agent Beta​

GET /api/2.1/{name=supervisor-agents/*}

Gets a Supervisor Agent.

API scopes: supervisor-agents

Parameters​

namestringRequiredpath

The resource name of the Supervisor Agent. Format: supervisor-agents/{supervisor_agent_id}

Example: supervisor-agents/0f8fad5b-d9cb-469f-a165-70867728950e

Response​

Returns the SupervisorAgent object.

List Supervisor Agents Beta​

GET /api/2.1/supervisor-agents

Lists the Supervisor Agents in the workspace that the caller has permission to view.

API scopes: supervisor-agents

Parameters​

page_sizeint32[ 1 .. 100 ]query

The maximum number of supervisor agents to return. If unspecified, at most 100 supervisor agents will be returned. The maximum value is 100; values above 100 will be coerced to 100.

page_tokenstringquery

A page token, received from a previous ListSupervisorAgents call. Provide this to retrieve the subsequent page. If unspecified, the first page will be returned.

Response​

Returns a list of SupervisorAgent objects.

Create a Supervisor Agent Beta​

POST /api/2.1/supervisor-agents

Creates a Supervisor Agent together with its serving endpoint and MLflow experiment. Tools and subagents are added to the agent afterwards with the Tool methods.

API scopes: supervisor-agents

Request body​

The Supervisor Agent to create.

namestringIDImmutable

The resource name of the Supervisor Agent. Format: supervisor-agents/{supervisor_agent_id} The server assigns the name when the agent is created.

Example: supervisor-agents/0f8fad5b-d9cb-469f-a165-70867728950e

display_namestringRequired

The display name of the Supervisor Agent. It must be unique among the agents in the workspace. Creating an agent with a display name that is already in use fails with ALREADY_EXISTS.

descriptionstring

A summary of what the agent does. It is shown to users of the agent.

instructionsstring

Natural-language guidelines for how the supervisor should respond and how it should delegate requests to its tools and subagents.

Response​

Returns the SupervisorAgent object.

Update a Supervisor Agent Beta​

PATCH /api/2.1/{name=supervisor-agents/*}

Updates a Supervisor Agent. Only the fields listed in update_mask are changed. All other fields keep their current values.

API scopes: supervisor-agents

Parameters​

namestringRequiredIDImmutablepath

The resource name of the Supervisor Agent. Format: supervisor-agents/{supervisor_agent_id} The server assigns the name when the agent is created.

Example: supervisor-agents/0f8fad5b-d9cb-469f-a165-70867728950e

update_maskstringRequiredquery

Comma-separated list of the fields to update. Supported values are display_name, description and instructions. The request fails if the mask is empty or names any other field.

Request body​

The Supervisor Agent to update. name identifies the agent. The other fields carry the new values for the paths listed in update_mask.

display_namestringRequired

The display name of the Supervisor Agent. It must be unique among the agents in the workspace. Creating an agent with a display name that is already in use fails with ALREADY_EXISTS.

descriptionstring

A summary of what the agent does. It is shown to users of the agent.

instructionsstring

Natural-language guidelines for how the supervisor should respond and how it should delegate requests to its tools and subagents.

Response​

Returns the SupervisorAgent object.

Delete a Supervisor Agent Beta​

DELETE /api/2.1/{name=supervisor-agents/*}

Deletes a Supervisor Agent together with the resources created for it, including its tools, examples, serving endpoint and MLflow experiment.

API scopes: supervisor-agents

Parameters​

namestringRequiredpath

The resource name of the Supervisor Agent. Format: supervisor-agents/{supervisor_agent_id}

Example: supervisor-agents/0f8fad5b-d9cb-469f-a165-70867728950e