Documentation
¶
Overview ¶
Package skilltool provides the built-in activate_skill tool, a dedicated activation entry point for agentskills.io skills (issue #65, gaps #13/#14).
While a skill can always be activated by reading its SKILL.md with the generic read tool, a dedicated tool offers an enum-constrained skill name (preventing hallucinated names), bundled-resource enumeration, and per-session deduplication so the same skill is not re-injected repeatedly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(names []string, provider SkillProvider) fantasy.AgentTool
New builds the activate_skill tool. names is the initial set of skill names used to populate the enum constraint on the name parameter; provider is queried at call time to resolve the skill by name (so runtime additions resolve even if absent from the enum). Returns nil when no skill names are available.
Types ¶
type SkillProvider ¶
SkillProvider returns the skills currently available for activation. It is queried on every call so runtime skill mutations are reflected.