Files
group_fqcd_jr/app/service/agent/promotion_material_agent.py

25 lines
934 B
Python

"""基金产品推介材料 Agent。"""
from app.core.contracts import AgentDefinition, AgentRequest, CoreResult, RequestContext
from app.service.agent.base import BaseAgent
class PromotionMaterialAgent(BaseAgent):
definition = AgentDefinition(
agent_type="promotion_material",
version="1.0.0",
allowed_roles=("operator", "admin", "super_admin"),
allowed_portals=("api",),
supported_intents=("promotion_draft", "promotion_compliance", "general"),
)
async def handle(self, request: AgentRequest, context: RequestContext) -> CoreResult:
del context
return CoreResult(
text=(
"基金产品推介材料 Agent 已接入。结构化资料、固定模板、业绩曲线和合规校验"
"由产品推介材料业务服务统一编排。"
f"本次请求摘要:{request.message[:120]}"
)
)