Documentation
¶
Overview ¶
Manage legacy Supervisor Agents and related resources.
Index ¶
- type App
- type CreateExampleRequest
- type CreateSupervisorAgentRequest
- type CreateToolRequest
- type DeleteExampleRequest
- type DeleteSupervisorAgentRequest
- type DeleteToolRequest
- type Example
- type GenieSpace
- type GetExampleRequest
- type GetSupervisorAgentPermissionLevelsRequest
- type GetSupervisorAgentPermissionLevelsResponse
- type GetSupervisorAgentPermissionsRequest
- type GetSupervisorAgentRequest
- type GetToolRequest
- type KnowledgeAssistant
- type ListExamplesRequest
- type ListExamplesResponse
- type ListSupervisorAgentsRequest
- type ListSupervisorAgentsResponse
- type ListToolsRequest
- type ListToolsResponse
- type SupervisorAgent
- type SupervisorAgentAccessControlRequest
- type SupervisorAgentAccessControlResponse
- type SupervisorAgentPermission
- type SupervisorAgentPermissionLevel
- type SupervisorAgentPermissions
- type SupervisorAgentPermissionsDescription
- type SupervisorAgentPermissionsRequest
- type SupervisorAgentsAPI
- func (a *SupervisorAgentsAPI) CreateExample(ctx context.Context, request CreateExampleRequest) (*Example, error)
- func (a *SupervisorAgentsAPI) CreateSupervisorAgent(ctx context.Context, request CreateSupervisorAgentRequest) (*SupervisorAgent, error)
- func (a *SupervisorAgentsAPI) CreateTool(ctx context.Context, request CreateToolRequest) (*Tool, error)
- func (a *SupervisorAgentsAPI) DeleteExample(ctx context.Context, request DeleteExampleRequest) error
- func (a *SupervisorAgentsAPI) DeleteSupervisorAgent(ctx context.Context, request DeleteSupervisorAgentRequest) error
- func (a *SupervisorAgentsAPI) DeleteTool(ctx context.Context, request DeleteToolRequest) error
- func (a *SupervisorAgentsAPI) GetExample(ctx context.Context, request GetExampleRequest) (*Example, error)
- func (a *SupervisorAgentsAPI) GetPermissionLevels(ctx context.Context, request GetSupervisorAgentPermissionLevelsRequest) (*GetSupervisorAgentPermissionLevelsResponse, error)
- func (a *SupervisorAgentsAPI) GetPermissionLevelsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*GetSupervisorAgentPermissionLevelsResponse, error)
- func (a *SupervisorAgentsAPI) GetPermissions(ctx context.Context, request GetSupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)
- func (a *SupervisorAgentsAPI) GetPermissionsBySupervisorAgentId(ctx context.Context, supervisorAgentId string) (*SupervisorAgentPermissions, error)
- func (a *SupervisorAgentsAPI) GetSupervisorAgent(ctx context.Context, request GetSupervisorAgentRequest) (*SupervisorAgent, error)
- func (a *SupervisorAgentsAPI) GetTool(ctx context.Context, request GetToolRequest) (*Tool, error)
- func (a *SupervisorAgentsAPI) ListExamples(ctx context.Context, request ListExamplesRequest) listing.Iterator[Example]
- func (a *SupervisorAgentsAPI) ListExamplesAll(ctx context.Context, request ListExamplesRequest) ([]Example, error)
- func (a *SupervisorAgentsAPI) ListSupervisorAgents(ctx context.Context, request ListSupervisorAgentsRequest) listing.Iterator[SupervisorAgent]
- func (a *SupervisorAgentsAPI) ListSupervisorAgentsAll(ctx context.Context, request ListSupervisorAgentsRequest) ([]SupervisorAgent, error)
- func (a *SupervisorAgentsAPI) ListTools(ctx context.Context, request ListToolsRequest) listing.Iterator[Tool]
- func (a *SupervisorAgentsAPI) ListToolsAll(ctx context.Context, request ListToolsRequest) ([]Tool, error)
- func (a *SupervisorAgentsAPI) SetPermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)
- func (a *SupervisorAgentsAPI) UpdateExample(ctx context.Context, request UpdateExampleRequest) (*Example, error)
- func (a *SupervisorAgentsAPI) UpdatePermissions(ctx context.Context, request SupervisorAgentPermissionsRequest) (*SupervisorAgentPermissions, error)
- func (a *SupervisorAgentsAPI) UpdateSupervisorAgent(ctx context.Context, request UpdateSupervisorAgentRequest) (*SupervisorAgent, error)
- func (a *SupervisorAgentsAPI) UpdateTool(ctx context.Context, request UpdateToolRequest) (*Tool, error)
- type SupervisorAgentsInterface
- type SupervisorAgentsServicedeprecated
- type Tool
- type UcConnection
- type UcFunction
- type UpdateExampleRequest
- type UpdateSupervisorAgentRequest
- type UpdateToolRequest
- type Volume
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.
func (*App) UnmarshalJSON ¶ added in v0.174.0
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:"-"`
}
func (*CreateExampleRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *CreateExampleRequest) UnmarshalJSON(b []byte) error
type CreateSupervisorAgentRequest ¶
type CreateSupervisorAgentRequest struct {
// The Supervisor Agent to create.
SupervisorAgent SupervisorAgent `json:"supervisor_agent"`
}
func (*CreateSupervisorAgentRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *CreateSupervisorAgentRequest) UnmarshalJSON(b []byte) error
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"`
}
func (*CreateToolRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *CreateToolRequest) UnmarshalJSON(b []byte) error
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:"-"`
}
func (*DeleteExampleRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *DeleteExampleRequest) UnmarshalJSON(b []byte) error
type DeleteSupervisorAgentRequest ¶
type DeleteSupervisorAgentRequest struct {
// The resource name of the Supervisor Agent. Format:
// supervisor-agents/{supervisor_agent_id}
Name string `json:"-" url:"-"`
}
func (*DeleteSupervisorAgentRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *DeleteSupervisorAgentRequest) UnmarshalJSON(b []byte) error
type DeleteToolRequest ¶
type DeleteToolRequest struct {
// The resource name of the Tool. Format:
// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
Name string `json:"-" url:"-"`
}
func (*DeleteToolRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *DeleteToolRequest) UnmarshalJSON(b []byte) error
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 (*Example) UnmarshalJSON ¶ added in v0.132.0
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"`
}
func (*GenieSpace) UnmarshalJSON ¶ added in v0.174.0
func (s *GenieSpace) UnmarshalJSON(b []byte) error
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:"-"`
}
func (*GetExampleRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *GetExampleRequest) UnmarshalJSON(b []byte) error
type GetSupervisorAgentPermissionLevelsRequest ¶ added in v0.132.0
type GetSupervisorAgentPermissionLevelsRequest struct {
// The supervisor agent for which to get or manage permissions.
SupervisorAgentId string `json:"-" url:"-"`
}
func (*GetSupervisorAgentPermissionLevelsRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *GetSupervisorAgentPermissionLevelsRequest) UnmarshalJSON(b []byte) error
type GetSupervisorAgentPermissionLevelsResponse ¶ added in v0.132.0
type GetSupervisorAgentPermissionLevelsResponse struct {
// Specific permission levels
PermissionLevels []SupervisorAgentPermissionsDescription `json:"permission_levels,omitempty"`
}
func (*GetSupervisorAgentPermissionLevelsResponse) UnmarshalJSON ¶ added in v0.174.0
func (s *GetSupervisorAgentPermissionLevelsResponse) UnmarshalJSON(b []byte) error
type GetSupervisorAgentPermissionsRequest ¶ added in v0.132.0
type GetSupervisorAgentPermissionsRequest struct {
// The supervisor agent for which to get or manage permissions.
SupervisorAgentId string `json:"-" url:"-"`
}
func (*GetSupervisorAgentPermissionsRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *GetSupervisorAgentPermissionsRequest) UnmarshalJSON(b []byte) error
type GetSupervisorAgentRequest ¶
type GetSupervisorAgentRequest struct {
// The resource name of the Supervisor Agent. Format:
// supervisor-agents/{supervisor_agent_id}
Name string `json:"-" url:"-"`
}
func (*GetSupervisorAgentRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *GetSupervisorAgentRequest) UnmarshalJSON(b []byte) error
type GetToolRequest ¶
type GetToolRequest struct {
// The resource name of the Tool. Format:
// supervisor-agents/{supervisor_agent_id}/tools/{tool_id}
Name string `json:"-" url:"-"`
}
func (*GetToolRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *GetToolRequest) UnmarshalJSON(b []byte) error
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 {
// The time at which the Supervisor Agent was created, as an RFC 3339
// timestamp.
CreateTime *time.Time `json:"create_time,omitempty"`
// The email address of the user who created the Supervisor Agent.
Creator string `json:"creator,omitempty"`
// A summary of what the agent does. It is shown to users of the agent.
Description string `json:"description,omitempty"`
// 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.
DisplayName string `json:"display_name"`
// The name of the Model Serving endpoint that serves the Supervisor Agent.
// Query this endpoint to chat with the agent.
EndpointName string `json:"endpoint_name,omitempty"`
// The ID of the MLflow experiment that is created together with the
// Supervisor Agent.
ExperimentId string `json:"experiment_id,omitempty"`
// Deprecated: Use supervisor_agent_id instead. This field is no longer
// populated.
Id string `json:"id,omitempty"`
// Natural-language guidelines for how the supervisor should respond and how
// it should delegate requests to its tools and subagents.
Instructions string `json:"instructions,omitempty"`
// The resource name of the Supervisor Agent. Format:
// supervisor-agents/{supervisor_agent_id} The server assigns the name when
// the agent is created.
Name string `json:"name,omitempty"`
// The universally unique identifier (UUID) of the Supervisor Agent. It is
// the last segment of `name`.
SupervisorAgentId string `json:"supervisor_agent_id,omitempty"`
ForceSendFields []string `json:"-" url:"-"`
}
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.
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
func (f *SupervisorAgentPermissionLevel) Set(v string) error
Set raw string value and validate it against allowed values
func (*SupervisorAgentPermissionLevel) String ¶ added in v0.132.0
func (f *SupervisorAgentPermissionLevel) String() string
String representation for fmt.Print
func (*SupervisorAgentPermissionLevel) Type ¶ added in v0.132.0
func (f *SupervisorAgentPermissionLevel) Type() string
Type always returns SupervisorAgentPermissionLevel to satisfy [pflag.Value] interface
func (*SupervisorAgentPermissionLevel) Values ¶ added in v0.132.0
func (f *SupervisorAgentPermissionLevel) Values() []SupervisorAgentPermissionLevel
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:"-"`
}
func (*SupervisorAgentPermissionsRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *SupervisorAgentPermissionsRequest) UnmarshalJSON(b []byte) error
type SupervisorAgentsAPI ¶
type SupervisorAgentsAPI struct {
// contains filtered or unexported fields
}
Manage legacy 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 the Supervisor Agents in the workspace that the caller has permission to view.
func (*SupervisorAgentsAPI) ListSupervisorAgentsAll ¶
func (a *SupervisorAgentsAPI) ListSupervisorAgentsAll(ctx context.Context, request ListSupervisorAgentsRequest) ([]SupervisorAgent, error)
Lists the Supervisor Agents in the workspace that the caller has permission to view.
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 Supervisor Agent together with its serving endpoint and MLflow
// experiment. Tools and subagents are added to the agent afterwards with the
// Tool methods.
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", "databricks_web_search", "skill" in the request body. The
// legacy values "lakeview_dashboard", "uc_table", and "web_search" are also
// accepted and remain equivalent to "dashboard", "table", and
// "databricks_web_search" respectively. The "databricks_web_search" tool_type
// maps to the `web_search` spec field.
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 together with the resources created for it,
// including its tools, examples, serving endpoint and MLflow experiment.
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 the Supervisor Agents in the workspace that the caller has permission
// to view.
//
// This method is generated by Databricks SDK Code Generator.
ListSupervisorAgents(ctx context.Context, request ListSupervisorAgentsRequest) listing.Iterator[SupervisorAgent]
// Lists the Supervisor Agents in the workspace that the caller has permission
// to view.
//
// 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. Only the fields listed in `update_mask` are
// changed. All other fields keep their current values.
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 Supervisor Agent together with its serving endpoint and MLflow
// experiment. Tools and subagents are added to the agent afterwards with
// the Tool methods.
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", "databricks_web_search", "skill" in the request body.
// The legacy values "lakeview_dashboard", "uc_table", and "web_search" are
// also accepted and remain equivalent to "dashboard", "table", and
// "databricks_web_search" respectively. The "databricks_web_search"
// tool_type maps to the `web_search` spec field.
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 together with the resources created for it,
// including its tools, examples, serving endpoint and MLflow experiment.
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 the Supervisor Agents in the workspace that the caller has
// permission to view.
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. Only the fields listed in `update_mask` are
// changed. All other fields keep their current values.
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 legacy 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", "uc_mcp", "app", "volume", "dashboard",
// "serving_endpoint", "table", "vector_search_index", "catalog", "schema",
// "supervisor_agent", "databricks_web_search", "skill". The legacy values
// "lakeview_dashboard", "uc_table", and "web_search" are also accepted and
// remain equivalent to "dashboard", "table", and "databricks_web_search"
// respectively. The "databricks_web_search" tool_type maps to the
// `web_search` spec field.
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 (*Tool) UnmarshalJSON ¶
type UcConnection ¶ added in v0.131.0
type UcConnection struct {
Name string `json:"name"`
}
Databricks UC connection. Supported connection: external mcp server.
func (*UcConnection) UnmarshalJSON ¶ added in v0.174.0
func (s *UcConnection) UnmarshalJSON(b []byte) error
type UcFunction ¶
type UcFunction struct {
// Full uc function name
Name string `json:"name"`
}
func (*UcFunction) UnmarshalJSON ¶ added in v0.174.0
func (s *UcFunction) UnmarshalJSON(b []byte) error
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"`
}
func (*UpdateExampleRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *UpdateExampleRequest) UnmarshalJSON(b []byte) error
type UpdateSupervisorAgentRequest ¶
type UpdateSupervisorAgentRequest struct {
// The resource name of the Supervisor Agent. Format:
// supervisor-agents/{supervisor_agent_id} The server assigns the name when
// the agent is created.
Name string `json:"-" url:"-"`
// The Supervisor Agent to update. `name` identifies the agent. The other
// fields carry the new values for the paths listed in `update_mask`.
SupervisorAgent SupervisorAgent `json:"supervisor_agent"`
// 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.
UpdateMask fieldmask.FieldMask `json:"-" url:"update_mask"`
}
func (*UpdateSupervisorAgentRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *UpdateSupervisorAgentRequest) UnmarshalJSON(b []byte) error
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"`
}
func (*UpdateToolRequest) UnmarshalJSON ¶ added in v0.174.0
func (s *UpdateToolRequest) UnmarshalJSON(b []byte) error