| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396 |
- {
- "version": 1,
- "caseName": "conversation-session-total-tokens-reminder",
- "spec": "./test/e2e/conversation-session/goals/conversation-session-total-tokens-reminder.test.ts",
- "fixtures": [
- {
- "id": "tt-title-a-mcs",
- "description": "a-mcs 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_A1_MCS"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-title-a-mcs",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\": \"Total Tokens a-mcs\"}"
- }
- }
- },
- {
- "id": "tt-a1-mcs",
- "description": "A MCS 第一轮首个请求:Read,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A1_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A1_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A1_MCS",
- "messageId": "msg_toolu_E2E_TTREAD_A1_MCS",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 1000,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-a2-mcs",
- "description": "A MCS 第一个工具批次之后:Read,usage 2400/7。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A1_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A2_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A2_MCS",
- "messageId": "msg_toolu_E2E_TTREAD_A2_MCS",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 2400,
- "outputTokens": 7
- }
- }
- },
- {
- "id": "tt-a3-mcs",
- "description": "A MCS 第二个工具批次之后:文字收尾,usage 2600/9。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A2_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A2_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a3-mcs",
- "inputTokens": 2600,
- "outputTokens": 9,
- "text": "TT_A1_DONE_MCS"
- }
- }
- },
- {
- "id": "tt-a4-mcs",
- "description": "A MCS 第二轮首个请求:Read,usage 3000/10。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A2_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A4_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A4_MCS",
- "messageId": "msg_toolu_E2E_TTREAD_A4_MCS",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3000,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "tt-a5-mcs",
- "description": "A MCS 工具批次之后:文字因输出上限停止,usage 3050/8。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定一次因 max_tokens 停止的文字回复,触发输出续写;续写请求同样没有提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A4_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A_PARTIAL_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "cache-control": "no-cache",
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"tt-a5-mcs\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":3050,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_TT_A_PARTIAL_MCS\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"max_tokens\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":3050,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
- }
- },
- {
- "id": "tt-a6-mcs",
- "description": "A MCS 输出续写:文字收尾,usage 3100/3。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["Output token limit hit"],
- "bodyIncludes": ["E2E_TT_A_PARTIAL_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A3_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a6-mcs",
- "inputTokens": 3100,
- "outputTokens": 3,
- "text": "TT_A2_DONE_MCS"
- }
- }
- },
- {
- "id": "tt-a7-mcs",
- "description": "A MCS 冷恢复后第三轮首个请求:Read,usage 3300/4。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A3_MCS"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A7_MCS"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A7_MCS",
- "messageId": "msg_toolu_E2E_TTREAD_A7_MCS",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3300,
- "outputTokens": 4
- }
- }
- },
- {
- "id": "tt-a8-mcs",
- "description": "A MCS 冷恢复后的工具批次之后:文字收尾,usage 3400/6。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A7_MCS"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a8-mcs",
- "inputTokens": 3400,
- "outputTokens": 6,
- "text": "TT_A3_DONE_MCS"
- }
- }
- },
- {
- "id": "tt-title-a-plain",
- "description": "a-plain 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_A1_PLAIN"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-title-a-plain",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\": \"Total Tokens a-plain\"}"
- }
- }
- },
- {
- "id": "tt-a1-plain",
- "description": "A PLAIN 第一轮首个请求:Read,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A1_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A1_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A1_PLAIN",
- "messageId": "msg_toolu_E2E_TTREAD_A1_PLAIN",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 1000,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-a2-plain",
- "description": "A PLAIN 第一个工具批次之后:Read,usage 2400/7。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A1_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A2_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A2_PLAIN",
- "messageId": "msg_toolu_E2E_TTREAD_A2_PLAIN",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 2400,
- "outputTokens": 7
- }
- }
- },
- {
- "id": "tt-a3-plain",
- "description": "A PLAIN 第二个工具批次之后:文字收尾,usage 2600/9。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A2_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A2_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a3-plain",
- "inputTokens": 2600,
- "outputTokens": 9,
- "text": "TT_A1_DONE_PLAIN"
- }
- }
- },
- {
- "id": "tt-a4-plain",
- "description": "A PLAIN 第二轮首个请求:Read,usage 3000/10。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A2_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A4_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A4_PLAIN",
- "messageId": "msg_toolu_E2E_TTREAD_A4_PLAIN",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3000,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "tt-a5-plain",
- "description": "A PLAIN 工具批次之后:文字因输出上限停止,usage 3050/8。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定一次因 max_tokens 停止的文字回复,触发输出续写;续写请求同样没有提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A4_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A_PARTIAL_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "cache-control": "no-cache",
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"tt-a5-plain\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":3050,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_TT_A_PARTIAL_PLAIN\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"max_tokens\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":3050,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
- }
- },
- {
- "id": "tt-a6-plain",
- "description": "A PLAIN 输出续写:文字收尾,usage 3100/3。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["Output token limit hit"],
- "bodyIncludes": ["E2E_TT_A_PARTIAL_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_A3_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a6-plain",
- "inputTokens": 3100,
- "outputTokens": 3,
- "text": "TT_A2_DONE_PLAIN"
- }
- }
- },
- {
- "id": "tt-a7-plain",
- "description": "A PLAIN 冷恢复后第三轮首个请求:Read,usage 3300/4。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_A3_PLAIN"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_A7_PLAIN"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_A7_PLAIN",
- "messageId": "msg_toolu_E2E_TTREAD_A7_PLAIN",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3300,
- "outputTokens": 4
- }
- }
- },
- {
- "id": "tt-a8-plain",
- "description": "A PLAIN 冷恢复后的工具批次之后:文字收尾,usage 3400/6。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_A7_PLAIN"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-a8-plain",
- "inputTokens": 3400,
- "outputTokens": 6,
- "text": "TT_A3_DONE_PLAIN"
- }
- }
- },
- {
- "id": "tt-title-c",
- "description": "c 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_C1"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-title-c",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\": \"Total Tokens c\"}"
- }
- }
- },
- {
- "id": "tt-c1",
- "description": "C 第一轮首个请求:Read,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_C1"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C1"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C1",
- "messageId": "msg_toolu_E2E_TTREAD_C1",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 1000,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-c2",
- "description": "C 第一个工具批次之后:Read,usage 975000/7,超过 1000000 窗口的自动压缩阈值。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_C1"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C2"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C2",
- "messageId": "msg_toolu_E2E_TTREAD_C2",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 975000,
- "outputTokens": 7
- }
- }
- },
- {
- "id": "tt-c-auto-summary",
- "description": "C 自动压缩的摘要请求。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定自动压缩的摘要响应,usage 写死。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_TT_C1"],
- "bodyExcludes": ["Generate a concise title", "E2E_TT_C_AUTO_SUMMARY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c-auto-summary",
- "inputTokens": 2000,
- "outputTokens": 20,
- "text": "<analysis>The user ran readonly tool calls.</analysis>\n\n<summary>1. Primary Request and Intent:\n E2E_TT_C_AUTO_SUMMARY: keep running the readonly tool steps.\n</summary>"
- }
- }
- },
- {
- "id": "tt-c3",
- "description": "C 自动压缩后的首个请求:Read,usage 3000/10。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_TT_C_AUTO_SUMMARY"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C3"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C3",
- "messageId": "msg_toolu_E2E_TTREAD_C3",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3000,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "tt-c4",
- "description": "C 压缩后的工具批次之后:文字收尾,usage 3100/3。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_C3"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_C2"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c4",
- "inputTokens": 3100,
- "outputTokens": 3,
- "text": "TT_C1_DONE"
- }
- }
- },
- {
- "id": "tt-c-manual-summary",
- "description": "C 手动 /compact 的摘要请求。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定手动压缩的摘要响应,usage 写死。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_TT_C_AUTO_SUMMARY"],
- "bodyExcludes": ["Generate a concise title", "E2E_TT_C_MANUAL_SUMMARY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c-manual-summary",
- "inputTokens": 2000,
- "outputTokens": 20,
- "text": "<analysis>The user ran readonly tool calls.</analysis>\n\n<summary>1. Primary Request and Intent:\n E2E_TT_C_MANUAL_SUMMARY: keep running the readonly tool steps.\n</summary>"
- }
- }
- },
- {
- "id": "tt-c5",
- "description": "C 手动压缩后的第二轮首个请求:Read,usage 3300/4。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_C2"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C5"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C5",
- "messageId": "msg_toolu_E2E_TTREAD_C5",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3300,
- "outputTokens": 4
- }
- }
- },
- {
- "id": "tt-c6",
- "description": "C 第二轮工具批次之后:文字收尾,usage 3400/6。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_C5"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_C3"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c6",
- "inputTokens": 3400,
- "outputTokens": 6,
- "text": "TT_C2_DONE"
- }
- }
- },
- {
- "id": "tt-c7",
- "description": "C 第三轮首个请求:Read,usage 3500/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_C3"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C7"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C7",
- "messageId": "msg_toolu_E2E_TTREAD_C7",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3500,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-c8-too-long",
- "description": "C 第三轮工具批次之后:上游返回 prompt is too long,触发 reactive compaction。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fault-stream",
- "source": "synthetic",
- "syntheticReason": "注入一次上下文超限错误,触发 reactive compaction;错误响应没有 usage。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_C7"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_C_REACTIVE_SUMMARY"
- ]
- },
- "response": {
- "statusCode": 400,
- "headers": {
- "content-type": "application/json"
- },
- "body": "{\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 250000 tokens > 200000 maximum\"}}"
- }
- },
- {
- "id": "tt-c-reactive-summary",
- "description": "C reactive compaction 的摘要请求。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定 reactive 压缩的摘要响应,usage 写死。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_TT_C_MANUAL_SUMMARY"],
- "bodyExcludes": ["Generate a concise title", "E2E_TT_C_REACTIVE_SUMMARY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c-reactive-summary",
- "inputTokens": 2000,
- "outputTokens": 20,
- "text": "<analysis>The user ran readonly tool calls.</analysis>\n\n<summary>1. Primary Request and Intent:\n E2E_TT_C_REACTIVE_SUMMARY: keep running the readonly tool steps.\n</summary>"
- }
- }
- },
- {
- "id": "tt-c9",
- "description": "C reactive compaction 后的重试:Read,usage 3700/6。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_TT_C_REACTIVE_SUMMARY"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_C9"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_C9",
- "messageId": "msg_toolu_E2E_TTREAD_C9",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 3700,
- "outputTokens": 6
- }
- }
- },
- {
- "id": "tt-c10",
- "description": "C 重试后的工具批次之后:文字收尾,usage 3800/2。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_C9"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-c10",
- "inputTokens": 3800,
- "outputTokens": 2,
- "text": "TT_C3_DONE"
- }
- }
- },
- {
- "id": "tt-title-s",
- "description": "s 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_S_PARENT"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-title-s",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\": \"Total Tokens s\"}"
- }
- }
- },
- {
- "id": "tt-s-parent-agent",
- "description": "S 父会话首个请求:启动 Explore 子 agent,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_S_PARENT"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_S_agent"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_S_agent",
- "messageId": "msg_toolu_E2E_TTREAD_S_agent",
- "name": "Agent",
- "input": {
- "description": "TT explore",
- "prompt": "E2E_TT_S_CHILD: Read the readonly fixture, then reply.",
- "subagent_type": "Explore",
- "run_in_background": true
- },
- "inputTokens": 1000,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-s-child-1",
- "description": "S 子 agent 首个请求:Read,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_TT_S_CHILD"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "toolu_E2E_TTREAD_S_agent",
- "toolu_E2E_TTREAD_S_c1"
- ]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_E2E_TTREAD_S_c1",
- "messageId": "msg_toolu_E2E_TTREAD_S_c1",
- "name": "Read",
- "input": {
- "file_path": "{{e2eRuntimeRoot}}/shared/readonly-tool.txt"
- },
- "inputTokens": 1000,
- "outputTokens": 5
- }
- }
- },
- {
- "id": "tt-s-child-2",
- "description": "S 子 agent 工具批次之后:文字收尾,usage 2400/7。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_S_c1"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-s-child-2",
- "inputTokens": 2400,
- "outputTokens": 7,
- "text": "E2E_TT_S_CHILD_DONE"
- }
- }
- },
- {
- "id": "tt-s-parent-launched",
- "description": "S 父会话 Agent 结果之后:文字,usage 2600/9。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["toolu_E2E_TTREAD_S_agent", "Async agent launched successfully"],
- "lastUserMessageExcludes": ["<task-notification>"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-s-parent-launched",
- "inputTokens": 2600,
- "outputTokens": 9,
- "text": "TT_S_PARENT_WAITING"
- }
- }
- },
- {
- "id": "tt-s-parent-notified",
- "description": "S 父会话的通知轮:文字收尾,usage 2700/4。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["<task-notification>", "E2E_TT_S_CHILD_DONE"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-s-parent-notified",
- "inputTokens": 2700,
- "outputTokens": 4,
- "text": "TT_S_PARENT_DONE"
- }
- }
- },
- {
- "id": "tt-title-n",
- "description": "n 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_N1"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-title-n",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\": \"Total Tokens n\"}"
- }
- }
- },
- {
- "id": "tt-n1",
- "description": "N 首轮:文字,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_N1"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-n1",
- "inputTokens": 1000,
- "outputTokens": 5,
- "text": "TT_N1_DONE"
- }
- }
- },
- {
- "id": "tt-n2",
- "description": "N 快照补上预算行并冷恢复后的第二轮:文字,usage 1200/6。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_N2"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-n2",
- "inputTokens": 1200,
- "outputTokens": 6,
- "text": "TT_N2_DONE"
- }
- }
- },
- {
- "id": "tt-n-summary",
- "description": "N 手动 /compact 的摘要请求。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定手动压缩的摘要;压缩后 system 按当前代码重建。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["CRITICAL: Respond with TEXT ONLY", "E2E_TT_N2"],
- "bodyExcludes": ["Generate a concise title", "E2E_TT_N_SUMMARY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-n-summary",
- "inputTokens": 2000,
- "outputTokens": 20,
- "text": "<analysis>The user sent two greetings.</analysis>\n\n<summary>1. Primary Request and Intent:\n E2E_TT_N_SUMMARY: greet again.\n</summary>"
- }
- }
- },
- {
- "id": "tt-n3",
- "description": "N 压缩后的第三轮:文字,usage 1300/4。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_TT_N3"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "tt-n3",
- "inputTokens": 1300,
- "outputTokens": 4,
- "text": "TT_N3_DONE"
- }
- }
- },
- {
- "id": "tt-title-o",
- "description": "O 首发的确定性标题响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "首发会异步触发 title sidecar;用首轮 marker 隔离并固定标题响应。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "bodyIncludes": ["Generate a concise title", "E2E_TT_O1"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "data: {\"id\":\"tt-title-o\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-title-o\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\": \\\"Total Tokens OpenAI\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-title-o\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":64,\"completion_tokens\":8,\"total_tokens\":72}}\n\ndata: [DONE]\n\n"
- }
- },
- {
- "id": "tt-o1",
- "description": "O 第一轮首个请求:Read,usage 1000/5。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_TT_O1"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "call_E2E_TTREAD_O1"
- ]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "data: {\"id\":\"tt-o1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"tool_calls\":[{\"index\":0,\"id\":\"call_E2E_TTREAD_O1\",\"type\":\"function\",\"function\":{\"name\":\"Read\",\"arguments\":\"{\\\"file_path\\\":\\\"{{e2eRuntimeRoot}}/shared/readonly-tool.txt\\\"}\"}}]},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"tool_calls\"}],\"usage\":{\"prompt_tokens\":1000,\"completion_tokens\":5,\"total_tokens\":1005}}\n\ndata: [DONE]\n\n"
- }
- },
- {
- "id": "tt-o2",
- "description": "O 工具批次之后:文字收尾,usage 2400/7。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "bodyIncludes": ["call_E2E_TTREAD_O1"],
- "bodyExcludes": [
- "Generate a concise title",
- "CRITICAL: Respond with TEXT ONLY",
- "E2E_TT_O2"
- ]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "data: {\"id\":\"tt-o2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"TT_O1_DONE\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":2400,\"completion_tokens\":7,\"total_tokens\":2407}}\n\ndata: [DONE]\n\n"
- }
- },
- {
- "id": "tt-o3",
- "description": "O 第二轮:文字,usage 2600/9。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "按上一步的工具调用 id 串成固定顺序;spec 读取请求体,断言没有 token 预算提醒。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/chat/completions",
- "lastUserMessageIncludes": ["E2E_TT_O2"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "statusMessage": "OK",
- "headers": {
- "content-type": "text/event-stream; charset=utf-8"
- },
- "body": "data: {\"id\":\"tt-o3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"role\":\"assistant\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"TT_O2_DONE\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"tt-o3\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-tt-openai-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":2600,\"completion_tokens\":9,\"total_tokens\":2609}}\n\ndata: [DONE]\n\n"
- }
- }
- ]
- }
|