Architecture
services/resources/
services/engine/
services/haystack/
services/shared/
API Layer
Service Layer
extract_token_usage_from_pipeline_result()
aggregate_token_usage()
infer_provider_from_model()
Task Processing
Data Layer
Authentication
Utilities
Development
Adds security headers (X-Content-Type-Options, X-Frame-Options, X-XSS-Protection, Referrer-Policy) to all responses.
Configured via ALLOWED_ORIGINS environment variable. Development mode allows all origins.
ALLOWED_ORIGINS