{ "schema_version": "muse-fixture-dsh-events-v1", "来源": "脱敏合成会话(W01 首批保护夹具);依据 framework/adapters/dsh/normalization.py 的解析形状;不含真实 prompt/response/凭据", "合同": "docs/系统架构/新版设计/接口契约/任务工具与事件.md;文件设计/测试与夹具.md#file-f36d7c5280a14732", "输入格式": "DSH 明文 JSONL 会话逐行对象数组(此处合并为数组保存)", "session": [ { "type": "session", "id": "dsh-syn-session-0001" }, { "type": "request/header", "data": { "header": { "config": { "provider": "synthetic-provider", "model": "synthetic-model-a" } } } }, { "type": "turn/start", "data": { "turn": 1 } }, { "type": "assistant/chunk", "data": { "turn": 1, "step": 1, "chunk": { "type": "text", "text": "第一" } } }, { "type": "assistant/chunk", "data": { "turn": 1, "step": 1, "chunk": { "type": "text", "text": "回合。" } } }, { "type": "assistant/chunk", "data": { "turn": 1, "step": 1, "chunk": { "type": "finish", "reason": { "kind": "stop" } } } }, { "type": "assistant/message", "data": { "turn": 1, "step": 1, "message": { "source": { "provider": "synthetic-provider", "model": "synthetic-model-a" }, "content": [ { "type": "text", "text": "第一回合。" } ] }, "usage": { "inputTokens": 50, "outputTokens": 6, "costUsd": 0.0002 } } }, { "type": "tool/call", "data": { "callId": "call-syn-0001", "name": "query_planning", "arguments": "{\"work_id\": \"work-syn-0001\"}" } }, { "type": "tool/result", "data": { "message": { "source": { "callId": "call-syn-0001" }, "content": [ { "type": "text", "text": "合成工具结果" } ] } } }, { "type": "tool/call", "data": { "callId": "call-syn-0002", "name": "query_facts", "arguments": "{\"as_of\": \"synthetic\"}" } }, { "type": "tool/result", "data": { "message": { "source": { "callId": "call-syn-0002" }, "content": [ { "type": "text", "text": "合成失败", "isError": true } ] } } }, { "type": "turn/end", "data": { "turn": 1, "reason": { "kind": "stop" } } }, { "type": "turn/start", "data": { "turn": 2 } }, { "type": "assistant/chunk", "data": { "turn": 2, "step": 1, "chunk": { "type": "text", "text": "中断前" } } }, { "type": "assistant/error", "data": { "turn": 2, "step": 1, "error": { "code": "synthetic_upstream_error" } } }, { "type": "turn/end", "data": { "turn": 2, "reason": { "kind": "error" } } }, { "type": "custom/experiment", "data": { "note": "合成未知事件类型" } } ], "expected_normalization": { "session_id": "dsh-syn-session-0001", "model_calls": [ { "actual_model_id": "synthetic-provider/synthetic-model-a", "stop_reason": "stop", "usage": { "inputTokens": 50, "outputTokens": 6, "costUsd": 0.0002 }, "cost_usd": 0.0002 } ], "tool_calls": [ { "tool_call_id": "call-syn-0001", "name": "query_planning", "is_error": false }, { "tool_call_id": "call-syn-0002", "name": "query_facts", "is_error": true } ], "turns": 2, "unknown_event_types": [ "custom/experiment" ], "final_text": "第一回合。", "失败回合": "turn 2 以 reason.kind=error 结束:kind=turn, phase=failed" } }