base_config.py 453 B

123456789101112131415161718192021
  1. from typing import Any
  2. from embedchain.helpers.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)