tooluniverse.compose_scripts.tool_metadata_generator 模块

工具元数据生成管道通过提取配置文件中的详细信息,为工具列表生成全面的元数据

tooluniverse.compose_scripts.tool_metadata_generator.compose(arguments, tooluniverse, call_tool)[源代码]

工具元数据生成的主要组成函数

参数:
  • arguments (dict) – 输入参数包含一组工具配置的 JSON 列表,以及用于非 API 工具的 tool_type_mappings 字典(例如,{‘Databases’: [‘XMLTool’]})

  • tooluniverse – ToolUniverse 实例

  • call_tool – 调用其他工具的功能

返回值

list: List of tool metadata dictionaries (JSON-compatible)