tooluniverse.tools.ToolGraphComposer module

ToolGraphComposer

Builds a comprehensive graph of tool compatibility relationships in ToolUniverse. Analyzes all av…

tooluniverse.tools.ToolGraphComposer.ToolGraphComposer(output_path, analysis_depth, min_compatibility_score, exclude_categories, max_tools_per_category, force_rebuild, *, stream_callback=None, use_cache=False, validate=True)[source]

Builds a comprehensive graph of tool compatibility relationships in ToolUniverse. Analyzes all av…

Parameters:
  • output_path (str) – Path to save the generated graph files (JSON and pickle formats)

  • analysis_depth (str) – Level of compatibility analysis to perform

  • min_compatibility_score (int) – Minimum compatibility score to create an edge in the graph

  • exclude_categories (list[Any]) – Tool categories to exclude from analysis (e.g., [‘tool_finder’, ‘special_tool…

  • max_tools_per_category (int) – Maximum number of tools to analyze per category (for performance)

  • force_rebuild (bool) – Whether to force rebuild even if cached graph exists

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any