Files
NexQuant/rdagent/components/runner/conf.py
T
Linlang c8d0d59308 fix: fix_dotenv_error (#257)
* fix_dotenv_error

* format with isort

* Update rdagent/app/cli.py

---------

Co-authored-by: you-n-g <you-n-g@users.noreply.github.com>
2024-09-10 19:38:35 +08:00

17 lines
458 B
Python

from __future__ import annotations
from pathlib import Path
from pydantic_settings import BaseSettings
class RunnerSettings(BaseSettings):
class Config:
env_prefix = "RUNNER_" # Use MODEL_CODER_ as prefix for environment variables
cache_result: bool = True # whether to cache the result of the docker execution
cache_path: str = str(Path.cwd() / "runner_cache/") # the path to store the cache
RUNNER_SETTINGS = RunnerSettings()