Documentation
¶
Index ¶
- func BuildDispatcher(catalog *Catalog) []*agent.Tool
- type Catalog
- func (c *Catalog) EnabledCategorySummary() map[string][]string
- 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
- func (c *Catalog) ToolNamesForCategory(category string) []string
- type Category
- type ToolEntry
- type ToolSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDispatcher ¶
BuildDispatcher returns meta-tools that provide dynamic access to the catalog: builtin_list (discovery), builtin_invoke (proxy execution), and builtin_health (diagnostics).
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) EnabledCategorySummary ¶ added in v0.6.0
EnabledCategorySummary returns a map of enabled category name → tool name list.
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.
func (*Catalog) ToolNamesForCategory ¶ added in v0.6.0
ToolNamesForCategory returns tool names registered under the given category.