调试阶段暂时将多轮功能去掉

This commit is contained in:
weiweiw 2025-03-09 14:49:42 +08:00
parent aabc01d209
commit 2cd3351dbd
1 changed files with 16 additions and 16 deletions

View File

@ -208,22 +208,22 @@ def agent():
print(f"多轮意图识别后的label:{predicted_label}, id:{predicted_id},槽位抽取后的实体:{entities},message:{messages}")
#必须槽位缺失检查
status, sk = check_lost(predicted_id, entities)
if status == CheckResult.NEEDS_MORE_ROUNDS:
return jsonify({"code": 10001, "msg": "成功",
"answer": { "miss": sk},
})
#工程名和项目名标准化
print(f"start to check_project_standard_slot")
result, information = check_project_standard_slot(predicted_id, entities)
print(f"end check_project_standard_slot,{result},{information}")
if result == CheckResult.NEEDS_MORE_ROUNDS:
return jsonify({
"code": 10001, "msg": "成功",
"answer": {"miss": information},
})
# #必须槽位缺失检查
# status, sk = check_lost(predicted_id, entities)
# if status == CheckResult.NEEDS_MORE_ROUNDS:
# return jsonify({"code": 10001, "msg": "成功",
# "answer": { "miss": sk},
# })
#
# #工程名和项目名标准化
# print(f"start to check_project_standard_slot")
# result, information = check_project_standard_slot(predicted_id, entities)
# print(f"end check_project_standard_slot,{result},{information}")
# if result == CheckResult.NEEDS_MORE_ROUNDS:
# return jsonify({
# "code": 10001, "msg": "成功",
# "answer": {"miss": information},
# })
return jsonify({
"code": 200,"msg": "成功",