Documentation
¶
Index ¶
- func BuildDispatcher(catalog *Catalog) []*agent.Tool
- type Catalog
- func (c *Catalog) Get(name string) (ToolEntry, bool)
- func (c *Catalog) ListCategories() []Category
- func (c *Catalog) ListTools(category string) []ToolSchema
- func (c *Catalog) Register(category string, tools []*agent.Tool)
- func (c *Catalog) RegisterCategory(cat Category)
- func (c *Catalog) ToolCount() int
- type Category
- type ToolEntry
- type ToolSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDispatcher ¶
BuildDispatcher returns two meta-tools that provide dynamic access to the catalog: builtin_list (discovery) and builtin_invoke (proxy execution).
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog is a thread-safe registry of built-in tools grouped by category.
func (*Catalog) ListCategories ¶
ListCategories returns all registered categories sorted by name.
func (*Catalog) ListTools ¶
func (c *Catalog) ListTools(category string) []ToolSchema
ListTools returns schemas for all tools in the given category. If category is empty, all tools are returned.
func (*Catalog) Register ¶
Register adds tools under the given category. The category must already be registered via RegisterCategory.
func (*Catalog) RegisterCategory ¶
RegisterCategory adds a category descriptor.
Click to show internal directories.
Click to hide internal directories.