Documentation
¶
Index ¶
- func ExtractFrontmatter(data []byte) ([]byte, []byte, error)
- func LoadSkillsFromDir(dir string, source skill.SkillSource) ([]skill.Skill, error)
- func MatchPattern(pattern, path string) bool
- func ParseSkill(data []byte, source skill.SkillSource) (skill.Skill, error)
- func ParseSkillFile(path string, source skill.SkillSource) (skill.Skill, error)
- type PromptBuilder
- type Registry
- func (r *Registry) ActiveSkills(ctx context.Context, context skill.SkillContext) []skill.Skill
- func (r *Registry) BuildSystemPrompt(ctx context.Context, context skill.SkillContext) string
- func (r *Registry) Disable(name string) error
- func (r *Registry) Enable(name string) error
- func (r *Registry) Get(name string) (skill.Skill, bool)
- func (r *Registry) IsEnabled(name string) bool
- func (r *Registry) List() []skill.SkillInfo
- func (r *Registry) LoadFromPath(path string, source skill.SkillSource) error
- func (r *Registry) Register(s skill.Skill, source skill.SkillSource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSkillsFromDir ¶
func MatchPattern ¶
func ParseSkill ¶
func ParseSkillFile ¶
Types ¶
type PromptBuilder ¶
type PromptBuilder struct {
// contains filtered or unexported fields
}
func NewPromptBuilder ¶
func NewPromptBuilder(registry *Registry) *PromptBuilder
func (*PromptBuilder) BuildActiveSkillList ¶
func (b *PromptBuilder) BuildActiveSkillList(ctx context.Context, context skill.SkillContext) []string
func (*PromptBuilder) BuildSkillList ¶
func (b *PromptBuilder) BuildSkillList() []string
func (*PromptBuilder) BuildSystemPrompt ¶
func (b *PromptBuilder) BuildSystemPrompt(ctx context.Context, context skill.SkillContext) string
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) ActiveSkills ¶
func (*Registry) BuildSystemPrompt ¶
func (*Registry) LoadFromPath ¶
func (r *Registry) LoadFromPath(path string, source skill.SkillSource) error
Click to show internal directories.
Click to hide internal directories.