(self, model_name: str)
| 163 | return self.cache[model_name] |
| 164 | |
| 165 | def get(self, model_name: str) -> Callable: |
| 166 | if model_name not in self.cache: |
| 167 | raise RuntimeError(f"Model {model_name} not found in cache") |
| 168 | self.cache.move_to_end(model_name) # Update LRU order |
| 169 | return self.cache[model_name] |
| 170 | |
| 171 | def list_models(self) -> list: |
| 172 | """List all cached model names.""" |
no outgoing calls