Compare commits

...

1 Commits

Author SHA1 Message Date
Richard Feldman
4982933b03 Adjust tool call descriptions to address #34466 2025-12-01 13:16:53 -05:00
2 changed files with 35 additions and 0 deletions

View File

@@ -6,6 +6,33 @@ The text you output will be saved verbatim as the content of the file.
Tool calls have been disabled.
Start your response with ```.
IMPORTANT: Output ONLY the file content between the backticks. Do NOT include:
- The file path or name (like "path/to/file.txt")
- Any markdown formatting within the content
- Any explanatory text before or after the backticks
- Any nested code fences within your output
<example>
If asked to create a file with "hello" inside:
CORRECT output:
```
hello
```
INCORRECT output (includes file path):
```path/to/file.txt
hello
```
INCORRECT output (nested code fences):
```
```
hello
```
```
</example>
<file_path>
{{path}}
</file_path>

View File

@@ -44,8 +44,16 @@ pub struct EditFileToolInput {
///
/// NEVER mention the file path in this description.
///
/// IMPORTANT: Do NOT include markdown code fences (```) or other markdown formatting in this description.
/// Just describe what should be done - another model will generate the actual content.
///
/// <example>Fix API endpoint URLs</example>
/// <example>Update copyright year in `page_footer`</example>
/// <example>Create a Python script that prints hello world</example>
///
/// INCORRECT examples (do not do this):
/// <example>Create a file with:\n```python\nprint('hello')\n```</example>
/// <example>Add this code:\n```\nif err:\n return\n```</example>
///
/// Make sure to include this field before all the others in the input object so that we can display it immediately.
pub display_description: String,