mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
small bug fixes
This commit is contained in:
parent
77eacec1b8
commit
93663784ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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 methodss
|
||||
continue
|
||||
if include and name not in include:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue