Files
letta-server/letta/server/rest_api/routers/v1/health.py
Shubham Naik eb0e03d7bb chore: move v1health to async [LET-6125] (#6086)
* chore: move v1health to async

* chore: make async

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
2025-11-13 15:36:56 -08:00

21 lines
429 B
Python

from typing import TYPE_CHECKING
from fastapi import APIRouter
from letta import __version__
from letta.schemas.health import Health
if TYPE_CHECKING:
pass
router = APIRouter(prefix="/health", tags=["health"])
@router.get("/", response_model=Health, operation_id="check_health")
async def check_health():
"""Async health check endpoint."""
return Health(
version=__version__,
status="ok",
)