forked from kent/consciousness
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
|
|
@ -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) })),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue