diff options
Diffstat (limited to 'src/function.rs')
| -rw-r--r-- | src/function.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/function.rs b/src/function.rs index f16fe3f..068cee0 100644 --- a/src/function.rs +++ b/src/function.rs @@ -15,7 +15,7 @@ use std::{ path::Path, }; -pub const FUNCTION_ALL_MATCHER: &str = ".*"; +pub const SELECTED_ALL_FUNCTIONS: &str = ".*"; pub type ToolResults = (Vec<ToolCallResult>, String); pub type FunctionsFilter = String; @@ -80,8 +80,8 @@ impl Functions { }) } - pub fn select(&self, matcher: &str) -> Option<Vec<FunctionDeclaration>> { - let regex = Regex::new(&format!("^({matcher})$")).ok()?; + pub fn select(&self, filter: &FunctionsFilter) -> Option<Vec<FunctionDeclaration>> { + let regex = Regex::new(&format!("^({filter})$")).ok()?; let output: Vec<FunctionDeclaration> = self .declarations .iter() |
