refactor(server): user_agent/steward/ocr 等服务重构并适配关联任务
- user_agent 拆分 application/locations/knowledge/response/review 四个子模块,接入申请位置语义与关联草稿分支 - steward planner/runtime/slot/plan_builder 决策链路重构,travel_reimbursement_calculator/orchestrator_expense_query 适配 - ocr/document_preview/document_intelligence/receipt_folder 复用预览与资产缓存,expense_claim_draft_flow/application_handoff 适配 - pyproject.toml 新增依赖,paddleocr bootstrap 脚本与 server_start.sh 调整 - 更新差旅/交通/通信等财务规则表,同步 document_intelligence/ocr/receipt_folder/user_agent 等测试
This commit is contained in:
@@ -164,7 +164,7 @@ class UserAgentReviewMessageMixin:
|
||||
if payload.tool_payload.get("draft_limit_reached"):
|
||||
return (
|
||||
str(payload.tool_payload.get("message") or "").strip()
|
||||
or "你当前已保存 3 个草稿,请先完成已保存的草稿,才能再次新建草稿。"
|
||||
or "您当前已保存 3 个草稿,请先完成已保存的草稿,才能再次新建草稿。"
|
||||
)
|
||||
|
||||
review_action = str(payload.context_json.get("review_action") or "").strip()
|
||||
@@ -254,11 +254,11 @@ class UserAgentReviewMessageMixin:
|
||||
if claim_no:
|
||||
return (
|
||||
f"已识别出本次上传的 {document_count} 张票据。"
|
||||
f"系统检测到你已有草稿 {claim_no},请选择关联到该草稿,或单独建立一张新的报销单。"
|
||||
f"系统检测到您已有草稿 {claim_no},请选择关联到该草稿,或单独新建一张报销单。"
|
||||
)
|
||||
return (
|
||||
f"已识别出本次上传的 {document_count} 张票据。"
|
||||
"系统检测到你已有可用草稿,请先选择关联到现有草稿,或单独建立一张新的报销单。"
|
||||
"系统检测到您已有可用草稿,请先选择关联到现有草稿,或单独新建一张报销单。"
|
||||
)
|
||||
|
||||
blocked_reasons = self._resolve_submission_blocked_reasons(payload)
|
||||
|
||||
Reference in New Issue
Block a user