feat:修复客服agent功能

This commit is contained in:
2026-09-14 17:47:25 +08:00
parent b989d78248
commit 4f296eb58c
10 changed files with 556 additions and 91 deletions
@@ -71,6 +71,7 @@ async def generate_recommendation_draft(
memories: list[dict] | None = None,
llm_client=None,
llm_timeout: float = 5.0,
customer_context: dict | None = None,
):
draft_data = build_recommendation_draft(
customer_id=customer_id,
@@ -87,7 +88,10 @@ async def generate_recommendation_draft(
user_prompt=(
"请根据以下候选基金和客户记忆生成简洁推荐说明:"
+ json.dumps(
{"candidates": candidates, "memories": memories or []},
{
"candidates": candidates,
"customer_context": customer_context or {},
},
ensure_ascii=False,
)
),