Class: ToolRegistry¶
Name → ToolDefinition registry with group-aware filtering.
Constructors¶
Constructor¶
Returns¶
ToolRegistry
Methods¶
get()¶
Return a tool definition by name, or null if unknown.
Parameters¶
| Parameter | Type |
|---|---|
name |
string |
Returns¶
ToolDefinition | null
getMany()¶
Return registered tool definitions, optionally filtered.
{ group: "cognitive" }— exactly that group{ groups: ["cognitive", "manifest"] }— union of groups{ groups: ["read"] }— expands via the 'read' umbrella alias
Pass nothing to get the full catalog. 1:1 with the Py get_many.
Parameters¶
| Parameter | Type |
|---|---|
opts |
{ group?: string | null; groups?: Iterable\<string, any, any> | null; } |
opts.group? |
string | null |
opts.groups? |
Iterable\<string, any, any> | null |
Returns¶
groups()¶
Reverse-build {group: [toolNames…]} (names sorted) from the registry.
Returns¶
Record\<string, string[]>
register()¶
Register a tool definition. Last-write-wins on same name (idempotent — factory-pattern registrants may re-register on every factory call).
Parameters¶
| Parameter | Type |
|---|---|
td |
ToolDefinition |
Returns¶
void