Documentation
¶
Index ¶
- Constants
- func InputSchema(name string) (map[string]any, bool)
- func OutputSchema(name string) (map[string]any, bool)
- func PackageInputSchema() map[string]any
- func PackageOutputSchema() map[string]any
- type CapabilityItem
- type InspectRequest
- type PackageRequest
- type Result
- type Service
- func (s *Service) CapabilityItems() ([]CapabilityItem, error)
- func (s *Service) Package(ctx context.Context, request PackageRequest) (Result, error)
- func (s *Service) ResolveActive(skill string) (string, error)
- func (s *Service) ResolveResource(raw string) (string, string, 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)
- type ToolError
Constants ¶
View Source
const ToolPackage = "skill_package"
Variables ¶
This section is empty.
Functions ¶
func PackageInputSchema ¶ added in v0.8.2
func PackageOutputSchema ¶ added in v0.8.2
Types ¶
type CapabilityItem ¶
type InspectRequest ¶ added in v0.8.2
type PackageRequest ¶ added in v0.8.2
type PackageRequest struct {
Action string `json:"action"`
Skill string `json:"skill,omitempty"`
Version string `json:"version,omitempty"`
Key string `json:"key,omitempty"`
Value *string `json:"value,omitempty"`
Source string `json:"source,omitempty"`
Digest string `json:"digest,omitempty"`
Activate *bool `json:"activate,omitempty"`
MaxBytes *int `json:"max_bytes,omitempty"`
}
PackageRequest 是 skill_package 进入 Skill capability 后的稳定输入契约。
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 只读取当前激活 Skill 包内的普通 UTF-8 文本文件。 路径解析和符号链接校验都在 AgentDock 内完成,调用方无需挂载宿主机目录。
func (*Service) RuntimeSkillFiles ¶
RuntimeSkillFiles 返回当前激活 Skill 包的安全文件清单。 隐藏文件、安装元数据和符号链接不会暴露给控制面。
func (*Service) RuntimeSkills ¶
Click to show internal directories.
Click to hide internal directories.