Warm the cache for common types.
(self)
| 223 | return _load_tools_from_file(tools_xml_path, site_id) |
| 224 | |
| 225 | def _warm_cache(self): |
| 226 | """Warm the cache for common types.""" |
| 227 | logger.info("Warming tools cache for common types") |
| 228 | for schema_type in self.PRE_CACHE_TYPES: |
| 229 | tools = self.get_tools_by_type(schema_type) |
| 230 | logger.info(f"Cached {len(tools)} tools for type: {schema_type}") |
| 231 | |
| 232 | async def _evaluate_tools_with_early_termination(self, query: str, tools: list[Tool], threshold: int = 79) -> list[dict]: |
| 233 | """Evaluate tools asynchronously with early termination for high-scoring results. |
no test coverage detected