Documentation
¶
Index ¶
- Constants
- func InputSchema(name string) (map[string]any, bool)
- func ManageInputSchema() map[string]any
- func ManageOutputSchema() map[string]any
- func ManagedSkillRef(name string) string
- func OutputSchema(name string) (map[string]any, bool)
- func PluginSkillRef(pluginName, name string) string
- func SharedSkillRef(name string) string
- type CapabilityItem
- type ManageRequest
- type ResolvedSkill
- type Result
- type Service
- func (s *Service) Acquire(ctx context.Context, skillRef string) (ResolvedSkill, func(), error)
- func (s *Service) CapabilityItems() ([]CapabilityItem, error)
- func (s *Service) Manage(ctx context.Context, request ManageRequest) (Result, error)
- func (s *Service) ResolveResource(ctx context.Context, raw string) (string, string, func(), error)
- func (s *Service) RuntimeSkill(skill string) (Result, error)
- func (s *Service) RuntimeSkillFile(skill, relativePath string) (Result, error)
- func (s *Service) RuntimeSkillFiles(skill string) (Result, error)
- func (s *Service) RuntimeSkills() (Result, error)
- func (s *Service) WorkspaceSkillRef(workspaceRoot, name string) (skillRef, sourceID string, err error)
- type ToolError
Constants ¶
View Source
const ToolManage = "skill_manage"
Variables ¶
This section is empty.
Functions ¶
func ManageInputSchema ¶ added in v0.9.0
func ManageOutputSchema ¶ added in v0.9.0
func ManagedSkillRef ¶ added in v0.9.0
func PluginSkillRef ¶ added in v0.9.0
func SharedSkillRef ¶ added in v0.9.0
Types ¶
type CapabilityItem ¶
type ManageRequest ¶ added in v0.9.0
type ManageRequest struct {
Action string `json:"action"`
Skill string `json:"skill,omitempty"`
SkillRef string `json:"skill_ref,omitempty"`
Key string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
Source string `json:"source,omitempty"`
Digest string `json:"digest,omitempty"`
Purge bool `json:"purge,omitempty"`
}
ManageRequest is the stable skill_manage input contract.
type ResolvedSkill ¶ added in v0.9.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CapabilityItems ¶
func (s *Service) CapabilityItems() ([]CapabilityItem, error)
func (*Service) ResolveResource ¶
func (*Service) RuntimeSkillFile ¶
RuntimeSkillFile only reads regular UTF-8 text files inside current managed Skill content.
func (*Service) RuntimeSkillFiles ¶
RuntimeSkillFiles returns the current managed Skill package file list.
func (*Service) RuntimeSkills ¶
Click to show internal directories.
Click to hide internal directories.