feat(agent): Multi agent sdk (#976)

Co-authored-by: xtyuns <xtyuns@163.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: csunny <cfqsunny@163.com>
Co-authored-by: qidanrui <qidanrui@gmail.com>
This commit is contained in:
明天
2023-12-27 16:25:55 +08:00
committed by GitHub
parent 69fb97e508
commit 9aec636b02
79 changed files with 6359 additions and 121 deletions

View File

@@ -334,7 +334,7 @@ class RDBMSDatabase(BaseConnect):
"""
print(f"Query[{query}]")
if not query:
return []
return [], None
cursor = self.session.execute(text(query))
if cursor.returns_rows:
if fetch == "all":
@@ -347,7 +347,7 @@ class RDBMSDatabase(BaseConnect):
result = list(result)
return field_names, result
return []
return [], None
def run(self, command: str, fetch: str = "all") -> List:
"""Execute a SQL command and return a string representing the results."""