Environment Loading
Configuration is loaded from.env file using python-dotenv:
Database Configuration
POSTGRES_URL
PostgreSQL connection URL for database operations
Model and Provider Configuration
PROVIDER
AI model provider (“groq” or custom provider URL)
MODEL_NAME
Model identifier to use
CUSTOM_PROVIDER_API_KEY
API key for custom provider
GROQ_API_KEY
Groq API key for Groq models
FIRECRAWL_API_KEY
Firecrawl API key for web scraping capabilities
Agent Configuration
MODEL_TEMPERATURE
Model temperature for response randomness (0.0-1.0)
MODEL_TOP_P
Top-p sampling parameter (0.0-1.0)
AGENT_HISTORY_RUNS
Number of previous conversation runs to include in context
AGENT_RETRIES
Number of retry attempts for failed agent calls
DEBUG_MODE
Enable debug mode for agents
DEBUG_LEVEL
Debug verbosity level (1-3)
MAX_AGENTS
Maximum number of agent teams to cache in memory
Tracing Configuration
TRACING_ENABLED
Enable Phoenix tracing for observability
PHOENIX_API_KEY
Phoenix API key for tracing
PHOENIX_ENDPOINT
Phoenix tracing endpoint URL
PHOENIX_PROJECT_NAME
Phoenix project name for trace organization
MCP Configuration
MCP_URLS
Comma-separated list of MCP server URLs
Chat Context Configuration
CONTEXT_AGENT_MODEL
Model to use for context/history analysis
CONTEXT_AGENT_MAX_MESSAGES
Maximum messages to analyze for context
TEAM_LEADER_CONTEXT_LIMIT
Number of recent messages to include in team leader context