orxtra v0.13.0 /tool.src.orxtra.tool._discovery
On this page

collect_tools scans a module's attributes for Tool instances and returns them keyed by name -- the auto-discovery mechanism for module-defined tool sets.

#tool.src.orxtra.tool._discovery

#tool.src.orxtra.tool._discovery

Auto-discovery of Tool instances in a module.

#collect_tools

python
def collect_tools(module: ModuleType) -> dict[str, Tool]

Scan a module for Tool instances and return them keyed by name.

Looks for module-level attributes that are Tool instances. Returns {tool.name: tool} for each one found.

Search