🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
rm tool schema storage
shenchucheng1b9b9acc1d4f
diff --git a/metagpt/tools/tool_registry.py b/metagpt/tools/tool_registry.pyindex e264a1b94..65d2fb662 100644--- a/metagpt/tools/tool_registry.py+++ b/metagpt/tools/tool_registry.py@@ -12,7 +12,6 @@ import osfrom collections import defaultdictfrom pathlib import Path-import yamlfrom pydantic import BaseModelfrom metagpt.const import TOOL_SCHEMA_PATH@@ -117,11 +116,8 @@ def register_tool(tags: list[str] = None, schema_path: str = "", **kwargs):def make_schema(tool_source_object, include, path):- os.makedirs(os.path.dirname(path), exist_ok=True) # Create the necessary directoriestry:schema = convert_code_to_tool_schema(tool_source_object, include=include)- with open(path, "w", encoding="utf-8") as f:- yaml.dump(schema, f, sort_keys=False)except Exception as e:schema = {}logger.error(f"Fail to make schema: {e}")