Documentation
¶
Index ¶
- Variables
- func GenericHTTPMethods() []string
- func IsGenericHTTPMethod(value string) bool
- type AgentSkill
- type AgentSkillsIndex
- type AuthorizationDetail
- type Client
- func (c *Client) AgentSkills(ctx context.Context, server ResourceServer) (AgentSkillsIndex, error)
- func (c *Client) AuthorizationDetails(ctx context.Context, server ResourceServer) ([]AuthorizationDetail, error)
- func (c *Client) Find(ctx context.Context, commandName string) (ResourceServer, error)
- func (c *Client) List(ctx context.Context) ([]ResourceServer, error)
- func (c *Client) RestishConfig(ctx context.Context) (*restish.Config, []ResourceServer, error)
- func (c *Client) ToolIntegrations(ctx context.Context, server ResourceServer) ([]ToolIntegration, error)
- type CommandHelp
- type ResourceServer
- type Scope
- type ToolIntegration
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 ¶
Types ¶
type AgentSkill ¶
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) RestishConfig ¶
func (*Client) ToolIntegrations ¶
func (c *Client) ToolIntegrations(ctx context.Context, server ResourceServer) ([]ToolIntegration, error)
type CommandHelp ¶
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 ToolIntegration ¶
Click to show internal directories.
Click to hide internal directories.