返回 CodeWhale
parallel_tool_calls.case.json
根目录 / crates / tui / tests / fixtures / conformance / events / parallel_tool_calls.case.json
1 {
2 "model": "deepseek-v4-pro",
3 "mode": "agent",
4 "approval_mode": "suggest",
5 "auto_approve": false,
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": "Two read-only tool calls in one assistant message run as one batch; their completions may race, so the golden orders adjacent completions by id.",
25 "user_message": "Read README.md and NOTES.md.",
26 "provider_script": [
27 {
28 "events": [
29 {
30 "type": "message_start",
31 "message": {
32 "id": "msg_parallel",
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_read_a",
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\":\"read\",\"path\":\"README.md\"}"
61 }
62 },
63 {
64 "type": "content_block_stop",
65 "index": 0
66 },
67 {
68 "type": "content_block_start",
69 "index": 1,
70 "content_block": {
71 "type": "tool_use",
72 "id": "call_read_b",
73 "name": "File",
74 "input": {}
75 }
76 },
77 {
78 "type": "content_block_delta",
79 "index": 1,
80 "delta": {
81 "type": "input_json_delta",
82 "partial_json": "{\"action\":\"read\",\"path\":\"NOTES.md\"}"
83 }
84 },
85 {
86 "type": "content_block_stop",
87 "index": 1
88 },
89 {
90 "type": "message_delta",
91 "delta": {
92 "stop_reason": "tool_use"
93 },
94 "usage": {
95 "input_tokens": 160,
96 "output_tokens": 40
97 }
98 },
99 {
100 "type": "message_stop"
101 }
102 ]
103 },
104 {
105 "events": [
106 {
107 "type": "message_start",
108 "message": {
109 "id": "msg_parallel_answer",
110 "type": "message",
111 "role": "assistant",
112 "content": [],
113 "model": "deepseek-v4-pro",
114 "stop_reason": null,
115 "stop_sequence": null,
116 "usage": {
117 "input_tokens": 200,
118 "output_tokens": 0
119 }
120 }
121 },
122 {
123 "type": "content_block_start",
124 "index": 0,
125 "content_block": {
126 "type": "text",
127 "text": ""
128 }
129 },
130 {
131 "type": "content_block_delta",
132 "index": 0,
133 "delta": {
134 "type": "text_delta",
135 "text": "Both files read."
136 }
137 },
138 {
139 "type": "content_block_stop",
140 "index": 0
141 },
142 {
143 "type": "message_delta",
144 "delta": {
145 "stop_reason": "end_turn"
146 },
147 "usage": {
148 "input_tokens": 200,
149 "output_tokens": 6
150 }
151 },
152 {
153 "type": "message_stop"
154 }
155 ]
156 }
157 ]
158 }
159
159 lines JSON