feat(agent): 立账凭证检核
(cherry picked from commit f9e2fb5efc1ec7bf4f6e52e08dd3591b4e77edd9)
This commit is contained in:
1 parent
9bcbf9d211
commit
f615e56bb9
70 files changed
+4968
-108
No files matched your search
@@ -7,7 +7,7 @@
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"url": "http://192.168.100.192:8890",
|
||||
"url": "http://127.0.0.1:5052",
|
||||
"description": "HXOPS_TOOLS_API_BASE"
|
||||
}
|
||||
],
|
||||
@@ -560,12 +560,48 @@
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "HXOPS 会话 ID;可与 sys.conversation_id 二选一,优先显式传入"
|
||||
},
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"enum": [
|
||||
"incremental",
|
||||
"force_all",
|
||||
"single"
|
||||
],
|
||||
"description": "【Dify 推荐】运行模式(立账凭证检核读取;文件检核忽略)。incremental=增量 / force_all=全量 / single=单发票;单发票时须同时填 invoice_no"
|
||||
},
|
||||
"invoice_no": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "【Dify 推荐】mode=single 时必填的发票号;来自意图识别.invoice_no"
|
||||
},
|
||||
"run_options": {
|
||||
"type": "object",
|
||||
"nullable": true,
|
||||
"description": "可选嵌套写法(部分 Dify 版本不展示对象字段;优先用顶层 mode/invoice_no)。mode=incremental|force_all|single;single 时须带 invoice_no",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"incremental",
|
||||
"force_all",
|
||||
"single"
|
||||
],
|
||||
"default": "incremental"
|
||||
},
|
||||
"invoice_no": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"description": "mode=single 时必填的发票号"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"task_id"
|
||||
],
|
||||
"description": "Chatflow Tool 节点绑定 task_id(Integer,来源 解析运行态上下文.task_id_int)、hxops_turn_id(经 agent_runtime_context 解析后传入);user_message 用于展示与兼容兜底"
|
||||
"description": "Chatflow Tool 节点绑定 task_id(Integer,来源 解析运行态上下文.task_id_int)、hxops_turn_id(经 agent_runtime_context 解析后传入);立账凭证检核用顶层 mode/invoice_no(Dify 友好)或嵌套 run_options"
|
||||
},
|
||||
"RunCheckSuccessResponse": {
|
||||
"type": "object",
|
||||
@@ -891,6 +927,21 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DataSourceUnavailable": {
|
||||
"description": "检核数据源不可用(ODBC/SQL Server 连接失败或 SRM 环境变量未配置)",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ErrorResponse"
|
||||
},
|
||||
"example": {
|
||||
"ok": false,
|
||||
"error_code": "data_source_unavailable",
|
||||
"message": "检核数据源不可用,请检查排程 SQL 配置、SRM_SQLSERVER_* 环境变量及本机 ODBC 驱动"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user