| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- {
- "version": 1,
- "caseName": "conversation-session-preinstalled-tools-agent-switch",
- "spec": "./test/e2e/conversation-session/conversation-session-preinstalled-tools-agent-switch.test.ts",
- "fixtures": [
- {
- "id": "pt-agent-restored-call",
- "description": "真实 Agent 选择入口 RESTORED",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_RESTORED"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_pt_agent_restored",
- "name": "Bash",
- "input": {
- "command": "node \"{{e2eRuntimeRoot}}/conversation-session-preinstalled-tools-agent-switch/probe.mjs\"",
- "description": "Read tool selection"
- }
- }
- }
- },
- {
- "id": "pt-agent-restored-done",
- "description": "真实 Agent 选择入口 RESTORED",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_RESTORED", "toolu_pt_agent_restored"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "pt-agent-restored-done",
- "text": "E2E_PT_AGENT_RESTORED_DONE",
- "inputTokens": 100,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "pt-agent-off-call",
- "description": "真实 Agent 选择入口 OFF",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_OFF"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_pt_agent_off",
- "name": "Bash",
- "input": {
- "command": "node \"{{e2eRuntimeRoot}}/conversation-session-preinstalled-tools-agent-switch/probe.mjs\"",
- "description": "Read tool selection"
- }
- }
- }
- },
- {
- "id": "pt-agent-off-done",
- "description": "真实 Agent 选择入口 OFF",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_OFF", "toolu_pt_agent_off"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "pt-agent-off-done",
- "text": "E2E_PT_AGENT_OFF_DONE",
- "inputTokens": 100,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "pt-agent-on-call",
- "description": "真实 Agent 选择入口 ON",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_ON"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_pt_agent_on",
- "name": "Bash",
- "input": {
- "command": "node \"{{e2eRuntimeRoot}}/conversation-session-preinstalled-tools-agent-switch/probe.mjs\"",
- "description": "Read tool selection"
- }
- }
- }
- },
- {
- "id": "pt-agent-on-done",
- "description": "真实 Agent 选择入口 ON",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_ON", "toolu_pt_agent_on"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "pt-agent-on-done",
- "text": "E2E_PT_AGENT_ON_DONE",
- "inputTokens": 100,
- "outputTokens": 10
- }
- }
- },
- {
- "id": "pt-agent-before-call",
- "description": "真实 Agent 选择入口 BEFORE",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_BEFORE"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_pt_agent_before",
- "name": "Bash",
- "input": {
- "command": "node \"{{e2eRuntimeRoot}}/conversation-session-preinstalled-tools-agent-switch/probe.mjs\"",
- "description": "Read tool selection"
- }
- }
- }
- },
- {
- "id": "pt-agent-before-done",
- "description": "真实 Agent 选择入口 BEFORE",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "固定触发真实 Agent 的 PATH/统一入口调用,开关由实际界面操作。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_PT_AGENT_BEFORE", "toolu_pt_agent_before"],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "pt-agent-before-done",
- "text": "E2E_PT_AGENT_BEFORE_DONE",
- "inputTokens": 100,
- "outputTokens": 10
- }
- }
- }
- ]
- }
|