agent / python /api /health.py
Leon4gr45's picture
Upload folder using huggingface_hub
5d03c05 verified
raw
history blame contribute delete
451 Bytes
from python.helpers.api import ApiHandler, Request, Response
class Health(ApiHandler):
@classmethod
def requires_auth(cls) -> bool:
return False
@classmethod
def requires_csrf(cls) -> bool:
return False
@classmethod
def get_methods(cls) -> list[str]:
return ["GET"]
async def process(self, input: dict, request: Request) -> dict:
return {"status": "ok", "message": "Service is running"}