INNER CODE UNIT · Python
health_check
AleksNeStu/ai-real-estate-assistant · apps/api/api/main.py:591
async def health_check(include_dependencies: bool = True):
"""
Health check endpoint to verify API status.
Args:
include_dependencies: Whether to check dependency health
(vector store, Redis, LLM providers)
Returns:
Comprehensive health status including dependencies
"""
health = await get_health_status(include_dependencies=include_dependencies)
# Convert to dict for JSON response
response: dict[str, str | float | dict[str, Any]] = {
"status": health.status.value,
"version": health.version,
"timestamp": health.timestamp,