Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkillConfig ¶
type SkillContext ¶
type SkillInfo ¶
type SkillInfo struct {
Name string `json:"name"`
Description string `json:"description"`
Triggers []Trigger `json:"triggers"`
Config SkillConfig `json:"config"`
Source SkillSource `json:"source"`
}
type SkillRegistry ¶
type SkillRegistry interface {
Register(s Skill, source SkillSource) error
Get(name string) (Skill, bool)
List() []SkillInfo
ActiveSkills(ctx context.Context, context SkillContext) []Skill
BuildSystemPrompt(ctx context.Context, context SkillContext) string
Enable(name string) error
Disable(name string) error
LoadFromPath(path string, source SkillSource) error
}
type SkillSource ¶
type SkillSource string
const ( SourceBuiltin SkillSource = "builtin" SourceUser SkillSource = "user" SourceProject SkillSource = "project" )
type Trigger ¶
type Trigger struct {
Type TriggerType `json:"type"`
Pattern string `json:"pattern"`
}
type TriggerType ¶
type TriggerType string
const ( TriggerFilePattern TriggerType = "file_pattern" TriggerCommand TriggerType = "command" TriggerAlways TriggerType = "always" )
Click to show internal directories.
Click to hide internal directories.