base_config.py 458 B

123456789101112131415161718192021
  1. from typing import Any, Dict
  2. from embedchain.helper.json_serializable import JSONSerializable
  3. class BaseConfig(JSONSerializable):
  4. """
  5. Base config.
  6. """
  7. def __init__(self):
  8. """Initializes a configuration class for a class."""
  9. pass
  10. def as_dict(self) -> Dict[str, Any]:
  11. """Return config object as a dict
  12. :return: config object as dict
  13. :rtype: Dict[str, Any]
  14. """
  15. return vars(self)