mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-07-05 16:02:14 +02:00
add test cases for tool convert
This commit is contained in:
parent
a2493d99f1
commit
8b371eaad3
2 changed files with 93 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ class CodeVisitor(ast.NodeVisitor):
|
|||
if node.returns:
|
||||
return_annotation = f" -> {ast.unparse(node.returns)}"
|
||||
|
||||
return f"({' ,'.join(args)}){return_annotation}"
|
||||
return f"({', '.join(args)}){return_annotation}"
|
||||
|
||||
def get_tool_schemas(self):
|
||||
return self.tool_schemas
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue