返回 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 "js_execution",
17 "pandoc_convert"
18 ]
19 },
20 "workspace_files": {
21 "README.md": "conformance fixture\n",
22 "NOTES.md": "second file\n"
23 },
24 "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.",
25 "user_message": "Write c0205.txt.",
26 "provider_script": [
27 {
28 "events": [
29 {
30 "type": "message_start",
31 "message": {
32 "id": "msg_error",
33 "type": "message",
34 "role": "assistant",
35 "content": [],
36 "model": "deepseek-v4-pro",
37 "stop_reason": null,
38 "stop_sequence": null,
39 "usage": {
40 "input_tokens": 120,
41 "output_tokens": 0
42 }
43 }
44 },
45 {
46 "type": "content_block_start",
47 "index": 0,
48 "content_block": {
49 "type": "tool_use",
50 "id": "call_write",
51 "name": "File",
52 "input": {}
53 }
54 },
55 {
56 "type": "content_block_delta",
57 "index": 0,
58 "delta": {
59 "type": "input_json_delta",
60 "partial_json": "{\"action\":\"write\",\"path\":\"c0205.txt\",\"content\":\"side effect\\n\"}"
61 }
62 },
63 {
64 "type": "content_block_stop",
65 "index": 0
66 },
67 {
68 "type": "error",
69 "error": {
70 "message": "Model not exist."
71 }
72 }
73 ]
74 },
75 {
76 "events": [
77 {
78 "type": "message_start",
79 "message": {
80 "id": "msg_error_retry",
81 "type": "message",
82 "role": "assistant",
83 "content": [],
84 "model": "deepseek-v4-pro",
85 "stop_reason": null,
86 "stop_sequence": null,
87 "usage": {
88 "input_tokens": 200,
89 "output_tokens": 0
90 }
91 }
92 },
93 {
94 "type": "content_block_start",
95 "index": 0,
96 "content_block": {
97 "type": "text",
98 "text": ""
99 }
100 },
101 {
102 "type": "content_block_delta",
103 "index": 0,
104 "delta": {
105 "type": "text_delta",
106 "text": "this second request must never be issued"
107 }
108 },
109 {
110 "type": "content_block_stop",
111 "index": 0
112 },
113 {
114 "type": "message_delta",
115 "delta": {
116 "stop_reason": "end_turn"
117 },
118 "usage": {
119 "input_tokens": 200,
120 "output_tokens": 6
121 }
122 },
123 {
124 "type": "message_stop"
125 }
126 ]
127 }
128 ],
129 "invariants": [
130 {
131 "workspace_file_absent": "c0205.txt"
132 },
133 {
134 "max_model_requests": 1
135 }
136 ]
137 }
138
138 lines JSON