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: "read_file",
|
||||
description: "Read the contents of a file. Returns the file contents with line numbers.",
|
||||
parameters_json: r#"{"type":"object","properties":{"file_path":{"type":"string","description":"Absolute path to the file to read"},"offset":{"type":"integer","description":"Line number to start reading from (1-based)"},"limit":{"type":"integer","description":"Maximum number of lines to read"}},"required":["file_path"]}"#,
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { read_file(&v)) }),
|
||||
handler: Arc::new(|_a, v| Box::pin(async move { read_file(&v) })),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue