feat:修复投顾agent功能

This commit is contained in:
2026-09-14 21:41:40 +08:00
parent fc1d74570f
commit 058f45115d
14 changed files with 142 additions and 33 deletions
+11
View File
@@ -108,6 +108,17 @@ async def classify_advisor_intent(
"rule",
"识别为系统提示文本而非业务查询",
)
fast_intent = recognize_advisor_intent(query)
if (
fast_intent == AGENT_INTENT_DATA_QUERY
and not any(term in query for term in _RECOMMENDATION_TERMS)
):
return IntentClassification(
fast_intent,
0.95,
"rule_fast",
"明显查询类问题",
)
if llm_client is not None:
try:
raw = await asyncio.wait_for(