(cls, cfg: Any)
| 81 | |
| 82 | @field_validator("config") |
| 83 | def validate_config(cls, cfg: Any): |
| 84 | if issubclass(type(cfg), DictConfig): |
| 85 | return cfg |
| 86 | |
| 87 | raise TypeError("Wrong type for `config`, must be subclass of BaseConfig") |
| 88 | |
| 89 | def create_llm(self) -> Callable[[...], List[str]]: |
| 90 | if self.config.seed: |
nothing calls this directly
no outgoing calls
no test coverage detected