From a51a3aa497ca58f245bfa65cc6e3caebf37f828b Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Sun, 16 Mar 2025 22:21:42 +0200 Subject: [PATCH] feat(add spec endpoint): --- agentic_security/routes/probe.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/agentic_security/routes/probe.py b/agentic_security/routes/probe.py index 523b3d0..3dee380 100644 --- a/agentic_security/routes/probe.py +++ b/agentic_security/routes/probe.py @@ -6,6 +6,7 @@ from fastapi.responses import JSONResponse from ..primitives import FileProbeResponse, Probe from ..probe_actor.refusal import REFUSAL_MARKS from ..probe_data import REGISTRY +from ._specs import LLM_SPECS router = APIRouter() @@ -73,6 +74,12 @@ async def data_config(): return [m for m in REGISTRY] +@router.get("/v1/llm-specs", response_model=list) +def get_llm_specs(): + """Returns the LLM API specifications.""" + return LLM_SPECS + + @router.get("/health") async def health_check(): """Health check endpoint."""