落地私聊附件询价:发卡走 H5 收 Excel/PDF,认成口播再复用三线文字流程,避免附件卡在识别或退成纯文本。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
识别任务壳:入队 Redis Stream,Worker HTTP 槽认领后跑占位处理。
|
||||
|
||||
本文件职责:识别入队;Worker 槽消费。kind=vision 跑私聊图片波次,其它 kind 仍占位。
|
||||
本文件职责:识别入队;Worker 槽消费。kind=vision 跑私聊图片波次,kind=attachment 跑附件材料,其它 kind 仍占位。
|
||||
禁止:回调线程同步等识别完成;禁止本模块写主账六态。
|
||||
"""
|
||||
|
||||
@@ -74,6 +74,10 @@ def process_recognition(data: dict[str, Any]) -> dict[str, Any]:
|
||||
from agent.handlers.image_inquiry import finish_queued_image
|
||||
|
||||
return finish_queued_image(payload)
|
||||
if kind == "attachment":
|
||||
from agent.handlers.attachment_inquiry import finish_queued_attachment
|
||||
|
||||
return finish_queued_attachment(payload)
|
||||
return process_recognition_stub(data)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user