skills

package
v0.0.0-...-9dee8bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkillT

type SkillT struct {
	Name                   string            `yaml:"name"`
	Description            string            `yaml:"description"`
	License                string            `yaml:"license"`
	Compatibility          string            `yaml:"compatibility"`
	Meta                   map[string]string `yaml:"metadata"`
	ToolsRaw               string            `yaml:"allowed-tools"`
	Tools                  []*ToolsT         `yaml:"-"`
	Prompt                 string            `yaml:"-"`
	Directory              string            `yaml:"-"`
	UserInvocable          *bool             `yaml:"user-invocable"`
	DisableModelInvocation bool              `yaml:"disable-model-invocation"`

	Variables []types.InputBoxWTVariables `yaml:"variables"`
}

func (*SkillT) IsModelInvocable

func (skill *SkillT) IsModelInvocable() bool

func (*SkillT) IsUserInvocable

func (skill *SkillT) IsUserInvocable() bool

type Skills

type Skills []*SkillT

func ParseSelection

func ParseSelection(response string, available Skills) (Skills, error)

func ReadSkills

func ReadSkills() (skills Skills)

func (Skills) FromName

func (skills Skills) FromName(name string) *SkillT

func (Skills) ModelInvocable

func (skills Skills) ModelInvocable() Skills

func (Skills) UserInvocable

func (skills Skills) UserInvocable() Skills

type ToolsT

type ToolsT struct {
	Name       string
	Parameters string
}

func ParseTools

func ParseTools(toolsRaw string) ([]*ToolsT, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址