tooluniverse.tools.ToolMetadataGenerator module¶

ToolMetadataGenerator

Generates a JSON structure with the metadata of a tool in ToolUniverse, given the JSON configurat…

tooluniverse.tools.ToolMetadataGenerator.ToolMetadataGenerator(tool_config, tool_type_mappings=None, *, stream_callback=None, use_cache=False, validate=True)[source]¶

Generates a JSON structure with the metadata of a tool in ToolUniverse, given the JSON configurat…

Parameters:
  • tool_config (str) – JSON string of the tool configuration to extract metadata from

  • tool_type_mappings (dict[str, Any]) – A mapping from a simplified toolType to a list of tool_config.type that fall …

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

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any