haive.core.utils.haive_discovery.discovery_engine¶

Main discovery engine for finding and analyzing components.

Classes¶

EnhancedComponentDiscovery

Enhanced discovery engine with tool creation capabilities.

Module Contents¶

class haive.core.utils.haive_discovery.discovery_engine.EnhancedComponentDiscovery(base_path)[source]¶

Enhanced discovery engine with tool creation capabilities.

Parameters:

base_path (str)

add_analyzer(analyzer)[source]¶

Add a custom analyzer.

Parameters:

analyzer (haive.core.utils.haive_discovery.base_analyzer.ComponentAnalyzer)

discover_from_directory(directory, module_prefix, recursive=True, create_tools=True, ignore_errors=True)[source]¶

Discover components from a directory.

Parameters:
Return type:

list[haive.core.utils.haive_discovery.component_info.ComponentInfo]

get_engine_configs(components)[source]¶

Extract all engine configs from components.

Parameters:

components (list[haive.core.utils.haive_discovery.component_info.ComponentInfo])

Return type:

list[dict[str, Any]]

get_tools(components)[source]¶

Extract all created tools from components.

Parameters:

components (list[haive.core.utils.haive_discovery.component_info.ComponentInfo])

Return type:

list[Any]