Returns the config as a dictionary.
(self)
| 622 | return self._instances |
| 623 | |
| 624 | def dump_config(self) -> dict: |
| 625 | """Returns the config as a dictionary.""" |
| 626 | # TODO: this should only return the overrides applied to a non-YAML task's configuration. |
| 627 | # (num_fewshot) |
| 628 | return self.config.to_dict() |
| 629 | |
| 630 | def set_config(self, key: str, value: Any, update: bool = False) -> None: |
| 631 | """Set or update the configuration for a given key.""" |