catalog

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoAgentSkills = errors.New("Resource Server does not publish an Agent Skills index")
View Source
var ErrNoToolIntegrations = errors.New("Resource Server does not advertise native tool integrations")

Functions

func GenericHTTPMethods

func GenericHTTPMethods() []string

func IsGenericHTTPMethod

func IsGenericHTTPMethod(value string) bool

Types

type AgentSkill

type AgentSkill struct {
	Name        string `json:"name"`
	Type        string `json:"type"`
	Description string `json:"description"`
	URL         string `json:"url"`
	Digest      string `json:"digest"`
}

type AgentSkillsIndex

type AgentSkillsIndex struct {
	URL    string       `json:"url"`
	Skills []AgentSkill `json:"skills"`
}

type AuthorizationDetail

type AuthorizationDetail struct {
	Name                       string            `json:"name"`
	Description                string            `json:"description,omitempty"`
	AuthorizationDetail        map[string]any    `json:"authorizationDetail"`
	AccountAuthorizationStatus string            `json:"accountAuthorizationStatus"`
	AuthorizedScopes           []string          `json:"authorizedScopes"`
	RequestableScopes          []string          `json:"requestableScopes"`
	Metadata                   map[string]string `json:"metadata"`
}

type Client

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

func New

func New(service *agent.Service, httpClient realmrootapi.HttpRequestDoer) (*Client, error)

func (*Client) AgentSkills

func (c *Client) AgentSkills(ctx context.Context, server ResourceServer) (AgentSkillsIndex, error)

func (*Client) AuthorizationDetails

func (c *Client) AuthorizationDetails(ctx context.Context, server ResourceServer) ([]AuthorizationDetail, error)

func (*Client) Find

func (c *Client) Find(ctx context.Context, commandName string) (ResourceServer, error)

func (*Client) List

func (c *Client) List(ctx context.Context) ([]ResourceServer, error)

func (*Client) RestishConfig

func (c *Client) RestishConfig(ctx context.Context) (*restish.Config, []ResourceServer, error)

func (*Client) ToolIntegrations

func (c *Client) ToolIntegrations(ctx context.Context, server ResourceServer) ([]ToolIntegration, error)

type CommandHelp

type CommandHelp struct {
	Name        string
	Usage       string
	Description string
}

func ResourceServerCommands

func ResourceServerCommands() []CommandHelp

func ToolboxCommands

func ToolboxCommands() []CommandHelp

type ResourceServer

type ResourceServer struct {
	ID                   string           `json:"id"`
	CommandName          string           `json:"commandName"`
	Identifier           string           `json:"identifier"`
	Name                 string           `json:"name"`
	Description          string           `json:"description,omitempty"`
	ResourceURL          string           `json:"resourceUrl"`
	Available            bool             `json:"available"`
	ConnectionStatus     string           `json:"connectionStatus"`
	ConnectionScopes     []string         `json:"connectionScopes,omitempty"`
	AuthorizationDetails []map[string]any `json:"authorizationDetails,omitempty"`
	Scopes               []Scope          `json:"scopes"`
}

type Scope

type Scope struct {
	Value       string `json:"value"`
	Description string `json:"description,omitempty"`
}

type ToolIntegration

type ToolIntegration struct {
	ID          string   `json:"id"`
	Executables []string `json:"executables"`
	Protocol    string   `json:"protocol"`
}

Jump to

Keyboard shortcuts

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