| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- {
- "version": 1,
- "caseName": "conversation-session-attachment-resume",
- "spec": "./test/e2e/conversation-session/attachments/conversation-session-attachment-resume.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-attachment-resume-title-sidecar",
- "description": "本例标题旁路响应。",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "application/json; charset=utf-8"
- },
- "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
- }
- },
- {
- "id": "attachment-resume-first",
- "description": "AR01 first: 附件冷恢复请求",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_ATTACHMENT_RESUME_FIRST"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_ATTACHMENT_RESUME_HOT",
- "E2E_ATTACHMENT_RESUME_COLD"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "attachment-resume-first",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "ATTACHMENT_RESUME_FIRST_OK"
- }
- }
- },
- {
- "id": "attachment-resume-hot",
- "description": "AR01 hot: 附件冷恢复请求",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_ATTACHMENT_RESUME_HOT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_ATTACHMENT_RESUME_COLD"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "attachment-resume-hot",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "ATTACHMENT_RESUME_HOT_OK"
- }
- }
- },
- {
- "id": "attachment-resume-cold",
- "description": "AR01 cold: 附件冷恢复请求",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定回复使重启前后历史内容可比,spec 直接断言捕获的首轮 user content。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_ATTACHMENT_RESUME_COLD"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "attachment-resume-cold",
- "inputTokens": 80,
- "outputTokens": 8,
- "text": "ATTACHMENT_RESUME_COLD_OK"
- }
- }
- }
- ]
- }
|