You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/prompts/__tests__/__snapshots__/system.test.ts.snap
+60-60Lines changed: 60 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -17,21 +17,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
17
17
18
18
# Tool Use Formatting
19
19
20
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
20
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
21
21
22
-
<tool_name>
22
+
<actual_tool_name>
23
23
<parameter1_name>value1</parameter1_name>
24
24
<parameter2_name>value2</parameter2_name>
25
25
...
26
-
</tool_name>
26
+
</actual_tool_name>
27
27
28
-
For example:
28
+
For example, to use the read_file tool:
29
29
30
30
<read_file>
31
31
<path>src/main.js</path>
32
32
</read_file>
33
33
34
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
34
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
35
35
36
36
# Tools
37
37
@@ -490,21 +490,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
490
490
491
491
# Tool Use Formatting
492
492
493
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
493
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
494
494
495
-
<tool_name>
495
+
<actual_tool_name>
496
496
<parameter1_name>value1</parameter1_name>
497
497
<parameter2_name>value2</parameter2_name>
498
498
...
499
-
</tool_name>
499
+
</actual_tool_name>
500
500
501
-
For example:
501
+
For example, to use the read_file tool:
502
502
503
503
<read_file>
504
504
<path>src/main.js</path>
505
505
</read_file>
506
506
507
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
507
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
508
508
509
509
# Tools
510
510
@@ -963,21 +963,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
963
963
964
964
# Tool Use Formatting
965
965
966
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
966
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
967
967
968
-
<tool_name>
968
+
<actual_tool_name>
969
969
<parameter1_name>value1</parameter1_name>
970
970
<parameter2_name>value2</parameter2_name>
971
971
...
972
-
</tool_name>
972
+
</actual_tool_name>
973
973
974
-
For example:
974
+
For example, to use the read_file tool:
975
975
976
976
<read_file>
977
977
<path>src/main.js</path>
978
978
</read_file>
979
979
980
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
980
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
981
981
982
982
# Tools
983
983
@@ -1436,21 +1436,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
1436
1436
1437
1437
# Tool Use Formatting
1438
1438
1439
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
1439
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
1440
1440
1441
-
<tool_name>
1441
+
<actual_tool_name>
1442
1442
<parameter1_name>value1</parameter1_name>
1443
1443
<parameter2_name>value2</parameter2_name>
1444
1444
...
1445
-
</tool_name>
1445
+
</actual_tool_name>
1446
1446
1447
-
For example:
1447
+
For example, to use the read_file tool:
1448
1448
1449
1449
<read_file>
1450
1450
<path>src/main.js</path>
1451
1451
</read_file>
1452
1452
1453
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
1453
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
1454
1454
1455
1455
# Tools
1456
1456
@@ -1965,21 +1965,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
1965
1965
1966
1966
# Tool Use Formatting
1967
1967
1968
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
1968
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
1969
1969
1970
-
<tool_name>
1970
+
<actual_tool_name>
1971
1971
<parameter1_name>value1</parameter1_name>
1972
1972
<parameter2_name>value2</parameter2_name>
1973
1973
...
1974
-
</tool_name>
1974
+
</actual_tool_name>
1975
1975
1976
-
For example:
1976
+
For example, to use the read_file tool:
1977
1977
1978
1978
<read_file>
1979
1979
<path>src/main.js</path>
1980
1980
</read_file>
1981
1981
1982
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
1982
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
1983
1983
1984
1984
# Tools
1985
1985
@@ -2506,21 +2506,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
2506
2506
2507
2507
# Tool Use Formatting
2508
2508
2509
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
2509
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
2510
2510
2511
-
<tool_name>
2511
+
<actual_tool_name>
2512
2512
<parameter1_name>value1</parameter1_name>
2513
2513
<parameter2_name>value2</parameter2_name>
2514
2514
...
2515
-
</tool_name>
2515
+
</actual_tool_name>
2516
2516
2517
-
For example:
2517
+
For example, to use the read_file tool:
2518
2518
2519
2519
<read_file>
2520
2520
<path>src/main.js</path>
2521
2521
</read_file>
2522
2522
2523
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
2523
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
2524
2524
2525
2525
# Tools
2526
2526
@@ -3035,21 +3035,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
3035
3035
3036
3036
# Tool Use Formatting
3037
3037
3038
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
3038
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
3039
3039
3040
-
<tool_name>
3040
+
<actual_tool_name>
3041
3041
<parameter1_name>value1</parameter1_name>
3042
3042
<parameter2_name>value2</parameter2_name>
3043
3043
...
3044
-
</tool_name>
3044
+
</actual_tool_name>
3045
3045
3046
-
For example:
3046
+
For example, to use the read_file tool:
3047
3047
3048
3048
<read_file>
3049
3049
<path>src/main.js</path>
3050
3050
</read_file>
3051
3051
3052
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
3052
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
3053
3053
3054
3054
# Tools
3055
3055
@@ -3598,21 +3598,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
3598
3598
3599
3599
# Tool Use Formatting
3600
3600
3601
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
3601
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
3602
3602
3603
-
<tool_name>
3603
+
<actual_tool_name>
3604
3604
<parameter1_name>value1</parameter1_name>
3605
3605
<parameter2_name>value2</parameter2_name>
3606
3606
...
3607
-
</tool_name>
3607
+
</actual_tool_name>
3608
3608
3609
-
For example:
3609
+
For example, to use the read_file tool:
3610
3610
3611
3611
<read_file>
3612
3612
<path>src/main.js</path>
3613
3613
</read_file>
3614
3614
3615
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
3615
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
3616
3616
3617
3617
# Tools
3618
3618
@@ -4113,21 +4113,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
4113
4113
4114
4114
# Tool Use Formatting
4115
4115
4116
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
4116
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
4117
4117
4118
-
<tool_name>
4118
+
<actual_tool_name>
4119
4119
<parameter1_name>value1</parameter1_name>
4120
4120
<parameter2_name>value2</parameter2_name>
4121
4121
...
4122
-
</tool_name>
4122
+
</actual_tool_name>
4123
4123
4124
-
For example:
4124
+
For example, to use the read_file tool:
4125
4125
4126
4126
<read_file>
4127
4127
<path>src/main.js</path>
4128
4128
</read_file>
4129
4129
4130
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
4130
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
4131
4131
4132
4132
# Tools
4133
4133
@@ -4663,21 +4663,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
4663
4663
4664
4664
# Tool Use Formatting
4665
4665
4666
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
4666
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
4667
4667
4668
-
<tool_name>
4668
+
<actual_tool_name>
4669
4669
<parameter1_name>value1</parameter1_name>
4670
4670
<parameter2_name>value2</parameter2_name>
4671
4671
...
4672
-
</tool_name>
4672
+
</actual_tool_name>
4673
4673
4674
-
For example:
4674
+
For example, to use the read_file tool:
4675
4675
4676
4676
<read_file>
4677
4677
<path>src/main.js</path>
4678
4678
</read_file>
4679
4679
4680
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
4680
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
4681
4681
4682
4682
# Tools
4683
4683
@@ -5127,21 +5127,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
5127
5127
5128
5128
# Tool Use Formatting
5129
5129
5130
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
5130
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
5131
5131
5132
-
<tool_name>
5132
+
<actual_tool_name>
5133
5133
<parameter1_name>value1</parameter1_name>
5134
5134
<parameter2_name>value2</parameter2_name>
5135
5135
...
5136
-
</tool_name>
5136
+
</actual_tool_name>
5137
5137
5138
-
For example:
5138
+
For example, to use the read_file tool:
5139
5139
5140
5140
<read_file>
5141
5141
<path>src/main.js</path>
5142
5142
</read_file>
5143
5143
5144
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
5144
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
5145
5145
5146
5146
# Tools
5147
5147
@@ -5508,21 +5508,21 @@ You have access to a set of tools that are executed upon the user's approval. Yo
5508
5508
5509
5509
# Tool Use Formatting
5510
5510
5511
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
5511
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
5512
5512
5513
-
<tool_name>
5513
+
<actual_tool_name>
5514
5514
<parameter1_name>value1</parameter1_name>
5515
5515
<parameter2_name>value2</parameter2_name>
5516
5516
...
5517
-
</tool_name>
5517
+
</actual_tool_name>
5518
5518
5519
-
For example:
5519
+
For example, to use the read_file tool:
5520
5520
5521
5521
<read_file>
5522
5522
<path>src/main.js</path>
5523
5523
</read_file>
5524
5524
5525
-
Always adhere to this format for the tool use to ensure proper parsing and execution.
5525
+
Always use the actual tool name as the XML tag name for proper parsing and execution.
consttoolUseInstructionsReminder=`# Reminder: Instructions for Tool Use
186
186
187
-
Tool uses are formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
187
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
188
188
189
-
<tool_name>
189
+
<actual_tool_name>
190
190
<parameter1_name>value1</parameter1_name>
191
191
<parameter2_name>value2</parameter2_name>
192
192
...
193
-
</tool_name>
193
+
</actual_tool_name>
194
194
195
-
For example:
195
+
For example, to use the attempt_completion tool:
196
196
197
197
<attempt_completion>
198
198
<result>
199
199
I have completed the task...
200
200
</result>
201
201
</attempt_completion>
202
202
203
-
Always adhere to this format for all tool uses to ensure proper parsing and execution.`
203
+
Always use the actual tool name as the XML tag name for proper parsing and execution.`
Copy file name to clipboardExpand all lines: src/core/prompts/sections/tool-use.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,19 @@ You have access to a set of tools that are executed upon the user's approval. Yo
7
7
8
8
# Tool Use Formatting
9
9
10
-
Tool use is formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:
10
+
Tool uses are formatted using XML-style tags. The tool name itself becomes the XML tag name. Each parameter is enclosed within its own set of tags. Here's the structure:
11
11
12
-
<tool_name>
12
+
<actual_tool_name>
13
13
<parameter1_name>value1</parameter1_name>
14
14
<parameter2_name>value2</parameter2_name>
15
15
...
16
-
</tool_name>
16
+
</actual_tool_name>
17
17
18
-
For example:
18
+
For example, to use the read_file tool:
19
19
20
20
<read_file>
21
21
<path>src/main.js</path>
22
22
</read_file>
23
23
24
-
Always adhere to this format for the tool use to ensure proper parsing and execution.`
24
+
Always use the actual tool name as the XML tag name for proper parsing and execution.`
0 commit comments