实现 Booking Excel 预处理接入 SuperAgent
This commit is contained in:
@@ -141,6 +141,7 @@ export async function uploadDebugEml(input: {
|
||||
| `html_sanitize_required` | boolean | 当前为 `true`,提醒前端不要直接信任原始 HTML。 |
|
||||
| `html_render_mode` | string | 当前可能为 `SANITIZED_HTML` 或 `TEXT_ONLY`。 |
|
||||
| `agentbus_like_payload` | object | 后端发送给 SuperAgent 的 AgentBus Outlook-like 主 payload;只读展示。 |
|
||||
| `attachment_extractions[]` | array | M011 启用时返回的 Booking Excel 附件预处理安全预览,内容与 `agentbus_like_payload.attachment_extractions[]` 对齐;未启用或无匹配附件时为空或不返回。 |
|
||||
| `superagent_session_id` | string | SuperAgent session ID。 |
|
||||
| `superagent_run_id` | string | SuperAgent run ID。 |
|
||||
| `superagent_raw_answer` | string | SuperAgent 最终原始文本回答。 |
|
||||
@@ -165,6 +166,7 @@ export async function uploadDebugEml(input: {
|
||||
- 邮件正文 iframe / 富文本预览优先使用 `html_body_sanitized`。
|
||||
- `html_body_with_oss_urls` 可以放在“原始处理 HTML”折叠面板中,不作为默认渲染内容。
|
||||
- `agentbus_like_payload` 不包含 Debug 专属字段,不再包含 `schema_version`、`source.provider=DEBUG_EML_UPLOAD`、`source.original_message_id`、`debug_context` 或旧的 Debug 专属 `reply_policy.mode=debug_only`;当前会包含普通 `reply_policy.mode=manual`、`reply_policy.final_only=true`。
|
||||
- M011 Debug EML 开关启用后,`agentbus_like_payload` 可能追加 `attachment_extractions[]`,用于让 SuperAgent 在不直接打开整份 Excel 的情况下读取 Booking Update / 附加费表中的高亮业务行。前端只能格式化展示该 JSON,不做业务保存、人工确认或二次提交。
|
||||
- 原始邮件 `Message-ID` 不作为 Debug 外部消息 ID,也不进入 SuperAgent 主 payload;需要排查时看原始 EML OSS 文件和后端 Debug run / SuperAgent metadata。
|
||||
- `external_message_id` 是 Debug 链路生成的独立 ID,不等同于原始 `Message-ID`。
|
||||
- `superagent_parsed_json` 有值时优先展示格式化 JSON;没有值时展示 `superagent_raw_answer`。
|
||||
|
||||
Reference in New Issue
Block a user