add test cases for tool convert

This commit is contained in:
yzlin 2024-03-27 11:41:04 +08:00
parent a2493d99f1
commit 8b371eaad3
2 changed files with 93 additions and 2 deletions

View file

@ -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