debug和superagent提交的数据保持一致
This commit is contained in:
@@ -140,7 +140,7 @@ export async function uploadDebugEml(input: {
|
||||
| `html_body_sanitized` | string | 后端清洗后的 HTML,前端预览邮件正文时优先使用。 |
|
||||
| `html_sanitize_required` | boolean | 当前为 `true`,提醒前端不要直接信任原始 HTML。 |
|
||||
| `html_render_mode` | string | 当前可能为 `SANITIZED_HTML` 或 `TEXT_ONLY`。 |
|
||||
| `agentbus_like_payload` | object | 后端发送给 SuperAgent 的结构化 payload。 |
|
||||
| `agentbus_like_payload` | object | 后端发送给 SuperAgent 的 AgentBus Outlook-like 主 payload;只读展示。 |
|
||||
| `superagent_session_id` | string | SuperAgent session ID。 |
|
||||
| `superagent_run_id` | string | SuperAgent run ID。 |
|
||||
| `superagent_raw_answer` | string | SuperAgent 最终原始文本回答。 |
|
||||
@@ -164,7 +164,8 @@ export async function uploadDebugEml(input: {
|
||||
|
||||
- 邮件正文 iframe / 富文本预览优先使用 `html_body_sanitized`。
|
||||
- `html_body_with_oss_urls` 可以放在“原始处理 HTML”折叠面板中,不作为默认渲染内容。
|
||||
- `agentbus_like_payload.source.original_message_id` 是原始邮件 `Message-ID`。
|
||||
- `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`。
|
||||
- 原始邮件 `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`。
|
||||
- 如果 SuperAgent 返回旧 `S000,source_message_id` 或 `S999,source_message_id`,后端会把它识别为特殊入口结果,不会作为 JSON 解析失败处理。前端可在结果区展示 `entry_result_code`、`entry_result_source_message_id`、`entry_result_meaning` 和 `entry_result_description`。
|
||||
@@ -286,6 +287,7 @@ idle
|
||||
|
||||
- Debug EML 页面是调试工具,不是 Message Notification 页面。
|
||||
- Debug EML 页面写入的 SourceMessage `provider=DEBUG_EML_UPLOAD`,用于和 AgentBus 来源区分。
|
||||
- Debug 页面发给 SuperAgent 的 `agentbus_like_payload` 会尽量贴近实时 AgentBus Outlook payload;前端不要用 `DEBUG_EML_UPLOAD` 或 `schema_version` 判断该对象内容。
|
||||
- Debug EML 页面第一版不创建订单和任务,所以上传成功后任务列表和订单列表不会因为这次上传自动新增业务数据。
|
||||
- AgentBus 实时收到邮件后自动推 SuperAgent 已由 M007 后端 V1 实现,但默认关闭且不走 Debug 页面;不能用 Debug EML 页面代表生产实时链路。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user