tooluniverse.tools.LabelGenerator moduleΒΆ

LabelGenerator

Generates relevant keyword labels for tools based on their name, description, parameters, and cat…

tooluniverse.tools.LabelGenerator.LabelGenerator(tool_name, tool_description, tool_parameters, category, existing_labels=None, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ

Generates relevant keyword labels for tools based on their name, description, parameters, and cat…

Parameters:
  • tool_name (str) – The name of the tool

  • tool_description (str) – Detailed description of what the tool does

  • tool_parameters (str) – JSON string describing the tool’s input parameters and their types

  • category (str) – The general category or domain the tool belongs to

  • existing_labels (str) – JSON array string of existing labels to consider reusing (optional)

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

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any