style(tools): wrap write_file guidance Sprintf for golines
This commit is contained in:
parent
0132837d22
commit
9a0efd7bab
1 changed files with 4 additions and 1 deletions
|
|
@ -910,7 +910,10 @@ func (t *WriteFileTool) Name() string {
|
||||||
func (t *WriteFileTool) Description() string {
|
func (t *WriteFileTool) Description() string {
|
||||||
desc := "Write content to a file, replacing any existing content. Content is written byte-for-byte after argument decoding. Standard JSON escaping applies: \\n for newline and \\\\n for a literal backslash-n sequence. If the file already exists you must set overwrite=true, which replaces the ENTIRE file."
|
desc := "Write content to a file, replacing any existing content. Content is written byte-for-byte after argument decoding. Standard JSON escaping applies: \\n for newline and \\\\n for a literal backslash-n sequence. If the file already exists you must set overwrite=true, which replaces the ENTIRE file."
|
||||||
if phrase := t.altToolsPhrase(); phrase != "" {
|
if phrase := t.altToolsPhrase(); phrase != "" {
|
||||||
desc += fmt.Sprintf(" To add to or change part of an existing file without losing its current contents, use %s instead.", phrase)
|
desc += fmt.Sprintf(
|
||||||
|
" To add to or change part of an existing file without losing its current contents, use %s instead.",
|
||||||
|
phrase,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return desc
|
return desc
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue