mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-30 20:50:02 +00:00
15 lines
409 B
Python
15 lines
409 B
Python
from fastapi import APIRouter
|
|
from pydantic import BaseModel
|
|
|
|
router = APIRouter(tags=["Health"])
|
|
|
|
|
|
class HealthResponse(BaseModel):
|
|
status: str
|
|
service: str
|
|
|
|
|
|
@router.get("/health", name="health check", response_model=HealthResponse)
|
|
async def health_check():
|
|
"""Health check endpoint for monitoring and container orchestration."""
|
|
return HealthResponse(status="ok", service="eigent-server")
|