Skip to main content

supervisor_agents

Creates, updates, deletes, gets or lists a supervisor_agents resource.

Overview

Namesupervisor_agents
TypeResource
Iddatabricks_workspace.supervisoragents.supervisor_agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringDeprecated: Use supervisor_agent_id instead.
namestringThe resource name of the SupervisorAgent. Format: supervisor-agents/{supervisor_agent_id}
experiment_idstringThe MLflow experiment ID.
supervisor_agent_idstringThe universally unique identifier (UUID) of the Supervisor Agent.
display_namestring
endpoint_namestringThe name of the supervisor agent's serving endpoint.
create_timestring (date-time)Creation timestamp.
creatorstringThe creator of the Supervisor Agent.
descriptionstringDescription of what this agent can do (user-facing).
instructionsstringOptional natural-language instructions for the supervisor agent.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdeployment_namepage_size, page_tokenLists Supervisor Agents.
createinsertdeployment_name, supervisor_agentCreates a new Supervisor Agent.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
page_sizeintegerThe 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_tokenstringA page token, received from a previous ListSupervisorAgents call. Provide this to retrieve the subsequent page. If unspecified, the first page will be returned.

SELECT examples

Lists Supervisor Agents.

SELECT
id,
name,
experiment_id,
supervisor_agent_id,
display_name,
endpoint_name,
create_time,
creator,
description,
instructions
FROM databricks_workspace.supervisoragents.supervisor_agents
WHERE deployment_name = '{{ deployment_name }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;

INSERT examples

Creates a new Supervisor Agent.

INSERT INTO databricks_workspace.supervisoragents.supervisor_agents (
supervisor_agent,
deployment_name
)
SELECT
'{{ supervisor_agent }}' /* required */,
'{{ deployment_name }}'
RETURNING
id,
name,
experiment_id,
supervisor_agent_id,
display_name,
endpoint_name,
create_time,
creator,
description,
instructions
;