2024-07-24 16:56:27 +08:00
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
2024-07-26 12:12:16 +08:00
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
class BasePropSetting(BaseSettings):
|
|
|
|
|
"""
|
2024-08-05 18:11:23 +08:00
|
|
|
The common part of the config for RD Loop to propose and development
|
2024-07-24 16:56:27 +08:00
|
|
|
You can add following config in the subclass to distinguish the environment variables.
|
|
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
env_prefix = "DM_MODEL_" # Use MODEL_CODER_ as prefix for environment variables
|
|
|
|
|
protected_namespaces = () # Add 'model_' to the protected namespaces
|
|
|
|
|
"""
|
2024-07-26 12:12:16 +08:00
|
|
|
|
2024-07-24 16:56:27 +08:00
|
|
|
scen: str = ""
|
|
|
|
|
hypothesis_gen: str = ""
|
|
|
|
|
hypothesis2experiment: str = ""
|
|
|
|
|
coder: str = ""
|
|
|
|
|
runner: str = ""
|
|
|
|
|
summarizer: str = ""
|
|
|
|
|
|
|
|
|
|
evolving_n: int = 10
|