wassim249/fastapi-langgraph-agent-production-ready-template
A FastAPI template that provides a production-ready foundation for building AI agent backends with LangGraph orchestration.

This template provides a robust scaffold for developing AI agent services, featuring LangGraph for stateful agent orchestration with checkpointing, tool calling, and human-in-the-loop capabilities. It integrates a long-term memory system using mem0 and pgvector for semantic search per user, backed by a Redis cache layer. The LLM service includes circular model fallback, exponential backoff retries, and configurable timeout budgets. Observability is handled via Langfuse tracing on all LLM calls, with Prometheus metrics and Grafana dashboards for monitoring. Security features include JWT authentication, session management, and rate limiting.