Asish Karthikeya Gogineni
Refactor: Upgraded to Agentic Chatbot with AST & Call Graph support
5b89d45
raw
history blame contribute delete
547 Bytes
"""
Health check endpoint
"""
from fastapi import APIRouter
router = APIRouter()
@router.get("/health")
async def health_check():
"""
Health check endpoint to verify API is running.
Returns:
dict: Health status and basic system info
"""
from api.state import app_state
return {
"status": "healthy",
"indexed": app_state.chat_engine is not None,
"provider": app_state.provider,
"vector_db": app_state.vector_db,
"documents_count": app_state.documents_count
}