feat:客户agent以及记忆模块功能开发
This commit is contained in:
@@ -11,6 +11,7 @@ from service.customer_agent.bootstrap import (
|
||||
build_default_knowledge_upload_service,
|
||||
build_default_runtime,
|
||||
)
|
||||
from service.client_agent.bootstrap import build_default_runtime as build_client_runtime
|
||||
from utils.exceptions import register_exception_handlers
|
||||
from utils.logger import setup_logging
|
||||
from utils.request_id import RequestIdMiddleware
|
||||
@@ -21,6 +22,7 @@ async def lifespan(app: FastAPI):
|
||||
setup_logging()
|
||||
await ensure_collections()
|
||||
app.state.customer_agent_runtime = build_default_runtime()
|
||||
app.state.client_agent_runtime = build_client_runtime()
|
||||
app.state.knowledge_upload_service = build_default_knowledge_upload_service()
|
||||
yield
|
||||
await database.dispose()
|
||||
@@ -35,4 +37,4 @@ app.include_router(api_router)
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {"message": "智能公募基金系统 API", "docs": "/docs"}
|
||||
return {"message": "智能公募基金系统 API", "docs": "/docs"}
|
||||
|
||||
Reference in New Issue
Block a user