Get a tool by name
(&self, name: &str)
| 105 | |
| 106 | /// Get a tool by name |
| 107 | pub fn get(&self, name: &str) -> Option<Arc<dyn Tool>> { |
| 108 | let tools = self.tools.read().unwrap(); |
| 109 | tools.get(name).cloned() |
| 110 | } |
| 111 | |
| 112 | /// Check if a tool exists |
| 113 | pub fn contains(&self, name: &str) -> bool { |
no outgoing calls