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:
dict[str,Any]