Get or create the global tool registry
()
| 13 | |
| 14 | /// Get or create the global tool registry |
| 15 | pub(crate) fn get_global_registry() -> Arc<Mutex<ToolRegistry>> { |
| 16 | GLOBAL_REGISTRY |
| 17 | .get_or_init(|| Arc::new(Mutex::new(ToolRegistry::new()))) |
| 18 | .clone() |
| 19 | } |
| 20 | |
| 21 | /// Tool decorator for converting Python functions to executable tools |
| 22 | #[pyclass] |
no test coverage detected