feat: adapt advisor agent to qyqy base

This commit is contained in:
Windows
2026-09-11 11:49:11 +08:00
parent 7ceeaff057
commit 5e8eecc288
5 changed files with 50 additions and 0 deletions
@@ -0,0 +1,21 @@
"""投顾 Agent 的迁移骨架。
当前阶段只接入新底座已有的场内基金行情只读能力;后续业务模块会按迁移 TODO
逐项扩展 definition、工具白名单和处理逻辑。
"""
from app.core.contracts import AgentDefinition
from app.service.agent.implementations.fund_query_demo import FundQueryDemoAgent
class AdvisorAgent(FundQueryDemoAgent):
"""通过公共 BaseAgent 链路运行的最小投顾 Agent。"""
definition = AgentDefinition(
agent_type="advisor",
version="0.1.0",
allowed_roles=("customer", "advisor", "operator", "admin"),
allowed_portals=("api",),
allowed_tools=("query_fund_quote",),
supported_intents=("fund_quote",),
)