WIP: Fix Arc::new() wrapping on tool handlers — some import/paren issues remain
Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
12798eeae2
commit
daba424a46
9 changed files with 16 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ pub fn tool() -> super::Tool {
|
|||
name: "edit_file",
|
||||
description: "Perform exact string replacement in a file. The old_string must appear exactly once (unless replace_all is true). Use read_file first to see current contents.",
|
||||
parameters_json: r#"{"type":"object","properties":{"file_path":{"type":"string","description":"Absolute path to the file to edit"},"old_string":{"type":"string","description":"The exact text to find and replace"},"new_string":{"type":"string","description":"The replacement text"},"replace_all":{"type":"boolean","description":"Replace all occurrences (default false)"}},"required":["file_path","old_string","new_string"]}"#,
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { edit_file(&v)) }),
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { edit_file(&v) })),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue