Documentation
¶
Overview ¶
Package skilluse provides the runtime tool for loading Leros skill documents.
Index ¶
Constants ¶
View Source
const (
// ToolNameSkillUse is the runtime tool used to discover and load skill documents.
ToolNameSkillUse = "skill_use"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrSkillNotFound ¶ added in v0.1.1
ErrSkillNotFound is a structured error returned when a skill cannot be found. AvailableSkills is always populated so callers can surface available options.
func (*ErrSkillNotFound) Error ¶ added in v0.1.1
func (e *ErrSkillNotFound) Error() string
type SkillUseTool ¶
SkillUseTool lets an agent query and load skills from the runtime skill catalog. It dynamically scans the filesystem on every call — no cached state.
func NewSkillUseTool ¶
func NewSkillUseTool() *SkillUseTool
NewSkillUseTool creates a skill use tool that dynamically scans the skills directory.
func (*SkillUseTool) Execute ¶
func (t *SkillUseTool) Execute(ctx context.Context, raw json.RawMessage) (string, error)
Execute performs the requested skill catalog action.
func (*SkillUseTool) Validate ¶
func (t *SkillUseTool) Validate(raw json.RawMessage) error
Validate checks skill use tool input.
Click to show internal directories.
Click to hide internal directories.