You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openapi.json
+67-8Lines changed: 67 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -9964,7 +9964,7 @@
9964
9964
"health"
9965
9965
],
9966
9966
"summary": "Readiness Probe Get Method",
9967
-
"description": "Handle the readiness probe endpoint, returning service readiness.\n\nIf any provider reports an error status, responds with HTTP 503\nand details of unhealthy providers; otherwise, indicates the\nservice is ready.\n\n### Parameters:\n- response: The outgoing HTTP response (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Raises:\n- HTTPException: with status 401 for unauthorized access.\n- HTTPException: with status 403 if permission is denied.\n- HTTPException: with status 500 and a detail object containing `response`\n and `cause` when service configuration is wrong or incomplete.\n- HTTPException: with status 503 and a detail object containing `response`\n and `cause` when unable to connect to Llama Stack.\n\n### Returns:\n- ReadinessResponse: Object with `ready` indicating overall readiness,\n `reason` explaining the outcome, and `providers` containing the list of\n unhealthy ProviderHealthStatus entries (empty when ready).",
9967
+
"description": "Handle the readiness probe endpoint, returning service readiness and health status.\n\nReturns comprehensive health information including overall service status,\nprovider health, and functional impacts. The service is considered \"ready\" even\nin degraded mode (returns 200), but reports reduced functionality.\n\n### Parameters:\n- response: The outgoing HTTP response (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Raises:\n- HTTPException: with status 401 for unauthorized access.\n- HTTPException: with status 403 if permission is denied.\n- HTTPException: with status 503 when service is unhealthy (providers down,\n models unavailable) and degraded mode is not enabled.\n\n### Returns:\n- ReadinessResponse: Object with comprehensive health status including:\n - ready: True if service can handle requests (even in degraded mode)\n - reason: Description of service state\n - overall_status: healthy, degraded, or unhealthy\n - impacts: Functional limitations when degraded/unhealthy\n - providers: List of unhealthy providers",
"description": "Health status enum for provider and service health checks.\n\nThis enum serves two purposes:\n\n1. Provider-level health (returned by Llama Stack providers):\n - OK: Provider is healthy and operational\n - ERROR: Provider is unhealthy or failed health check\n - NOT_IMPLEMENTED: Provider does not implement health checks\n - UNKNOWN: Fallback when provider status cannot be determined\n\n2. Service-level health (overall LCORE status):\n - HEALTHY: All systems operational, LLS connected, all providers healthy\n - DEGRADED: Service running with reduced functionality (e.g., LLS unavailable)\n - UNHEALTHY: Service connected but one or more providers are unhealthy"
13502
+
},
13488
13503
"ImplicitOAuthFlow": {
13489
13504
"properties": {
13490
13505
"authorizationUrl": {
@@ -16888,7 +16903,7 @@
16888
16903
"description": "Optional message about the health status",
16889
16904
"examples": [
16890
16905
"All systems operational",
16891
-
"Llama Stack is unavailable"
16906
+
"Provider is unavailable"
16892
16907
]
16893
16908
}
16894
16909
},
@@ -17866,7 +17881,7 @@
17866
17881
"ready": {
17867
17882
"type": "boolean",
17868
17883
"title": "Ready",
17869
-
"description": "Flag indicating if service is ready",
17884
+
"description": "Flag indicating if service is ready to handle requests",
17870
17885
"examples": [
17871
17886
true,
17872
17887
false
@@ -17875,34 +17890,78 @@
17875
17890
"reason": {
17876
17891
"type": "string",
17877
17892
"title": "Reason",
17878
-
"description": "The reason for the readiness",
17893
+
"description": "The reason for the readiness status",
17879
17894
"examples": [
17880
17895
"Service is ready"
17881
17896
]
17882
17897
},
17898
+
"overall_status": {
17899
+
"$ref": "#/components/schemas/HealthStatus",
17900
+
"description": "Overall service health status",
17901
+
"examples": [
17902
+
"healthy",
17903
+
"degraded",
17904
+
"unhealthy"
17905
+
]
17906
+
},
17907
+
"impacts": {
17908
+
"anyOf": [
17909
+
{
17910
+
"items": {
17911
+
"type": "string"
17912
+
},
17913
+
"type": "array"
17914
+
},
17915
+
{
17916
+
"type": "null"
17917
+
}
17918
+
],
17919
+
"title": "Impacts",
17920
+
"description": "List of functional impacts when service is degraded or unhealthy",
"description": "List of unhealthy providers in case of readiness failure.",
17935
+
"description": "List of unhealthy providers (empty when all healthy)",
17890
17936
"examples": []
17891
17937
}
17892
17938
},
17893
17939
"type": "object",
17894
17940
"required": [
17895
17941
"ready",
17896
17942
"reason",
17943
+
"overall_status",
17897
17944
"providers"
17898
17945
],
17899
17946
"title": "ReadinessResponse",
17900
-
"description": "Model representing response to a readiness request.\n\nAttributes:\n ready: If service is ready.\n reason: The reason for the readiness.\n providers: List of unhealthy providers in case of readiness failure.",
17947
+
"description": "Model representing response to a readiness request.\n\nAttributes:\n ready: If service is ready to handle requests.\n reason: The reason for the readiness status.\n overall_status: Overall service health status (healthy/degraded/unhealthy).\n impacts: Optional list of functional impacts when degraded or unhealthy.\n providers: List of unhealthy providers (empty when all healthy).",
0 commit comments