mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-03 10:05:13 +00:00
refactor(agent): Refactor resource of agents (#1518)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import Dict
|
||||
|
||||
from dbgpt._private.config import Config
|
||||
from dbgpt.agent.plugin.commands.command_manage import ApiCall
|
||||
from dbgpt.agent.util.api_call import ApiCall
|
||||
from dbgpt.app.scene import BaseChat, ChatScene
|
||||
from dbgpt.util.executor_utils import blocking_func_to_async
|
||||
from dbgpt.util.tracer import root_tracer, trace
|
||||
@@ -40,7 +40,7 @@ class ChatWithDbAutoExecute(BaseChat):
|
||||
self.database = CFG.local_db_manager.get_connector(self.db_name)
|
||||
|
||||
self.top_k: int = 50
|
||||
self.api_call = ApiCall(display_registry=CFG.command_display)
|
||||
self.api_call = ApiCall()
|
||||
|
||||
@trace()
|
||||
async def generate_input_values(self) -> Dict:
|
||||
|
Reference in New Issue
Block a user