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:
Kent Overstreet 2026-04-08 20:38:42 -04:00
parent 12798eeae2
commit daba424a46
9 changed files with 16 additions and 16 deletions

View file

@ -22,7 +22,7 @@ pub fn tool() -> super::Tool {
name: "glob",
description: "Find files matching a glob pattern. Returns file paths sorted by modification time (newest first).",
parameters_json: r#"{"type":"object","properties":{"pattern":{"type":"string","description":"Glob pattern to match files (e.g. '**/*.rs')"},"path":{"type":"string","description":"Directory to search in (default: current directory)"}},"required":["pattern"]}"#,
handler: Arc::new(|_a, v| Box::pin(async move { glob_search(&v)) }),
handler: Arc::new(|_a, v| Box::pin(async move { glob_search(&v) })),
}
}