mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-12 20:53:48 +00:00
feat(agent): dbgpts support agent (#1417)
This commit is contained in:
@@ -47,6 +47,7 @@ def initialize_components(
|
||||
)
|
||||
_initialize_model_cache(system_app)
|
||||
_initialize_awel(system_app, param)
|
||||
_initialize_agent(system_app)
|
||||
_initialize_openapi(system_app)
|
||||
# Register serve apps
|
||||
register_serve_apps(system_app, CFG)
|
||||
@@ -78,6 +79,12 @@ def _initialize_awel(system_app: SystemApp, param: WebServerParameters):
|
||||
initialize_awel(system_app, dag_dirs)
|
||||
|
||||
|
||||
def _initialize_agent(system_app: SystemApp):
|
||||
from dbgpt.agent import initialize_agent
|
||||
|
||||
initialize_agent(system_app)
|
||||
|
||||
|
||||
def _initialize_openapi(system_app: SystemApp):
|
||||
from dbgpt.app.openapi.api_v1.editor.service import EditorService
|
||||
|
||||
|
Reference in New Issue
Block a user