|
1 | | -# Lightspeed Core Service (LCS) service - OpenAPI |
| 1 | +# Lightspeed Core Stack (LCS) service - OpenAPI |
2 | 2 |
|
3 | | -Lightspeed Core Service (LCS) service API specification. |
| 3 | +Lightspeed Core Stack (LCS) service API specification. |
4 | 4 |
|
5 | 5 |
|
6 | 6 | <!-- vim-markdown-toc GFM --> |
7 | 7 |
|
8 | | -* [🛠️ APIs](#-apis) |
| 8 | +* [🛠️ APIs](#apis) |
9 | 9 | * [List of REST API endpoints](#list-of-rest-api-endpoints) |
10 | 10 | * [GET `/`](#get-) |
11 | 11 | * [Parameters:](#parameters) |
@@ -192,7 +192,6 @@ Lightspeed Core Service (LCS) service API specification. |
192 | 192 | * [✅ Responses](#-responses-42) |
193 | 193 | * [GET `/a2a/health`](#get-a2ahealth) |
194 | 194 | * [✅ Responses](#-responses-43) |
195 | | - * [| 200 | Successful Response | object |](#-200--successful-response--object-) |
196 | 195 | * [📋 Components](#-components) |
197 | 196 | * [A2AStateConfiguration](#a2astateconfiguration) |
198 | 197 | * [APIKeySecurityScheme](#apikeysecurityscheme) |
@@ -398,7 +397,7 @@ Lightspeed Core Service (LCS) service API specification. |
398 | 397 |
|
399 | 398 | | URL | Description | |
400 | 399 | |-----|-------------| |
401 | | -| http://localhost:8080/ | Locally running service | |
| 400 | +| http://localhost:8080 | Locally running service | |
402 | 401 |
|
403 | 402 |
|
404 | 403 | # 🛠️ APIs |
@@ -1248,13 +1247,17 @@ shields from the Llama Stack service. |
1248 | 1247 | - request: The incoming HTTP request (used by middleware). |
1249 | 1248 | - auth: Authentication tuple from the auth dependency (used by middleware). |
1250 | 1249 |
|
| 1250 | +### Raises: |
| 1251 | +- HTTPException: with status 401 for unauthorized access. |
| 1252 | +- HTTPException: with status 403 if permission is denied. |
| 1253 | +- HTTPException: with status 500 and a detail object containing `response` |
| 1254 | + and `cause` when service configuration is wrong or incomplete. |
| 1255 | +- HTTPException: with status 503 and a detail object containing `response` |
| 1256 | + and `cause` when unable to connect to Llama Stack. |
| 1257 | + |
1251 | 1258 | ### Returns: |
1252 | 1259 | - ShieldsResponse: An object containing the list of available shields. |
1253 | 1260 |
|
1254 | | -### Raises: |
1255 | | -- HTTPException: If unable to connect to the Llama Stack server or if |
1256 | | - shield retrieval fails for any reason. |
1257 | | - |
1258 | 1261 |
|
1259 | 1262 |
|
1260 | 1263 |
|
@@ -1343,15 +1346,17 @@ List all available providers grouped by API type. |
1343 | 1346 | - request: The incoming HTTP request. |
1344 | 1347 | - auth: Authentication tuple from the auth dependency. |
1345 | 1348 |
|
| 1349 | +### Raises: |
| 1350 | +- HTTPException: with status 401 for unauthorized access. |
| 1351 | +- HTTPException: with status 403 if permission is denied. |
| 1352 | +- HTTPException: with status 500 and a detail object containing `response` |
| 1353 | + and `cause` when service configuration is wrong or incomplete. |
| 1354 | +- HTTPException: with status 503 and a detail object containing `response` |
| 1355 | + and `cause` when unable to connect to Llama Stack. |
| 1356 | + |
1346 | 1357 | ### Returns: |
1347 | 1358 | - ProvidersListResponse: Mapping from API type to list of providers. |
1348 | 1359 |
|
1349 | | -### Raises: |
1350 | | -- HTTPException: |
1351 | | -- 401: Authentication failed |
1352 | | -- 403: Authorization failed |
1353 | | -- 500: Lightspeed Stack configuration not loaded |
1354 | | -- 503: Unable to connect to Llama Stack |
1355 | 1360 |
|
1356 | 1361 |
|
1357 | 1362 |
|
@@ -2174,15 +2179,20 @@ Examples |
2174 | 2179 |
|
2175 | 2180 | List all available RAGs. |
2176 | 2181 |
|
2177 | | -Returns: |
2178 | | - RAGListResponse: List of RAG identifiers. |
| 2182 | +### Parameters: |
| 2183 | +- request: The incoming HTTP request (used by middleware). |
| 2184 | +- auth: Authentication tuple from the auth dependency (used by middleware). |
2179 | 2185 |
|
2180 | | -Raises: |
2181 | | - HTTPException: |
2182 | | - - 401: Authentication failed |
2183 | | - - 403: Authorization failed |
2184 | | - - 500: Lightspeed Stack configuration not loaded |
2185 | | - - 503: Unable to connect to Llama Stack |
| 2186 | +### Raises: |
| 2187 | +- HTTPException: with status 401 for unauthorized access. |
| 2188 | +- HTTPException: with status 403 if permission is denied. |
| 2189 | +- HTTPException: with status 500 and a detail object containing `response` |
| 2190 | + and `cause` when service configuration is wrong or incomplete. |
| 2191 | +- HTTPException: with status 503 and a detail object containing `response` |
| 2192 | + and `cause` when unable to connect to Llama Stack. |
| 2193 | + |
| 2194 | +### Returns: |
| 2195 | + - RAGListResponse: List of RAG identifiers. |
2186 | 2196 |
|
2187 | 2197 |
|
2188 | 2198 |
|
|
0 commit comments