Documentation
¶
Overview ¶
Package moetools provides the load_skill and load_reference tool definitions and handlers. They let the LLM dynamically pull skill bodies and reference documents from a skills.Registry during the agentic loop, instead of stuffing every skill into the base system prompt.
Index ¶
- Constants
- func DescribeAvailableSkills(reg *skills.Registry) string
- func LoadReferenceHandler(reg *skills.Registry, arguments string) (string, error)
- func LoadReferenceTool() llms.Tool
- func LoadSkillHandler(reg *skills.Registry, arguments string) (string, error)
- func LoadSkillTool(reg *skills.Registry) llms.Tool
- func Register(base *agent.BaseAgent, reg *skills.Registry) error
- func Tools(reg *skills.Registry) []llms.Tool
Constants ¶
const ( NameLoadSkill = "load_skill" NameLoadReference = "load_reference" )
Tool names.
Variables ¶
This section is empty.
Functions ¶
func DescribeAvailableSkills ¶
DescribeAvailableSkills enumerates a registry into a one-line catalog suitable for inclusion in the load_skill tool description.
func LoadReferenceHandler ¶
LoadReferenceHandler implements the load_reference tool against the given registry.
func LoadReferenceTool ¶
LoadReferenceTool returns the langchaingo tool definition for load_reference.
func LoadSkillHandler ¶
LoadSkillHandler implements the load_skill tool against the given registry.
func LoadSkillTool ¶
LoadSkillTool returns the langchaingo tool definition for load_skill, with a description that enumerates `reg`'s current skill catalog so the model knows which IDs are valid.
Types ¶
This section is empty.