🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
small bug fixes
yzlin93663784ab28
diff --git a/metagpt/tools/tool_convert.py b/metagpt/tools/tool_convert.pyindex 48c945d9b..42c65b9e7 100644--- a/metagpt/tools/tool_convert.py+++ b/metagpt/tools/tool_convert.py@@ -12,7 +12,7 @@ def convert_code_to_tool_schema(obj, include: list[str] = None):if inspect.isclass(obj):schema = {"type": "class", "description": remove_spaces(docstring), "methods": {}}for name, method in inspect.getmembers(obj, inspect.isfunction):- if name.startswith("_"): # skip private methodss+ if name.startswith("_") and name != "__init__": # skip private methodsscontinueif include and name not in include:continue