| 11 | |
| 12 | |
| 13 | class Settings(BaseSettings): |
| 14 | debug: bool = False # show debug messages? |
| 15 | max_turns: int = -1 # maximum number of turns in a task (to avoid inf loop) |
| 16 | progress: bool = False # show progress spinners/bars? |
| 17 | stream: bool = True # stream output? |
| 18 | cache: bool = True # use cache? |
| 19 | cache_type: Literal["redis", "fakeredis", "none"] = "redis" # cache type |
| 20 | chat_model: str = "" # language model name, e.g. litellm/ollama/llama2 |
| 21 | quiet: bool = False # quiet mode (i.e. suppress all output)? |
| 22 | notebook: bool = False # running in a notebook? |
| 23 | |
| 24 | model_config = SettingsConfigDict(extra="forbid") |
| 25 | |
| 26 | |
| 27 | # Load environment variables from .env file. |
no outgoing calls
searching dependent graphs…