Commit f237d067 by sunqi02

refactor(main): use load_agents_from_db + fix docstring

- main.py lifespan: replace load_agents() with load_agents_from_db(db)
- Fix remaining "meeting" in call_sub_agent docstring
1 parent c82b3fed
......@@ -64,8 +64,8 @@ async def lifespan(app: FastAPI):
settings = config_loader.load_settings()
db = SessionLocal()
# 加载 Agent 配置
agents = config_loader.load_agents()
# 从数据库加载 Agent 配置
agents = config_loader.load_agents_from_db(db)
session_service = ActiveSessionService(db=db)
......
......@@ -544,7 +544,7 @@ class AgentHub:
当用户问题属于某个子Agent的职责范围时,必须调用此工具委托处理。
Args:
agent_code: 子Agent调用码,必须从可用子Agent列表中选择,如 "meeting"
agent_code: 子Agent调用码,必须从可用子Agent列表中选择
instruction: 给子Agent的具体指令,必须包含用户需求的完整描述
Returns:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!