Skip to main content

AgentAppConfig

Defined in the config module.
AI Agent Configuration for AgentApp. This dataclass holds all configuration options for an AgentApp instance. It follows the PraisonAI principle of sensible defaults with explicit overrides. Attributes: name: Name of the application (default: “PraisonAI App”) host: Host address to bind to (default: “0.0.0.0”) port: Port number to listen on (default: 8000) reload: Enable auto-reload for development (default: False) cors_origins: List of allowed CORS origins (default: [”*”]) api_prefix: API route prefix (default: “/api”) docs_url: URL for API documentation (default: “/docs”) openapi_url: URL for OpenAPI schema (default: “/openapi.json”) debug: Enable debug mode (default: False) log_level: Logging level (default: “info”) workers: Number of worker processes (default: 1) timeout: Request timeout in seconds (default: 60) metadata: Additional metadata for the app

Properties

name
str
No description available.
host
str
No description available.
port
int
No description available.
reload
bool
No description available.
cors_origins
List
No description available.
api_prefix
str
No description available.
docs_url
str
No description available.
openapi_url
str
No description available.
debug
bool
No description available.
log_level
str
No description available.
workers
int
No description available.
timeout
int
No description available.
metadata
Dict
No description available.

Usage

config = AgentAppConfig(
        name="My AI App",
        port=9000,
        reload=True,
        debug=True
    )

Source

View on GitHub

praisonaiagents/app/config.py at line 12