feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a9fbac2fc
commit
d2b3d74def
571 files changed
+78064
-24681
No files matched your search
@@ -2,8 +2,9 @@
|
||||
services/shipping_notice/openapi_spec.py
|
||||
|
||||
用途:构建发货通知 Tool API 的 OpenAPI 描述,供 Dify 导入和联调用。
|
||||
依赖:shipping_notice.constants 中的请求字段常量、标准 `typing` 类型。
|
||||
逻辑:由 api/shipping_notice_tools.py 调用本文件生成 JSON/YAML OpenAPI 文档,再暴露给 Dify 或开发工具。
|
||||
依赖:标准 `typing` 类型。
|
||||
逻辑:由 api/shipping_notice_tools.py 调用本文件生成 JSON/YAML OpenAPI 文档,再暴露给 Dify 或开发工具;
|
||||
co8 起不再导出 get_batch_status(shipping_batches 已 DROP)。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -70,10 +71,6 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
|
||||
server = f"{server}/api/shipping-notice" if server else "/api/shipping-notice"
|
||||
|
||||
task_id = _str_prop("发货任务引用:技术任务号 SN-20260529-ABCD1234 或业务号 WYC26071501")
|
||||
batch_id = _str_prop("发货批次编号(batch id),如 SB-20260617-ABCD1234")
|
||||
runtime_context = _str_prop(
|
||||
"HXOPS 注入的完整 agent_runtime_context JSON 字符串;必须原样透传,禁止由 LLM 构造或修改"
|
||||
)
|
||||
capability_token = _str_prop("HXOPS 每轮注入的短效只读能力令牌;必须原样透传")
|
||||
return {
|
||||
"openapi": "3.0.0",
|
||||
@@ -105,14 +102,5 @@ def build_dify_openapi_spec(base_url: str) -> dict[str, Any]:
|
||||
"以及 step_payload.inventory_source_resolution.candidates。"
|
||||
),
|
||||
),
|
||||
"/tools/get_batch_status": _post_op(
|
||||
"get_batch_status",
|
||||
"查询批次当前状态、任务列表与当前聚焦任务",
|
||||
{
|
||||
"batch_no": batch_id,
|
||||
"shipping_chat_capability_token": capability_token,
|
||||
},
|
||||
required=["batch_no", "shipping_chat_capability_token"],
|
||||
),
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user