-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Aditya Tawde edited this page Apr 30, 2026
·
6 revisions
v3.2.1 — Security Hardening & Observability Edition
A production-grade, multi-modal AI assistant backend built on Clean Architecture — text, voice, and tool execution unified under one API.
Amadeus is a FastAPI-based AI assistant backend that solves three concrete problems with existing open-source assistants:
| Problem | Amadeus Solution |
|---|---|
| Single LLM provider — fails when rate-limited | Multi-provider fallback router with Redis-backed daily quota tracking |
| No authentication boundary | JWT Bearer auth on all protected routes with RBAC |
| No local tool execution | 60+ tools spanning system, productivity, communication, and code sandboxing |
-
SEC-01 — Prompt Injection Resistance — User input wrapped in
<user_task>XML tags; ReAct control tokens neutralised with[BLOCKED:TOKEN]before LLM sees them -
SEC-02 — WhatsApp HMAC — Every webhook POST verified against
X-Hub-Signature-256; forged payloads → HTTP 403 -
SEC-03 — Telegram Authorization —
MASTER_TELEGRAM_CHAT_IDallowlist; unknown senders receive"Unauthorized."and are dropped -
SEC-06 — Secure SECRET_KEY — Auto-generates cryptographically-secure ephemeral key if not configured; no more
"fallback"literal -
CQ-01/02 — Filesystem Sandboxing —
copy_file,move_file,create_folderall enforceSEARCH_ALLOWED_DIRSvia_assert_in_allowed_dirs() -
ARCH-04 — Qdrant Init Lock —
asyncio.Lock()prevents FileLock collision from concurrentinitialize()races -
DR-01/02/03 — Daemon Reliability — Autonomous loop task tracked + done-callback; AgentOrchestrator.shutdown() implemented; APScheduler uses
wait=True -
IMessagingAdapter Protocol — Unified
Protocolfor Telegram/WhatsApp/Slack — seesrc/infra/messaging/protocols.py -
Health Probes —
/api/v1/health/live(liveness) and/api/v1/health/ready(readiness with per-dependency 503 map) -
Per-Tool Prometheus Metrics —
amadeus_tool_duration_secondsHistogram +amadeus_tool_executions_totalCounter +amadeus_memory_errors_totalCounter -
Test Suite — 20 new unit tests in
tests/unit/test_security_hardening.pyandtests/unit/test_agent_reliability.py
| Section | Description |
|---|---|
| Architecture | Clean Architecture layers, request lifecycle, LLM routing pipeline, voice pipeline, memory tiers |
| Quick-Start | Prerequisites, local installation, Docker development & production |
| Configuration-Reference | All .env variables — required, LLM providers, optional integrations |
| Core-Systems | Semantic Router, Omni-Workspace RAG, Flash Memory Cache, Agent Orchestrator, HITL |
| Tool-Registry | All 60+ tools organized by category |
| API-Reference | Authentication, chat, voice WebSocket, messaging, tasks, health endpoints |
| Redis-Quota-Tracking | Daily LLM quota counters, Redis key schema, cost alerts |
| Messaging-Integrations | Telegram, WhatsApp, Email setup guides |
| Security-Model | Auth, network isolation, secret management, tool execution safety, prompt injection defence |
| Deployment | Railway, Docker Compose, Windows Daemon |
| Development-Guide | Adding LLM providers & tools, testing, coding standards |
| Observability | Prometheus metrics, health probes, structured logging, Sentry |
| Known-Limitations-and-Roadmap | Current gaps and planned improvements |
| Changelog | Version history highlights |
- Repository: github.com/adityatawde9699/Amadeus-AI
-
API Docs (local):
http://localhost:8000/docs(requiresDEBUG=true) -
Liveness:
GET /api/v1/health/live -
Readiness:
GET /api/v1/health/ready - Issues: GitHub Issues
- Security: SECURITY.md
- Contributing: CONTRIBUTING.md
Amadeus-AI · v6.0.0· Apache License 2.0 · Report a Bug
Getting Started
Architecture
Reference
Integrations
Operations
Development
Project
Links