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

@@ -4,7 +4,7 @@ import logging
from typing import Dict
from dbgpt.app.scene import BaseChat, ChatScene
from dbgpt._private.config import Config
from dbgpt.agent.commands.command_mange import ApiCall
from dbgpt.agent.plugin.commands.command_mange import ApiCall
from dbgpt.app.scene.chat_data.chat_excel.excel_reader import ExcelReader
from dbgpt.app.scene.chat_data.chat_excel.excel_learning.chat import ExcelLearning
from dbgpt.util.path_utils import has_path

View File

@@ -3,7 +3,7 @@ from typing import Any, Dict
from dbgpt.core.interface.message import ViewMessage, AIMessage
from dbgpt.app.scene import BaseChat, ChatScene
from dbgpt.util.json_utils import DateTimeEncoder
from dbgpt.util.json_utils import EnhancedJSONEncoder
from dbgpt.util.executor_utils import blocking_func_to_async
from dbgpt.util.tracer import trace
@@ -45,7 +45,7 @@ class ExcelLearning(BaseChat):
datas.insert(0, colunms)
input_values = {
"data_example": json.dumps(datas, cls=DateTimeEncoder),
"data_example": json.dumps(datas, cls=EnhancedJSONEncoder),
"file_name": self.excel_reader.excel_file_name,
}
return input_values