feat:修复客服agent功能
This commit is contained in:
@@ -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,
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user