| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- {
- "version": 1,
- "caseName": "conversation-session-ask-user-question-custom-mixed-manual-multi-question",
- "spec": "./test/e2e/conversation-session/permissions/conversation-session-ask-user-question-custom-mixed-manual-multi-question.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-ask-user-question-custom-mixed-manual-multi-question-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": "upstream-conversation-ask-user-question-custom-mixed-manual-multi-question-call",
- "description": "AskUserQuestion custom mixed input: 首轮返回三题合法问答工具调用。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "稳定制造三题 AskUserQuestion 等待态,避免真实模型生成非法选项数量或题目结构漂移影响鼠标和 Enter 混合答案采集复现。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_ASK_USER_QUESTION_CUSTOM_MIXED_MANUAL_MULTI"],
- "bodyIncludes": [
- "E2E_ASK_USER_QUESTION_CUSTOM_MIXED_MANUAL_MULTI",
- "E2E_ASK_USER_QUESTION_MIXED_MANUAL_MULTI_TOOL",
- "E2E_AQ_MIXED_MANUAL_MULTI_Q1_CUSTOM",
- "E2E_AQ_MIXED_MANUAL_MULTI_Q2_CUSTOM",
- "E2E_AQ_MIXED_MANUAL_MULTI_Q3_CUSTOM"
- ],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_ask_user_question_custom_mixed_manual_multi_question",
- "name": "AskUserQuestion",
- "input": {
- "questions": [
- {
- "question": "E2E_AQ_MIXED_MANUAL_MULTI_Q1_CUSTOM: Which custom dashboard feature should be prioritized?",
- "header": "Mixed Q1",
- "options": [
- {
- "label": "Use default Q1",
- "description": "Continue with the first default answer."
- },
- {
- "label": "Use fallback Q1",
- "description": "Continue with the first fallback answer."
- }
- ]
- },
- {
- "question": "E2E_AQ_MIXED_MANUAL_MULTI_Q2_CUSTOM: Which custom notification path should be prioritized?",
- "header": "Mixed Q2",
- "options": [
- {
- "label": "Use default Q2",
- "description": "Continue with the second default answer."
- },
- {
- "label": "Use fallback Q2",
- "description": "Continue with the second fallback answer."
- }
- ]
- },
- {
- "question": "E2E_AQ_MIXED_MANUAL_MULTI_Q3_CUSTOM: Which custom theme update should be prioritized?",
- "header": "Mixed Q3",
- "options": [
- {
- "label": "Use default Q3",
- "description": "Continue with the third default answer."
- },
- {
- "label": "Use fallback Q3",
- "description": "Continue with the third fallback answer."
- }
- ]
- }
- ]
- }
- }
- }
- },
- {
- "id": "upstream-conversation-ask-user-question-custom-mixed-manual-multi-question-final",
- "description": "AskUserQuestion custom mixed input: 三题自定义回答进入下一次模型请求后的最终回复。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "该响应证明三题鼠标和 Enter 混合提交后的自定义回答已被 agent 消费,核心断言在答案采集和 UI 已回答记录。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": [
- "E2E_AQ_MIXED_MANUAL_MULTI_A1",
- "E2E_AQ_MIXED_MANUAL_MULTI_A2",
- "E2E_AQ_MIXED_MANUAL_MULTI_A3",
- "E2E_ASK_USER_QUESTION_MIXED_MANUAL_MULTI_TOOL",
- "toolu_e2e_ask_user_question_custom_mixed_manual_multi_question"
- ],
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
- },
- "response": {
- "statusCode": 200,
- "text": "upstream-e2e-ok"
- }
- }
- ]
- }
|