返回 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 "pandoc_convert"
17 ]
18 },
19 "workspace_files": {
20 "README.md": "conformance fixture\n",
21 "NOTES.md": "second file\n"
22 },
23 "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.",
24 "user_message": "Read README.md and NOTES.md.",
25 "provider_script": [
26 {
27 "events": [
28 {
29 "type": "message_start",
30 "message": {
31 "id": "msg_parallel",
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_read_a",
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\":\"read\",\"path\":\"README.md\"}"
60 }
61 },
62 {
63 "type": "content_block_stop",
64 "index": 0
65 },
66 {
67 "type": "content_block_start",
68 "index": 1,
69 "content_block": {
70 "type": "tool_use",
71 "id": "call_read_b",
72 "name": "File",
73 "input": {}
74 }
75 },
76 {
77 "type": "content_block_delta",
78 "index": 1,
79 "delta": {
80 "type": "input_json_delta",
81 "partial_json": "{\"action\":\"read\",\"path\":\"NOTES.md\"}"
82 }
83 },
84 {
85 "type": "content_block_stop",
86 "index": 1
87 },
88 {
89 "type": "message_delta",
90 "delta": {
91 "stop_reason": "tool_use"
92 },
93 "usage": {
94 "input_tokens": 160,
95 "output_tokens": 40
96 }
97 },
98 {
99 "type": "message_stop"
100 }
101 ]
102 },
103 {
104 "events": [
105 {
106 "type": "message_start",
107 "message": {
108 "id": "msg_parallel_answer",
109 "type": "message",
110 "role": "assistant",
111 "content": [],
112 "model": "deepseek-v4-pro",
113 "stop_reason": null,
114 "stop_sequence": null,
115 "usage": {
116 "input_tokens": 200,
117 "output_tokens": 0
118 }
119 }
120 },
121 {
122 "type": "content_block_start",
123 "index": 0,
124 "content_block": {
125 "type": "text",
126 "text": ""
127 }
128 },
129 {
130 "type": "content_block_delta",
131 "index": 0,
132 "delta": {
133 "type": "text_delta",
134 "text": "Both files read."
135 }
136 },
137 {
138 "type": "content_block_stop",
139 "index": 0
140 },
141 {
142 "type": "message_delta",
143 "delta": {
144 "stop_reason": "end_turn"
145 },
146 "usage": {
147 "input_tokens": 200,
148 "output_tokens": 6
149 }
150 },
151 {
152 "type": "message_stop"
153 }
154 ]
155 }
156 ]
157 }
158
158 lines JSON