Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentToolSvc ¶
type AgentToolSvc interface {
ListTools(ctx context.Context, req *ListToolsRequest) (*apiresource.List[apiresource.AvailableTool], *apierror.APIError)
ListToolGroups(ctx context.Context, req *ListToolGroupsRequest) (*apiresource.List[apiresource.ToolGroup], *apierror.APIError)
}
func NewAgentToolSvc ¶
func NewAgentToolSvc(config *AgentToolSvcConfig) AgentToolSvc
type AgentToolSvcConfig ¶
type AgentToolSvcConfig struct {
// AgentClient (required) is the agent-service gRPC client.
AgentClient pb.AgentServiceClient
}
type ListToolGroupsEndpoint ¶
type ListToolGroupsEndpoint struct{}
Returns a paginated list of the groups the agent tool catalog is organized into.
The catalog is platform-defined and identical for every account. Pagination applies to the groups themselves, so a group requested with `include=tools` always carries its complete tool list regardless of the page limit. The `q` search term matches against group names.
func (*ListToolGroupsEndpoint) Materialize ¶
func (e *ListToolGroupsEndpoint) Materialize() *apiendpoint.APIEndpoint[*ListToolGroupsRequest, *apiresource.List[apiresource.ToolGroup]]
type ListToolGroupsRequest ¶
type ListToolGroupsRequest struct {
apiresource.PaginationRequest
}
Request to list tool groups.
type ListToolsEndpoint ¶
type ListToolsEndpoint struct{}
Returns a paginated list of every capability that can be granted to an agent.
The catalog is platform-defined and identical for every account, and covers both built-in runtime capabilities and the API operations agents are allowed to perform. The `q` search term matches against tool names and the name of the group a tool belongs to.
func (*ListToolsEndpoint) Materialize ¶
func (e *ListToolsEndpoint) Materialize() *apiendpoint.APIEndpoint[*ListToolsRequest, *apiresource.List[apiresource.AvailableTool]]
type ListToolsRequest ¶
type ListToolsRequest struct {
apiresource.PaginationRequest
}
Request to list the tools available to agents.