moetools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	NameLoadSkill     = "load_skill"
	NameLoadReference = "load_reference"
)

Tool names.

Variables

This section is empty.

Functions

func DescribeAvailableSkills

func DescribeAvailableSkills(reg *skills.Registry) string

DescribeAvailableSkills enumerates a registry into a one-line catalog suitable for inclusion in the load_skill tool description.

func LoadReferenceHandler

func LoadReferenceHandler(reg *skills.Registry, arguments string) (string, error)

LoadReferenceHandler implements the load_reference tool against the given registry.

func LoadReferenceTool

func LoadReferenceTool() llms.Tool

LoadReferenceTool returns the langchaingo tool definition for load_reference.

func LoadSkillHandler

func LoadSkillHandler(reg *skills.Registry, arguments string) (string, error)

LoadSkillHandler implements the load_skill tool against the given registry.

func LoadSkillTool

func LoadSkillTool(reg *skills.Registry) llms.Tool

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.

func Register

func Register(base *agent.BaseAgent, reg *skills.Registry) error

Register attaches the load_skill / load_reference callables onto a BaseAgent. Consumers typically call this on every agent so the catalog is available regardless of which expert is active.

func Tools

func Tools(reg *skills.Registry) []llms.Tool

Tools returns the slice of tool definitions to append to any chat tool set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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