Configuration GuideΒΆ
Configure AgenticAI for your environment
Flexible configuration options for 400+ modules and 237 enterprise features
Enterprise Configuration
For advanced options including multi-tenant, high-availability, and compliance settings, see Enterprise Documentation.
1. Configuration MethodsΒΆ
You can configure AgenticAI in three ways:
- Programmatically β Using
set_config()fromagenticaiframework.configurations - Configuration File β Using the
ConfigurationManagerclass - Environment Variables β Setting variables before running your application
2. Common Configuration KeysΒΆ
| Key | Description | Example |
|---|---|---|
llm_provider | LLM provider to use | "openai" |
api_key | API key for LLM provider | "sk-xxxx" |
memory_backend | Memory storage backend | "in_memory" |
log_level | Logging verbosity | "INFO" |
default_agent | Default agent name | "default_agent" |
3. Programmatic ConfigurationΒΆ
| Python | |
|---|---|
4. Using Environment VariablesΒΆ
| Bash | |
|---|---|
5. Default ConfigurationΒΆ
| Python | |
|---|---|
6. Advanced ConfigurationΒΆ
- Multiple LLM Providers β Register multiple providers and switch dynamically
- Custom Memory Backends β Implement custom backends for persistence
- Logging β Adjust
log_levelto"DEBUG"for detailed logs
7. Verifying ConfigurationΒΆ
| Python | |
|---|---|
8. Environment-Specific ConfigurationsΒΆ
Maintain separate configurations for different environments:
config_dev.pyfor developmentconfig_staging.pyfor stagingconfig_prod.pyfor production
Load dynamically based on environment:
| Python | |
|---|---|
9. Dynamic Configuration UpdatesΒΆ
Update configuration values at runtime:
| Python | |
|---|---|
10. Secrets ManagementΒΆ
For sensitive values like API keys, use a secrets manager:
- AWS Secrets Manager
- HashiCorp Vault
- Azure Key Vault
- Google Secret Manager
11. Best PracticesΒΆ
Configuration Best Practices
- Store API keys securely (environment variables or secret managers)
- Never commit sensitive data to version control
- Use different configurations for dev/staging/production
- Document all configuration keys
- Use
.envfiles for local development withpython-dotenv
Related DocumentationΒΆ
- Configuration Reference - Complete reference for all settings
- Deployment - Production deployment configuration
- Security - Security configuration best practices