Tool Registry
A centralized registry for discovering, registering, and resolving AI tools across modules and classes.
Why Use the Registry?
Without Registry
With Registry
Accessing the Registry
// Get the singleton registry
registry = aiToolRegistry()Registering Tools
Using our aiTool() BIF
aiTool() BIF// Positional args
myTool = aiTool( "search", "Search the database", ( required query ) => db.search( query ) )
// Named args
myTool = aiTool(
name : "search",
description: "Search the database",
callback : ( required query ) => db.search( query )
)Tool Registry Registration
With Module Attribution
Scanning a Class with @AITool
@AIToolScanning a Package Path
@AITool Options
Using Registered Tools
Resolve by Name
Resolve an Array (Mix of Strings and Instances)
Introspect the Registry
Unregistering Tools
Built-in Tools (v3.0+)
Core Tools
Tool Key
Description
Audio Tools
Tool Key
Description
Image Tools (v3.2.0+)
Tool Key
Description
Filesystem Tools
Tool Key
Description
Web Search Tools (v3.2.0+)
Tool Key
Description
Agent Registry (v3.2.0+)
Agent Registry API
Method
Description
Agent Registry Events
Event
When Fired
Related Pages
Last updated