feat(server): 更新用户代理服务,新增编排器服务测试用例,完善服务编排能力

This commit is contained in:
caoxiaozhu
2026-05-15 06:56:26 +00:00
parent c9cc0b0641
commit 511337df95
2 changed files with 16 additions and 11 deletions

View File

@@ -643,7 +643,7 @@ class UserAgentService:
if is_submitted:
body = (
f"主题:{subject}\n"
f"结论:报销单已提交审批,当前节点为 {approval_stage or '审批中'}\n"
f"结论:报销单已完成 AI验审,当前节点为 {approval_stage or '审批中'}\n"
"建议:后续可在个人报销列表中跟踪审批进度,必要时再补充说明或附件。\n"
f"原始问题:{payload.message}"
)
@@ -1279,7 +1279,7 @@ class UserAgentService:
if review_action == "next_step":
if draft_payload is not None and draft_payload.status == "submitted":
stage_text = draft_payload.approval_stage or "审批中"
return f"报销单 {draft_payload.claim_no or ''}提交审批,当前节点为 {stage_text}".strip()
return f"报销单 {draft_payload.claim_no or ''}完成 AI验审,当前节点为 {stage_text}".strip()
if payload.tool_payload.get("submission_blocked"):
return str(payload.tool_payload.get("message") or "").strip() or "当前报销单暂时还不能提交审批。"
return (