返回 CodeWhale
provider_error_after_tool_call.case.json
根目录 / crates / tui / tests / fixtures / conformance / events / provider_error_after_tool_call.case.json
1 {
2 "model": "deepseek-v4-pro",
3 "mode": "agent",
4 "approval_mode": "bypass",
5 "auto_approve": true,
6 "allow_shell": true,
7 "recorded_platform": {
8 "recorded_on": "macOS",
9 "os": "macos",
10 "shell": "/bin/bash",
11 "sandbox_enforcement": "local_os",
12 "no_new_privs_active": null,
13 "host_tools": [
14 "code_execution",
15 "image_ocr",
16 "pandoc_convert"
17 ]
18 },
19 "workspace_files": {
20 "README.md": "conformance fixture\n",
21 "NOTES.md": "second file\n"
22 },
23 "description": "A complete file-writing tool call, then a terminal provider `error` frame in the same stream (C02-05). A failed response authorizes nothing: the collected call must not execute and no further request may be sent.",
24 "user_message": "Write c0205.txt.",
25 "provider_script": [
26 {
27 "events": [
28 {
29 "type": "message_start",
30 "message": {
31 "id": "msg_error",
32 "type": "message",
33 "role": "assistant",
34 "content": [],
35 "model": "deepseek-v4-pro",
36 "stop_reason": null,
37 "stop_sequence": null,
38 "usage": {
39 "input_tokens": 120,
40 "output_tokens": 0
41 }
42 }
43 },
44 {
45 "type": "content_block_start",
46 "index": 0,
47 "content_block": {
48 "type": "tool_use",
49 "id": "call_write",
50 "name": "File",
51 "input": {}
52 }
53 },
54 {
55 "type": "content_block_delta",
56 "index": 0,
57 "delta": {
58 "type": "input_json_delta",
59 "partial_json": "{\"action\":\"write\",\"path\":\"c0205.txt\",\"content\":\"side effect\\n\"}"
60 }
61 },
62 {
63 "type": "content_block_stop",
64 "index": 0
65 },
66 {
67 "type": "error",
68 "error": {
69 "message": "Model not exist."
70 }
71 }
72 ]
73 },
74 {
75 "events": [
76 {
77 "type": "message_start",
78 "message": {
79 "id": "msg_error_retry",
80 "type": "message",
81 "role": "assistant",
82 "content": [],
83 "model": "deepseek-v4-pro",
84 "stop_reason": null,
85 "stop_sequence": null,
86 "usage": {
87 "input_tokens": 200,
88 "output_tokens": 0
89 }
90 }
91 },
92 {
93 "type": "content_block_start",
94 "index": 0,
95 "content_block": {
96 "type": "text",
97 "text": ""
98 }
99 },
100 {
101 "type": "content_block_delta",
102 "index": 0,
103 "delta": {
104 "type": "text_delta",
105 "text": "this second request must never be issued"
106 }
107 },
108 {
109 "type": "content_block_stop",
110 "index": 0
111 },
112 {
113 "type": "message_delta",
114 "delta": {
115 "stop_reason": "end_turn"
116 },
117 "usage": {
118 "input_tokens": 200,
119 "output_tokens": 6
120 }
121 },
122 {
123 "type": "message_stop"
124 }
125 ]
126 }
127 ],
128 "invariants": [
129 {
130 "workspace_file_absent": "c0205.txt"
131 },
132 {
133 "max_model_requests": 1
134 }
135 ]
136 }
137
137 lines JSON