Skip to content

Commit 0c03fec

Browse files
committed
Regenerated OpenAPI documenentation
1 parent 7b6b85a commit 0c03fec

6 files changed

Lines changed: 40 additions & 24 deletions

File tree

docs/openapi.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"root"
2929
],
3030
"summary": "Root Endpoint Handler",
31-
"description": "Handle GET requests to the root (\"/\") endpoint and returns the static HTML index page.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Returns:\n- HTMLResponse: The HTML content of the index page, including a heading,\n embedded image with the service icon, and links to the API documentation\n via Swagger UI and ReDoc.",
31+
"description": "Handle GET requests to the root (\"/\") endpoint and returns the static HTML index page.\n\n### Parameters:\n- request: The incoming HTTP request (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\n### Returns:\n- HTMLResponse: The HTML content of the index page, including a heading,\n embedded image with the service icon, and links to the API documentation\n via Swagger UI and ReDoc.",
3232
"operationId": "root_endpoint_handler__get",
3333
"responses": {
3434
"200": {
@@ -172,7 +172,7 @@
172172
"info"
173173
],
174174
"summary": "Info Endpoint Handler",
175-
"description": "Handle request to the /info endpoint.\n\nProcess GET requests to the /info endpoint, returning the\nservice name, version and Llama-stack version.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Raises:\n- HTTPException: with status 500 and a detail object\n containing `response` and `cause` when unable to connect to\n Llama Stack. It can also return status 401 or 403 for\n unauthorized access.\n\n### Returns:\n- InfoResponse: An object containing the service's name and version.",
175+
"description": "Handle request to the /info endpoint.\n\nProcess GET requests to the /info endpoint, returning the\nservice name, version and Llama-stack version.\n\n### Parameters:\n- request: The incoming HTTP request (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 and a detail object containing `response`\n and `cause` when unable to connect to Llama Stack.\n\n### Returns:\n- InfoResponse: An object containing the service's name and version.",
176176
"operationId": "info_endpoint_handler_v1_info_get",
177177
"responses": {
178178
"200": {
@@ -323,7 +323,7 @@
323323
"models"
324324
],
325325
"summary": "Models Endpoint Handler",
326-
"description": "Handle requests to the /models endpoint.\n\nProcess GET requests to the /models endpoint, returning a list of available\nmodels from the Llama Stack service. It is possible to specify \"model_type\"\nquery parameter that is used as a filter. For example, if model type is set\nto \"llm\", only LLM models will be returned:\n\n curl http://localhost:8080/v1/models?model_type=llm\n\nThe \"model_type\" query parameter is optional. When not specified, all models\nwill be returned.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- model_type: Optional filter to return only models matching this type.\n\n### Raises:\n- HTTPException: If unable to connect to the Llama Stack server or if\n model retrieval fails for any reason.\n\n### Returns:\n- ModelsResponse: An object containing the list of available models.",
326+
"description": "Handle requests to the /models endpoint.\n\nProcess GET requests to the /models endpoint, returning a list of available\nmodels from the Llama Stack service. It is possible to specify \"model_type\"\nquery parameter that is used as a filter. For example, if model type is set\nto \"llm\", only LLM models will be returned:\n\n curl http://localhost:8080/v1/models?model_type=llm\n\nThe \"model_type\" query parameter is optional. When not specified, all models\nwill be returned.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- model_type: Optional filter to return only models matching this type.\n\n### Raises:\n- HTTPException: with status 401 for unauthorized access.\n- HTTPException: with status 403 if permission is denied.\n- HTTPException: with status 422 if model_type parameter is\n improper.\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- ModelsResponse: An object containing the list of available models.",
327327
"operationId": "models_endpoint_handler_v1_models_get",
328328
"parameters": [
329329
{
@@ -536,7 +536,7 @@
536536
"tools"
537537
],
538538
"summary": "Tools Endpoint Handler",
539-
"description": "Handle requests to the /tools endpoint.\n\nProcess GET requests to the /tools endpoint, returning a consolidated list of\navailable tools from all configured MCP servers.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- mcp_headers: Headers that should be passed to MCP servers.\n### Raises:\n- HTTPException: If unable to connect to the Llama Stack server or if tool\n retrieval fails for any reason.\n\n### Returns:\n- ToolsResponse: An object containing the consolidated list of available\n tools with metadata including tool name, description, parameters, and\n server source.",
539+
"description": "Handle requests to the /tools endpoint.\n\nProcess GET requests to the /tools endpoint, returning a consolidated list of\navailable tools from all configured MCP servers.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- mcp_headers: Headers that should be passed to MCP servers.\n\n### Raises:\n- HTTPException: with status 401 for unauthorized access.\n- HTTPException: with status 403 if permission is denied.\n- HTTPException: with status 422 if mcp_headers parameter is\n improper.\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- ToolsResponse: An object containing the consolidated list of available\n tools with metadata including tool name, description, parameters, and\n server source.",
540540
"operationId": "tools_endpoint_handler_v1_tools_get",
541541
"responses": {
542542
"200": {
@@ -20851,4 +20851,4 @@
2085120851
"description": "Vector stores and files."
2085220852
}
2085320853
]
20854-
}
20854+
}

docs/openapi.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Lightspeed Core Service (LCS) service API specification.
55

66
<!-- vim-markdown-toc GFM -->
77

8-
* [🌍 Base URL](#-base-url)
98
* [🛠️ APIs](#-apis)
109
* [List of REST API endpoints](#list-of-rest-api-endpoints)
1110
* [GET `/`](#get-)
@@ -474,6 +473,10 @@ Handle GET requests to the root ("/") endpoint and returns the static HTML index
474473
- request: The incoming HTTP request (used by middleware).
475474
- auth: Authentication tuple from the auth dependency (used by middleware).
476475

476+
### Raises:
477+
- HTTPException: with status 401 for unauthorized access.
478+
- HTTPException: with status 403 if permission is denied.
479+
477480
### Returns:
478481
- HTMLResponse: The HTML content of the index page, including a heading,
479482
embedded image with the service icon, and links to the API documentation
@@ -533,10 +536,10 @@ service name, version and Llama-stack version.
533536
- auth: Authentication tuple from the auth dependency (used by middleware).
534537

535538
### Raises:
536-
- HTTPException: with status 500 and a detail object
537-
containing `response` and `cause` when unable to connect to
538-
Llama Stack. It can also return status 401 or 403 for
539-
unauthorized access.
539+
- HTTPException: with status 401 for unauthorized access.
540+
- HTTPException: with status 403 if permission is denied.
541+
- HTTPException: with status 503 and a detail object containing `response`
542+
and `cause` when unable to connect to Llama Stack.
540543

541544
### Returns:
542545
- InfoResponse: An object containing the service's name and version.
@@ -668,8 +671,14 @@ will be returned.
668671
- model_type: Optional filter to return only models matching this type.
669672

670673
### Raises:
671-
- HTTPException: If unable to connect to the Llama Stack server or if
672-
model retrieval fails for any reason.
674+
- HTTPException: with status 401 for unauthorized access.
675+
- HTTPException: with status 403 if permission is denied.
676+
- HTTPException: with status 422 if model_type parameter is
677+
improper.
678+
- HTTPException: with status 500 and a detail object containing `response`
679+
and `cause` when service configuration is wrong or incomplete.
680+
- HTTPException: with status 503 and a detail object containing `response`
681+
and `cause` when unable to connect to Llama Stack.
673682

674683
### Returns:
675684
- ModelsResponse: An object containing the list of available models.
@@ -754,9 +763,16 @@ available tools from all configured MCP servers.
754763
- request: The incoming HTTP request (used by middleware).
755764
- auth: Authentication tuple from the auth dependency (used by middleware).
756765
- mcp_headers: Headers that should be passed to MCP servers.
766+
757767
### Raises:
758-
- HTTPException: If unable to connect to the Llama Stack server or if tool
759-
retrieval fails for any reason.
768+
- HTTPException: with status 401 for unauthorized access.
769+
- HTTPException: with status 403 if permission is denied.
770+
- HTTPException: with status 422 if mcp_headers parameter is
771+
improper.
772+
- HTTPException: with status 500 and a detail object containing `response`
773+
and `cause` when service configuration is wrong or incomplete.
774+
- HTTPException: with status 503 and a detail object containing `response`
775+
and `cause` when unable to connect to Llama Stack.
760776

761777
### Returns:
762778
- ToolsResponse: An object containing the consolidated list of available

src/app/endpoints/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ async def info_endpoint_handler(
5252
- auth: Authentication tuple from the auth dependency (used by middleware).
5353
5454
### Raises:
55-
- HTTPException: with status status 401 for unauthorized access.
56-
- HTTPException: with status status 403 if permission is denied.
55+
- HTTPException: with status 401 for unauthorized access.
56+
- HTTPException: with status 403 if permission is denied.
5757
- HTTPException: with status 503 and a detail object containing `response`
5858
and `cause` when unable to connect to Llama Stack.
5959

src/app/endpoints/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ async def models_endpoint_handler(
9898
- model_type: Optional filter to return only models matching this type.
9999
100100
### Raises:
101-
- HTTPException: with status status 401 for unauthorized access.
102-
- HTTPException: with status status 403 if permission is denied.
103-
- HTTPException: with status status 422 if model_type parameter is
101+
- HTTPException: with status 401 for unauthorized access.
102+
- HTTPException: with status 403 if permission is denied.
103+
- HTTPException: with status 422 if model_type parameter is
104104
improper.
105105
- HTTPException: with status 500 and a detail object containing `response`
106106
and `cause` when service configuration is wrong or incomplete.

src/app/endpoints/root.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,8 @@ async def root_endpoint_handler(
802802
- auth: Authentication tuple from the auth dependency (used by middleware).
803803
804804
### Raises:
805-
- HTTPException: with status status 401 for unauthorized access.
806-
- HTTPException: with status status 403 if permission is denied.
805+
- HTTPException: with status 401 for unauthorized access.
806+
- HTTPException: with status 403 if permission is denied.
807807
808808
### Returns:
809809
- HTMLResponse: The HTML content of the index page, including a heading,

src/app/endpoints/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ async def tools_endpoint_handler( # pylint: disable=too-many-locals,too-many-st
121121
- mcp_headers: Headers that should be passed to MCP servers.
122122
123123
### Raises:
124-
- HTTPException: with status status 401 for unauthorized access.
125-
- HTTPException: with status status 403 if permission is denied.
126-
- HTTPException: with status status 422 if mcp_headers parameter is
124+
- HTTPException: with status 401 for unauthorized access.
125+
- HTTPException: with status 403 if permission is denied.
126+
- HTTPException: with status 422 if mcp_headers parameter is
127127
improper.
128128
- HTTPException: with status 500 and a detail object containing `response`
129129
and `cause` when service configuration is wrong or incomplete.

0 commit comments

Comments
 (0)