MCPcopy
hub / github.com/langroid/langroid / Settings

Class Settings

langroid/utils/configuration.py:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class 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.

Callers 15

test_settingsFunction · 0.90
writer_workerFunction · 0.90
context_workerFunction · 0.90
workerFunction · 0.90
test_agent_token_usageFunction · 0.90
test_token_usage_toolFunction · 0.90
test_llm.pyFile · 0.90

Calls

no outgoing calls

Tested by 15

test_settingsFunction · 0.72
writer_workerFunction · 0.72
context_workerFunction · 0.72
workerFunction · 0.72
test_agent_token_usageFunction · 0.72
test_token_usage_toolFunction · 0.72
test_azure_wrapperFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…