Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
chore: add health check route
Shubham Naik29c5f8cf12c5
diff --git a/letta/schemas/health.py b/letta/schemas/health.pyindex 08bfcee48..3e76ca089 100644--- a/letta/schemas/health.py+++ b/letta/schemas/health.py@@ -1,8 +1,10 @@from pydantic import BaseModel+class Health(BaseModel):"""Health check response body"""+version: str- status: str\ No newline at end of file+ status: strdiff --git a/letta/server/rest_api/routers/v1/__init__.py b/letta/server/rest_api/routers/v1/__init__.pyindex 8582b5ba5..6589c5f41 100644--- a/letta/server/rest_api/routers/v1/__init__.py+++ b/letta/server/rest_api/routers/v1/__init__.py@@ -1,10 +1,10 @@from letta.server.rest_api.routers.v1.agents import router as agents_routerfrom letta.server.rest_api.routers.v1.blocks import router as blocks_router+from letta.server.rest_api.routers.v1.health import router as health_routerfrom letta.server.rest_api.routers.v1.jobs import router as jobs_routerfrom letta.server.rest_api.routers.v1.llms import router as llm_routerfrom letta.server.rest_api.routers.v1.sources import router as sources_routerfrom letta.server.rest_api.routers.v1.tools import router as tools_router-from letta.server.rest_api.routers.v1.health import router as health_routerROUTERS = [tools_router,diff --git a/letta/server/rest_api/routers/v1/health.py b/letta/server/rest_api/routers/v1/health.pyindex 28d8f317d..99fce66d4 100644--- a/letta/server/rest_api/routers/v1/health.py+++ b/letta/server/rest_api/routers/v1/health.py@@ -1,17 +1,16 @@-from typing import TYPE_CHECKING, List, Optional+from typing import TYPE_CHECKING-from fastapi import APIRouter, Body, Depends, HTTPException, Query+from fastapi import APIRouterfrom letta.cli.cli import versionfrom letta.schemas.health import Health-from letta.server.rest_api.utils import get_letta_server-from letta.server.server import SyncServerif TYPE_CHECKING:passrouter = APIRouter(prefix="/health", tags=["health"])+# Health check@router.get("/", response_model=Health, operation_id="health_check")def health_check():