supervisoragents

package
v0.134.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Manage Supervisor Agents and related resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// App name
	Name string `json:"name"`
}

Databricks app. Supported app: custom mcp, custom agent.

type CreateExampleRequest added in v0.132.0

type CreateExampleRequest struct {
	// The example to create under the parent Supervisor Agent.
	Example Example `json:"example"`
	// Parent resource where this example will be created. Format:
	// supervisor-agents/{supervisor_agent_id}
	Parent string `json:"-" url:"-"`
}

type CreateSupervisorAgentRequest

type CreateSupervisorAgentRequest struct {
	// The Supervisor Agent to create.
	SupervisorAgent SupervisorAgent `json:"supervisor_agent"`
}

type CreateToolRequest

type CreateToolRequest struct {
	// Parent resource where this tool will be created. Format:
	// supervisor-agents/{supervisor_agent_id}
	Parent string `json:"-" url:"-"`

	Tool Tool `json:"tool"`
	// The ID to use for the tool, which will become the final component of the
	// tool's resource name.
	ToolId string `json:"-" url:"tool_id"`
}

type DeleteExampleRequest added in v0.132.0

type DeleteExampleRequest struct {
	// The resource name of the example to delete. Format:
	// supervisor-agents/{supervisor_agent_id}/examples/{example_id}
	Name string `json:"-" url:"-"`
}

type DeleteSupervisorAgentRequest

type DeleteSupervisorAgentRequest struct {
	// The resource name of the Supervisor Agent. Format:
	// supervisor-agents/{supervisor_agent_id}
	Name string `json:"-" url:"-"`
}

type DeleteToolRequest

type DeleteToolRequest struct {
	// The resource name of the Tool. Format:
	// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
	Name string `json:"-" url:"-"`
}

type Example added in v0.132.0

type Example struct {
	// The universally unique identifier (UUID) of the example.
	ExampleId string `json:"example_id,omitempty"`
	// Guidelines for answering the question.
	Guidelines []string `json:"guidelines"`
	// Full resource name:
	// supervisor-agents/{supervisor_agent_id}/examples/{example_id}
	Name string `json:"name,omitempty"`
	// The example question.
	Question string `json:"question"`

	ForceSendFields []string `json:"-" url:"-"`
}

An example associated with a Supervisor Agent. Contains a question and guidelines for how the agent should respond.

func (Example) MarshalJSON added in v0.132.0

func (s Example) MarshalJSON() ([]byte, error)

func (*Example) UnmarshalJSON added in v0.132.0

func (s *Example) UnmarshalJSON(b []byte) error

type GenieSpace

type GenieSpace struct {
	// Deprecated: use space_id instead. Still REQUIRED for backward
	// compatibility until a future API version removes it.
	Id string `json:"id"`
}

type GetExampleRequest added in v0.132.0

type GetExampleRequest struct {
	// The resource name of the example. Format:
	// supervisor-agents/{supervisor_agent_id}/examples/{example_id}
	Name string `json:"-" url:"-"`
}

type GetSupervisorAgentPermissionLevelsRequest added in v0.132.0

type GetSupervisorAgentPermissionLevelsRequest struct {
	// The supervisor agent for which to get or manage permissions.
	SupervisorAgentId string `json:"-" url:"-"`
}

type GetSupervisorAgentPermissionLevelsResponse added in v0.132.0

type GetSupervisorAgentPermissionLevelsResponse struct {
	// Specific permission levels
	PermissionLevels []SupervisorAgentPermissionsDescription `json:"permission_levels,omitempty"`
}

type GetSupervisorAgentPermissionsRequest added in v0.132.0

type GetSupervisorAgentPermissionsRequest struct {
	// The supervisor agent for which to get or manage permissions.
	SupervisorAgentId string `json:"-" url:"-"`
}

type GetSupervisorAgentRequest

type GetSupervisorAgentRequest struct {
	// The resource name of the Supervisor Agent. Format:
	// supervisor-agents/{supervisor_agent_id}
	Name string `json:"-" url:"-"`
}

type GetToolRequest

type GetToolRequest struct {
	// The resource name of the Tool. Format:
	// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
	Name string `json:"-" url:"-"`
}

type KnowledgeAssistant

type KnowledgeAssistant struct {
	// The ID of the knowledge assistant.
	KnowledgeAssistantId string `json:"knowledge_assistant_id"`
	// Deprecated: use knowledge_assistant_id instead.
	ServingEndpointName string `json:"serving_endpoint_name,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (KnowledgeAssistant) MarshalJSON

func (s KnowledgeAssistant) MarshalJSON() ([]byte, error)

func (*KnowledgeAssistant) UnmarshalJSON

func (s *KnowledgeAssistant) UnmarshalJSON(b []byte) error

type ListExamplesRequest added in v0.132.0

type ListExamplesRequest struct {
	// The maximum number of examples to return. If unspecified, at most 100
	// examples will be returned. The maximum value is 100; values above 100
	// will be coerced to 100.
	PageSize int `json:"-" url:"page_size,omitempty"`
	// A page token, received from a previous `ListExamples` call. Provide this
	// to retrieve the subsequent page. If unspecified, the first page will be
	// returned.
	PageToken string `json:"-" url:"page_token,omitempty"`
	// Parent resource to list from. Format:
	// supervisor-agents/{supervisor_agent_id}
	Parent string `json:"-" url:"-"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListExamplesRequest) MarshalJSON added in v0.132.0

func (s ListExamplesRequest) MarshalJSON() ([]byte, error)

func (*ListExamplesRequest) UnmarshalJSON added in v0.132.0

func (s *ListExamplesRequest) UnmarshalJSON(b []byte) error

type ListExamplesResponse added in v0.132.0

type ListExamplesResponse struct {
	Examples []Example `json:"examples,omitempty"`

	NextPageToken string `json:"next_page_token,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

A list of Supervisor Agent examples.

func (ListExamplesResponse) MarshalJSON added in v0.132.0

func (s ListExamplesResponse) MarshalJSON() ([]byte, error)

func (*ListExamplesResponse) UnmarshalJSON added in v0.132.0

func (s *ListExamplesResponse) UnmarshalJSON(b []byte) error

type ListSupervisorAgentsRequest

type ListSupervisorAgentsRequest struct {
	// 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.
	PageSize int `json:"-" url:"page_size,omitempty"`
	// A page token, received from a previous `ListSupervisorAgents` call.
	// Provide this to retrieve the subsequent page. If unspecified, the first
	// page will be returned.
	PageToken string `json:"-" url:"page_token,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListSupervisorAgentsRequest) MarshalJSON

func (s ListSupervisorAgentsRequest) MarshalJSON() ([]byte, error)

func (*ListSupervisorAgentsRequest) UnmarshalJSON

func (s *ListSupervisorAgentsRequest) UnmarshalJSON(b []byte) error

type ListSupervisorAgentsResponse

type ListSupervisorAgentsResponse struct {
	// A token that can be sent as `page_token` to retrieve the next page. If
	// this field is omitted, there are no subsequent pages.
	NextPageToken string `json:"next_page_token,omitempty"`

	SupervisorAgents []SupervisorAgent `json:"supervisor_agents,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListSupervisorAgentsResponse) MarshalJSON

func (s ListSupervisorAgentsResponse) MarshalJSON() ([]byte, error)

func (*ListSupervisorAgentsResponse) UnmarshalJSON

func (s *ListSupervisorAgentsResponse) UnmarshalJSON(b []byte) error

type ListToolsRequest

type ListToolsRequest struct {
	PageSize int `json:"-" url:"page_size,omitempty"`

	PageToken string `json:"-" url:"page_token,omitempty"`
	// Parent resource to list from. Format:
	// supervisor-agents/{supervisor_agent_id}
	Parent string `json:"-" url:"-"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListToolsRequest) MarshalJSON

func (s ListToolsRequest) MarshalJSON() ([]byte, error)

func (*ListToolsRequest) UnmarshalJSON

func (s *ListToolsRequest) UnmarshalJSON(b []byte) error

type ListToolsResponse

type ListToolsResponse struct {
	NextPageToken string `json:"next_page_token,omitempty"`

	Tools []Tool `json:"tools,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (ListToolsResponse) MarshalJSON

func (s ListToolsResponse) MarshalJSON() ([]byte, error)

func (*ListToolsResponse) UnmarshalJSON

func (s *ListToolsResponse) UnmarshalJSON(b []byte) error

type SupervisorAgent

type SupervisorAgent struct {
	// Creation timestamp.
	CreateTime *time.Time `json:"create_time,omitempty"`
	// The creator of the Supervisor Agent.
	Creator string `json:"creator,omitempty"`
	// Description of what this agent can do (user-facing).
	Description string `json:"description,omitempty"`
	// The display name of the Supervisor Agent, unique at workspace level.
	DisplayName string `json:"display_name"`
	// The name of the supervisor agent's serving endpoint.
	EndpointName string `json:"endpoint_name,omitempty"`
	// The MLflow experiment ID.
	ExperimentId string `json:"experiment_id,omitempty"`
	// Deprecated: Use supervisor_agent_id instead.
	Id string `json:"id,omitempty"`
	// Optional natural-language instructions for the supervisor agent.
	Instructions string `json:"instructions,omitempty"`
	// The resource name of the SupervisorAgent. Format:
	// supervisor-agents/{supervisor_agent_id}
	Name string `json:"name,omitempty"`
	// The universally unique identifier (UUID) of the Supervisor Agent.
	SupervisorAgentId string `json:"supervisor_agent_id,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgent) MarshalJSON

func (s SupervisorAgent) MarshalJSON() ([]byte, error)

func (*SupervisorAgent) UnmarshalJSON

func (s *SupervisorAgent) UnmarshalJSON(b []byte) error

type SupervisorAgentAccessControlRequest added in v0.132.0

type SupervisorAgentAccessControlRequest struct {
	// name of the group
	GroupName string `json:"group_name,omitempty"`

	PermissionLevel SupervisorAgentPermissionLevel `json:"permission_level,omitempty"`
	// application ID of a service principal
	ServicePrincipalName string `json:"service_principal_name,omitempty"`
	// name of the user
	UserName string `json:"user_name,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgentAccessControlRequest) MarshalJSON added in v0.132.0

func (s SupervisorAgentAccessControlRequest) MarshalJSON() ([]byte, error)

func (*SupervisorAgentAccessControlRequest) UnmarshalJSON added in v0.132.0

func (s *SupervisorAgentAccessControlRequest) UnmarshalJSON(b []byte) error

type SupervisorAgentAccessControlResponse added in v0.132.0

type SupervisorAgentAccessControlResponse struct {
	// All permissions.
	AllPermissions []SupervisorAgentPermission `json:"all_permissions,omitempty"`
	// Display name of the user or service principal.
	DisplayName string `json:"display_name,omitempty"`
	// name of the group
	GroupName string `json:"group_name,omitempty"`
	// Name of the service principal.
	ServicePrincipalName string `json:"service_principal_name,omitempty"`
	// name of the user
	UserName string `json:"user_name,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgentAccessControlResponse) MarshalJSON added in v0.132.0

func (s SupervisorAgentAccessControlResponse) MarshalJSON() ([]byte, error)

func (*SupervisorAgentAccessControlResponse) UnmarshalJSON added in v0.132.0

func (s *SupervisorAgentAccessControlResponse) UnmarshalJSON(b []byte) error

type SupervisorAgentPermission added in v0.132.0

type SupervisorAgentPermission struct {
	Inherited bool `json:"inherited,omitempty"`

	InheritedFromObject []string `json:"inherited_from_object,omitempty"`

	PermissionLevel SupervisorAgentPermissionLevel `json:"permission_level,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgentPermission) MarshalJSON added in v0.132.0

func (s SupervisorAgentPermission) MarshalJSON() ([]byte, error)

func (*SupervisorAgentPermission) UnmarshalJSON added in v0.132.0

func (s *SupervisorAgentPermission) UnmarshalJSON(b []byte) error

type SupervisorAgentPermissionLevel added in v0.132.0

type SupervisorAgentPermissionLevel string

Permission level

const SupervisorAgentPermissionLevelCanManage SupervisorAgentPermissionLevel = `CAN_MANAGE`
const SupervisorAgentPermissionLevelCanQuery SupervisorAgentPermissionLevel = `CAN_QUERY`

func (*SupervisorAgentPermissionLevel) Set added in v0.132.0

Set raw string value and validate it against allowed values

func (*SupervisorAgentPermissionLevel) String added in v0.132.0

String representation for fmt.Print

func (*SupervisorAgentPermissionLevel) Type added in v0.132.0

Type always returns SupervisorAgentPermissionLevel to satisfy [pflag.Value] interface

func (*SupervisorAgentPermissionLevel) Values added in v0.132.0

Values returns all possible values for SupervisorAgentPermissionLevel.

There is no guarantee on the order of the values in the slice.

type SupervisorAgentPermissions added in v0.132.0

type SupervisorAgentPermissions struct {
	AccessControlList []SupervisorAgentAccessControlResponse `json:"access_control_list,omitempty"`

	ObjectId string `json:"object_id,omitempty"`

	ObjectType string `json:"object_type,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgentPermissions) MarshalJSON added in v0.132.0

func (s SupervisorAgentPermissions) MarshalJSON() ([]byte, error)

func (*SupervisorAgentPermissions) UnmarshalJSON added in v0.132.0

func (s *SupervisorAgentPermissions) UnmarshalJSON(b []byte) error

type SupervisorAgentPermissionsDescription added in v0.132.0

type SupervisorAgentPermissionsDescription struct {
	Description string `json:"description,omitempty"`

	PermissionLevel SupervisorAgentPermissionLevel `json:"permission_level,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (SupervisorAgentPermissionsDescription) MarshalJSON added in v0.132.0

func (s SupervisorAgentPermissionsDescription) MarshalJSON() ([]byte, error)

func (*SupervisorAgentPermissionsDescription) UnmarshalJSON added in v0.132.0

func (s *SupervisorAgentPermissionsDescription) UnmarshalJSON(b []byte) error

type SupervisorAgentPermissionsRequest added in v0.132.0

type SupervisorAgentPermissionsRequest struct {
	AccessControlList []SupervisorAgentAccessControlRequest `json:"access_control_list,omitempty"`
	// The supervisor agent for which to get or manage permissions.
	SupervisorAgentId string `json:"-" url:"-"`
}

type SupervisorAgentsAPI

type SupervisorAgentsAPI struct {
	// contains filtered or unexported fields
}

Manage Supervisor Agents and related resources.

func NewSupervisorAgents

func NewSupervisorAgents(client *client.DatabricksClient) *SupervisorAgentsAPI

func (*SupervisorAgentsAPI) CreateExample added in v0.132.0

func (a *SupervisorAgentsAPI) CreateExample(ctx context.Context, request CreateExampleRequest) (*Example, error)

func (*SupervisorAgentsAPI) CreateSupervisorAgent

func (a *SupervisorAgentsAPI) CreateSupervisorAgent(ctx context.Context, request CreateSupervisorAgentRequest) (*SupervisorAgent, error)

func (*SupervisorAgentsAPI) CreateTool

func (a *SupervisorAgentsAPI) CreateTool(ctx context.Context, request CreateToolRequest) (*Tool, error)

func (*SupervisorAgentsAPI) DeleteExample added in v0.132.0

func (a *SupervisorAgentsAPI) DeleteExample(ctx context.Context, request DeleteExampleRequest) error

func (*SupervisorAgentsAPI) DeleteSupervisorAgent

func (a *SupervisorAgentsAPI) DeleteSupervisorAgent(ctx context.Context, request DeleteSupervisorAgentRequest) error

func (*SupervisorAgentsAPI) DeleteTool

func (a *SupervisorAgentsAPI) DeleteTool(ctx context.Context, request DeleteToolRequest) error

func (*SupervisorAgentsAPI) GetExample added in v0.132.0

func (a *SupervisorAgentsAPI) GetExample(ctx context.Context, request GetExampleRequest) (*Example, error)

func (*SupervisorAgentsAPI) GetPermissionLevels added in v0.132.0

func (a *SupervisorAgentsAPI) GetPermissionLevels(ctx context.Context, request GetSupervisorAgentPermissionLevelsRequest) (*GetSupervisorAgentPermissionLevelsResponse, error)

func (*SupervisorAgentsAPI) GetPermissionLevelsBySupervisorAgentId added in v0.132.0

func (a *SupervisorAgentsAPI) GetPermissionLevelsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*GetSupervisorAgentPermissionLevelsResponse, error)

Gets the permission levels that a user can have on an object.

func (*SupervisorAgentsAPI) GetPermissions added in v0.132.0

func (a *SupervisorAgentsAPI) GetPermissions(ctx context.Context, request GetSupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

func (*SupervisorAgentsAPI) GetPermissionsBySupervisorAgentId added in v0.132.0

func (a *SupervisorAgentsAPI) GetPermissionsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*SupervisorAgentPermissions, error)

Gets the permissions of a supervisor agent. Supervisor agents can inherit permissions from their root object.

func (*SupervisorAgentsAPI) GetSupervisorAgent

func (a *SupervisorAgentsAPI) GetSupervisorAgent(ctx context.Context, request GetSupervisorAgentRequest) (*SupervisorAgent, error)

func (*SupervisorAgentsAPI) GetTool

func (a *SupervisorAgentsAPI) GetTool(ctx context.Context, request GetToolRequest) (*Tool, error)

func (*SupervisorAgentsAPI) ListExamples added in v0.132.0

func (a *SupervisorAgentsAPI) ListExamples(ctx context.Context, request ListExamplesRequest) listing.Iterator[Example]

Lists examples under a Supervisor Agent.

func (*SupervisorAgentsAPI) ListExamplesAll added in v0.132.0

func (a *SupervisorAgentsAPI) ListExamplesAll(ctx context.Context, request ListExamplesRequest) ([]Example, error)

Lists examples under a Supervisor Agent.

func (*SupervisorAgentsAPI) ListSupervisorAgents

func (a *SupervisorAgentsAPI) ListSupervisorAgents(ctx context.Context, request ListSupervisorAgentsRequest) listing.Iterator[SupervisorAgent]

Lists Supervisor Agents.

func (*SupervisorAgentsAPI) ListSupervisorAgentsAll

func (a *SupervisorAgentsAPI) ListSupervisorAgentsAll(ctx context.Context, request ListSupervisorAgentsRequest) ([]SupervisorAgent, error)

Lists Supervisor Agents.

func (*SupervisorAgentsAPI) ListTools

func (a *SupervisorAgentsAPI) ListTools(ctx context.Context, request ListToolsRequest) listing.Iterator[Tool]

Lists Tools under a Supervisor Agent.

func (*SupervisorAgentsAPI) ListToolsAll

func (a *SupervisorAgentsAPI) ListToolsAll(ctx context.Context, request ListToolsRequest) ([]Tool, error)

Lists Tools under a Supervisor Agent.

func (*SupervisorAgentsAPI) SetPermissions added in v0.132.0

func (a *SupervisorAgentsAPI) SetPermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

func (*SupervisorAgentsAPI) UpdateExample added in v0.132.0

func (a *SupervisorAgentsAPI) UpdateExample(ctx context.Context, request UpdateExampleRequest) (*Example, error)

func (*SupervisorAgentsAPI) UpdatePermissions added in v0.132.0

func (a *SupervisorAgentsAPI) UpdatePermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

func (*SupervisorAgentsAPI) UpdateSupervisorAgent

func (a *SupervisorAgentsAPI) UpdateSupervisorAgent(ctx context.Context, request UpdateSupervisorAgentRequest) (*SupervisorAgent, error)

func (*SupervisorAgentsAPI) UpdateTool

func (a *SupervisorAgentsAPI) UpdateTool(ctx context.Context, request UpdateToolRequest) (*Tool, error)

type SupervisorAgentsInterface

type SupervisorAgentsInterface interface {

	// Creates an example for a Supervisor Agent.
	CreateExample(ctx context.Context, request CreateExampleRequest) (*Example, error)

	// Creates a new Supervisor Agent.
	CreateSupervisorAgent(ctx context.Context, request CreateSupervisorAgentRequest) (*SupervisorAgent, error)

	// Creates a Tool under a Supervisor Agent. Specify one of "genie_space",
	// "knowledge_assistant", "uc_function", "uc_connection", "app", "volume",
	// "dashboard", "table", "vector_search_index", "catalog", "schema",
	// "supervisor_agent", "web_search" in the request body. The legacy values
	// "lakeview_dashboard" and "uc_table" are also accepted and remain equivalent
	// to "dashboard" and "table" respectively.
	CreateTool(ctx context.Context, request CreateToolRequest) (*Tool, error)

	// Deletes an example from a Supervisor Agent.
	DeleteExample(ctx context.Context, request DeleteExampleRequest) error

	// Deletes a Supervisor Agent.
	DeleteSupervisorAgent(ctx context.Context, request DeleteSupervisorAgentRequest) error

	// Deletes a Tool.
	DeleteTool(ctx context.Context, request DeleteToolRequest) error

	// Gets an example from a Supervisor Agent.
	GetExample(ctx context.Context, request GetExampleRequest) (*Example, error)

	// Gets the permission levels that a user can have on an object.
	GetPermissionLevels(ctx context.Context, request GetSupervisorAgentPermissionLevelsRequest) (*GetSupervisorAgentPermissionLevelsResponse, error)

	// Gets the permission levels that a user can have on an object.
	GetPermissionLevelsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*GetSupervisorAgentPermissionLevelsResponse, error)

	// Gets the permissions of a supervisor agent. Supervisor agents can inherit
	// permissions from their root object.
	GetPermissions(ctx context.Context, request GetSupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Gets the permissions of a supervisor agent. Supervisor agents can inherit
	// permissions from their root object.
	GetPermissionsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*SupervisorAgentPermissions, error)

	// Gets a Supervisor Agent.
	GetSupervisorAgent(ctx context.Context, request GetSupervisorAgentRequest) (*SupervisorAgent, error)

	// Gets a Tool.
	GetTool(ctx context.Context, request GetToolRequest) (*Tool, error)

	// Lists examples under a Supervisor Agent.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListExamples(ctx context.Context, request ListExamplesRequest) listing.Iterator[Example]

	// Lists examples under a Supervisor Agent.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListExamplesAll(ctx context.Context, request ListExamplesRequest) ([]Example, error)

	// Lists Supervisor Agents.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListSupervisorAgents(ctx context.Context, request ListSupervisorAgentsRequest) listing.Iterator[SupervisorAgent]

	// Lists Supervisor Agents.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListSupervisorAgentsAll(ctx context.Context, request ListSupervisorAgentsRequest) ([]SupervisorAgent, error)

	// Lists Tools under a Supervisor Agent.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListTools(ctx context.Context, request ListToolsRequest) listing.Iterator[Tool]

	// Lists Tools under a Supervisor Agent.
	//
	// This method is generated by Databricks SDK Code Generator.
	ListToolsAll(ctx context.Context, request ListToolsRequest) ([]Tool, error)

	// Sets permissions on an object, replacing existing permissions if they exist.
	// Deletes all direct permissions if none are specified. Objects can inherit
	// permissions from their root object.
	SetPermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Updates an example in a Supervisor Agent.
	UpdateExample(ctx context.Context, request UpdateExampleRequest) (*Example, error)

	// Updates the permissions on a supervisor agent. Supervisor agents can inherit
	// permissions from their root object.
	UpdatePermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Updates a Supervisor Agent. The fields that are required depend on the paths
	// specified in `update_mask`. Only fields included in the mask will be updated.
	UpdateSupervisorAgent(ctx context.Context, request UpdateSupervisorAgentRequest) (*SupervisorAgent, error)

	// Updates a Tool. Only the `description` field can be updated. To change
	// immutable fields such as tool type, spec, or tool ID, delete the tool and
	// recreate it.
	UpdateTool(ctx context.Context, request UpdateToolRequest) (*Tool, error)
}

type SupervisorAgentsService deprecated

type SupervisorAgentsService interface {

	// Creates an example for a Supervisor Agent.
	CreateExample(ctx context.Context, request CreateExampleRequest) (*Example, error)

	// Creates a new Supervisor Agent.
	CreateSupervisorAgent(ctx context.Context, request CreateSupervisorAgentRequest) (*SupervisorAgent, error)

	// Creates a Tool under a Supervisor Agent. Specify one of "genie_space",
	// "knowledge_assistant", "uc_function", "uc_connection", "app", "volume",
	// "dashboard", "table", "vector_search_index", "catalog", "schema",
	// "supervisor_agent", "web_search" in the request body. The legacy values
	// "lakeview_dashboard" and "uc_table" are also accepted and remain
	// equivalent to "dashboard" and "table" respectively.
	CreateTool(ctx context.Context, request CreateToolRequest) (*Tool, error)

	// Deletes an example from a Supervisor Agent.
	DeleteExample(ctx context.Context, request DeleteExampleRequest) error

	// Deletes a Supervisor Agent.
	DeleteSupervisorAgent(ctx context.Context, request DeleteSupervisorAgentRequest) error

	// Deletes a Tool.
	DeleteTool(ctx context.Context, request DeleteToolRequest) error

	// Gets an example from a Supervisor Agent.
	GetExample(ctx context.Context, request GetExampleRequest) (*Example, error)

	// Gets the permission levels that a user can have on an object.
	GetPermissionLevels(ctx context.Context, request GetSupervisorAgentPermissionLevelsRequest) (*GetSupervisorAgentPermissionLevelsResponse, error)

	// Gets the permissions of a supervisor agent. Supervisor agents can inherit
	// permissions from their root object.
	GetPermissions(ctx context.Context, request GetSupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Gets a Supervisor Agent.
	GetSupervisorAgent(ctx context.Context, request GetSupervisorAgentRequest) (*SupervisorAgent, error)

	// Gets a Tool.
	GetTool(ctx context.Context, request GetToolRequest) (*Tool, error)

	// Lists examples under a Supervisor Agent.
	ListExamples(ctx context.Context, request ListExamplesRequest) (*ListExamplesResponse, error)

	// Lists Supervisor Agents.
	ListSupervisorAgents(ctx context.Context, request ListSupervisorAgentsRequest) (*ListSupervisorAgentsResponse, error)

	// Lists Tools under a Supervisor Agent.
	ListTools(ctx context.Context, request ListToolsRequest) (*ListToolsResponse, error)

	// Sets permissions on an object, replacing existing permissions if they
	// exist. Deletes all direct permissions if none are specified. Objects can
	// inherit permissions from their root object.
	SetPermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Updates an example in a Supervisor Agent.
	UpdateExample(ctx context.Context, request UpdateExampleRequest) (*Example, error)

	// Updates the permissions on a supervisor agent. Supervisor agents can
	// inherit permissions from their root object.
	UpdatePermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)

	// Updates a Supervisor Agent. The fields that are required depend on the
	// paths specified in `update_mask`. Only fields included in the mask will
	// be updated.
	UpdateSupervisorAgent(ctx context.Context, request UpdateSupervisorAgentRequest) (*SupervisorAgent, error)

	// Updates a Tool. Only the `description` field can be updated. To change
	// immutable fields such as tool type, spec, or tool ID, delete the tool and
	// recreate it.
	UpdateTool(ctx context.Context, request UpdateToolRequest) (*Tool, error)
}

Manage Supervisor Agents and related resources.

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

type Tool

type Tool struct {
	App *App `json:"app,omitempty"`
	// Description of what this tool does (user-facing).
	Description string `json:"description,omitempty"`

	GenieSpace *GenieSpace `json:"genie_space,omitempty"`
	// Deprecated: Use tool_id instead.
	Id string `json:"id,omitempty"`

	KnowledgeAssistant *KnowledgeAssistant `json:"knowledge_assistant,omitempty"`
	// Full resource name:
	// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
	Name string `json:"name,omitempty"`
	// User specified id of the Tool.
	ToolId string `json:"tool_id,omitempty"`
	// Tool type. Must be one of: "genie_space", "knowledge_assistant",
	// "uc_function", "uc_connection", "app", "volume", "dashboard",
	// "serving_endpoint", "table", "vector_search_index", "catalog", "schema",
	// "supervisor_agent", "web_search". The legacy values "lakeview_dashboard"
	// and "uc_table" are also accepted and remain equivalent to "dashboard" and
	// "table" respectively.
	ToolType string `json:"tool_type"`

	UcConnection *UcConnection `json:"uc_connection,omitempty"`

	UcFunction *UcFunction `json:"uc_function,omitempty"`

	Volume *Volume `json:"volume,omitempty"`

	ForceSendFields []string `json:"-" url:"-"`
}

func (Tool) MarshalJSON

func (s Tool) MarshalJSON() ([]byte, error)

func (*Tool) UnmarshalJSON

func (s *Tool) UnmarshalJSON(b []byte) error

type UcConnection added in v0.131.0

type UcConnection struct {
	Name string `json:"name"`
}

Databricks UC connection. Supported connection: external mcp server.

type UcFunction

type UcFunction struct {
	// Full uc function name
	Name string `json:"name"`
}

type UpdateExampleRequest added in v0.132.0

type UpdateExampleRequest struct {
	Example Example `json:"example"`
	// The resource name of the example to update. Format:
	// supervisor-agents/{supervisor_agent_id}/examples/{example_id}
	Name string `json:"-" url:"-"`
	// Comma-delimited list of fields to update on the example. Allowed values:
	// `question`, `guidelines`. Examples: - `question` - `question,guidelines`
	UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}

type UpdateSupervisorAgentRequest

type UpdateSupervisorAgentRequest struct {
	// The resource name of the SupervisorAgent. Format:
	// supervisor-agents/{supervisor_agent_id}
	Name string `json:"-" url:"-"`
	// The SupervisorAgent to update.
	SupervisorAgent SupervisorAgent `json:"supervisor_agent"`
	// Field mask for fields to be updated.
	UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}

type UpdateToolRequest

type UpdateToolRequest struct {
	// Full resource name:
	// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
	Name string `json:"-" url:"-"`
	// The Tool to update.
	Tool Tool `json:"tool"`
	// Field mask for fields to be updated.
	UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}

type Volume

type Volume struct {
	// Full uc volume name
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL