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 tooltool_description (
str
) β Detailed description of what the tool doestool_parameters (
str
) β JSON string describing the toolβs input parameters and their typescategory (
str
) β The general category or domain the tool belongs toexisting_labels (
str
) β JSON array string of existing labels to consider reusing (optional)stream_callback (
Callable
, optional) β Callback for streaming output
- Return type:
Any