encoding/tests/test_input_3.json
4.4 KB · 159 lines · json Raw
1 [
2 {
3 "role": "system",
4 "content": "该助手为DeepSeek,由深度求索公司创造。"
5 },
6 {
7 "role": "latest_reminder",
8 "content": "2026-02-21,星期六,广州,App,中文"
9 },
10 {
11 "role": "developer",
12 "content": "小柴胡冲剂和布洛芬能一起吃吗?\n\nCITATION FORMAT: 【{cursor_id}†L{start_line_id}(-L{end_line_id})?】",
13 "tools": [
14 {
15 "type": "function",
16 "function": {
17 "name": "search",
18 "description": "Web search. Split multiple queries with '||'.",
19 "parameters": {
20 "type": "object",
21 "properties": {
22 "queries": {
23 "type": "string",
24 "description": "query1||query2"
25 }
26 },
27 "required": [
28 "queries"
29 ],
30 "additionalProperties": false,
31 "$schema": "http://json-schema.org/draft-07/schema#"
32 }
33 }
34 },
35 {
36 "type": "function",
37 "function": {
38 "name": "open",
39 "description": "Batch open IDs (format 【{id}†...】) or URLs.",
40 "parameters": {
41 "type": "object",
42 "properties": {
43 "open_list": {
44 "type": "array",
45 "items": {
46 "type": "object",
47 "properties": {
48 "id": {
49 "description": "ID or URL",
50 "anyOf": [
51 {
52 "type": "integer"
53 },
54 {
55 "type": "string"
56 }
57 ],
58 "default": -1
59 },
60 "cursor": {
61 "type": "integer",
62 "description": "",
63 "default": -1
64 },
65 "loc": {
66 "type": "integer",
67 "description": "Start line",
68 "default": -1
69 },
70 "num_lines": {
71 "type": "integer",
72 "description": "",
73 "default": -1
74 },
75 "view_source": {
76 "type": "boolean",
77 "description": "",
78 "default": false
79 }
80 },
81 "additionalProperties": false
82 },
83 "description": ""
84 }
85 },
86 "required": [
87 "open_list"
88 ],
89 "additionalProperties": false,
90 "$schema": "http://json-schema.org/draft-07/schema#"
91 }
92 }
93 },
94 {
95 "type": "function",
96 "function": {
97 "name": "find",
98 "description": "Find exact text pattern in pages.",
99 "parameters": {
100 "type": "object",
101 "properties": {
102 "find_list": {
103 "type": "array",
104 "items": {
105 "type": "object",
106 "properties": {
107 "pattern": {
108 "type": "string",
109 "description": ""
110 },
111 "cursor": {
112 "type": "integer",
113 "description": "",
114 "default": -1
115 }
116 },
117 "required": [
118 "pattern"
119 ],
120 "additionalProperties": false
121 },
122 "description": ""
123 }
124 },
125 "required": [
126 "find_list"
127 ],
128 "additionalProperties": false,
129 "$schema": "http://json-schema.org/draft-07/schema#"
130 }
131 }
132 }
133 ]
134 },
135 {
136 "role": "assistant",
137 "content": "",
138 "reasoning_content": "用户想知道小柴胡冲剂和布洛芬能否一起服用。",
139 "tool_calls": [
140 {
141 "type": "function",
142 "function": {
143 "name": "search",
144 "arguments": "{\"queries\": \"小柴胡冲剂 布洛芬 相互作用 一起吃\"}"
145 }
146 }
147 ]
148 },
149 {
150 "role": "tool",
151 "content": "[0]"
152 },
153 {
154 "role": "assistant",
155 "content": "请及时就医。",
156 "reasoning_content": "现在开始组织回答。",
157 "tool_calls": []
158 }
159 ]