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
From an ITool Instance
ITool InstancemyTool = aiTool( "search", "Search the database", ( query ) => db.search( query ) )
aiToolRegistry().register( myTool )Shorthand Registration
With Module Attribution
Scanning a Class with @AITool
@AIToolScanning a Package Path
Using Registered Tools
Resolve by Name
Resolve an Array (Mix of Strings and Instances)
Introspect the Registry
Unregistering Tools
Related Pages
Last updated