123456789101112131415161718192021222324252627 |
- from typing import Optional
- from embedchain.helper_classes.json_serializable import register_deserializable
- from .BaseAppConfig import BaseAppConfig
- @register_deserializable
- class AppConfig(BaseAppConfig):
- """
- Config to initialize an embedchain custom `App` instance, with extra config options.
- """
- def __init__(
- self,
- log_level=None,
- id=None,
- collect_metrics: Optional[bool] = None,
- collection_name: Optional[str] = None,
- ):
- """
- :param log_level: Optional. (String) Debug level
- ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'].
- :param id: Optional. ID of the app. Document metadata will have this id.
- :param collect_metrics: Defaults to True. Send anonymous telemetry to improve embedchain.
- """
- super().__init__(log_level=log_level, id=id, collect_metrics=collect_metrics, collection_name=collection_name)
|