-
Notifications
You must be signed in to change notification settings - Fork 94
LCORE-2572: Updated description for /providers, /shields and /rags endpoints. #1927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| # Lightspeed Core Service (LCS) service - OpenAPI | ||
| # Lightspeed Core Stack (LCS) service - OpenAPI | ||
|
|
||
| Lightspeed Core Service (LCS) service API specification. | ||
| Lightspeed Core Stack (LCS) service API specification. | ||
|
|
||
|
|
||
| <!-- vim-markdown-toc GFM --> | ||
|
|
||
| * [🛠️ APIs](#-apis) | ||
| * [🛠️ APIs](#apis) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the top-level TOC link.
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 8-8: Link fragments should be valid (MD051, link-fragments) 🤖 Prompt for AI Agents |
||
| * [List of REST API endpoints](#list-of-rest-api-endpoints) | ||
| * [GET `/`](#get-) | ||
| * [Parameters:](#parameters) | ||
|
|
@@ -192,7 +192,6 @@ Lightspeed Core Service (LCS) service API specification. | |
| * [✅ Responses](#-responses-42) | ||
| * [GET `/a2a/health`](#get-a2ahealth) | ||
| * [✅ Responses](#-responses-43) | ||
| * [| 200 | Successful Response | object |](#-200--successful-response--object-) | ||
| * [📋 Components](#-components) | ||
| * [A2AStateConfiguration](#a2astateconfiguration) | ||
| * [APIKeySecurityScheme](#apikeysecurityscheme) | ||
|
|
@@ -398,7 +397,7 @@ Lightspeed Core Service (LCS) service API specification. | |
|
|
||
| | URL | Description | | ||
| |-----|-------------| | ||
| | http://localhost:8080/ | Locally running service | | ||
| | http://localhost:8080 | Locally running service | | ||
|
|
||
|
|
||
| # 🛠️ APIs | ||
|
|
@@ -1248,13 +1247,17 @@ shields from the Llama Stack service. | |
| - request: The incoming HTTP request (used by middleware). | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
Comment on lines
+1250
to
+1256
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normalize the markdown structure in the updated endpoint sections. These blocks are missing the blank-line spacing Markdownlint expects, and the
🧰 Tools🪛 markdownlint-cli2 (0.22.1)[warning] 1250-1250: Headings should be surrounded by blank lines (MD022, blanks-around-headings) 📍 Affects 1 file
🤖 Prompt for AI Agents |
||
|
|
||
| ### Returns: | ||
| - ShieldsResponse: An object containing the list of available shields. | ||
|
|
||
| ### Raises: | ||
| - HTTPException: If unable to connect to the Llama Stack server or if | ||
| shield retrieval fails for any reason. | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
@@ -1343,15 +1346,17 @@ List all available providers grouped by API type. | |
| - request: The incoming HTTP request. | ||
| - auth: Authentication tuple from the auth dependency. | ||
|
|
||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
|
||
| ### Returns: | ||
| - ProvidersListResponse: Mapping from API type to list of providers. | ||
|
|
||
| ### Raises: | ||
| - HTTPException: | ||
| - 401: Authentication failed | ||
| - 403: Authorization failed | ||
| - 500: Lightspeed Stack configuration not loaded | ||
| - 503: Unable to connect to Llama Stack | ||
|
|
||
|
|
||
|
|
||
|
|
@@ -2174,15 +2179,20 @@ Examples | |
|
|
||
| List all available RAGs. | ||
|
|
||
| Returns: | ||
| RAGListResponse: List of RAG identifiers. | ||
| ### Parameters: | ||
| - request: The incoming HTTP request (used by middleware). | ||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||
|
|
||
| Raises: | ||
| HTTPException: | ||
| - 401: Authentication failed | ||
| - 403: Authorization failed | ||
| - 500: Lightspeed Stack configuration not loaded | ||
| - 503: Unable to connect to Llama Stack | ||
| ### Raises: | ||
| - HTTPException: with status 401 for unauthorized access. | ||
| - HTTPException: with status 403 if permission is denied. | ||
| - HTTPException: with status 500 and a detail object containing `response` | ||
| and `cause` when service configuration is wrong or incomplete. | ||
| - HTTPException: with status 503 and a detail object containing `response` | ||
| and `cause` when unable to connect to Llama Stack. | ||
|
|
||
| ### Returns: | ||
| - RAGListResponse: List of RAG identifiers. | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -62,15 +62,20 @@ async def rags_endpoint_handler( | |||||||||
| """ | ||||||||||
| List all available RAGs. | ||||||||||
|
|
||||||||||
| Returns: | ||||||||||
| RAGListResponse: List of RAG identifiers. | ||||||||||
|
|
||||||||||
| Raises: | ||||||||||
| HTTPException: | ||||||||||
| - 401: Authentication failed | ||||||||||
| - 403: Authorization failed | ||||||||||
| - 500: Lightspeed Stack configuration not loaded | ||||||||||
| - 503: Unable to connect to Llama Stack | ||||||||||
| ### Parameters: | ||||||||||
| - request: The incoming HTTP request (used by middleware). | ||||||||||
| - auth: Authentication tuple from the auth dependency (used by middleware). | ||||||||||
|
|
||||||||||
| ### Raises: | ||||||||||
| - HTTPException: with status 401 for unauthorized access. | ||||||||||
| - HTTPException: with status 403 if permission is denied. | ||||||||||
| - HTTPException: with status 500 and a detail object containing `response` | ||||||||||
| and `cause` when service configuration is wrong or incomplete. | ||||||||||
| - HTTPException: with status 503 and a detail object containing `response` | ||||||||||
| and `cause` when unable to connect to Llama Stack. | ||||||||||
|
|
||||||||||
| ### Returns: | ||||||||||
| - RAGListResponse: List of RAG identifiers. | ||||||||||
|
Comment on lines
+77
to
+78
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix indentation inconsistency in the Returns section. The Returns section has extra indentation that breaks consistency with ### Returns:
- - RAGListResponse: List of RAG identifiers.
+ - RAGListResponse: List of RAG identifiers.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| """ | ||||||||||
| # Used only by the middleware | ||||||||||
| _ = auth | ||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regenerate and commit
docs/openapi.jsonfrom source routes/docstrings before merge.docs/openapi.jsonis currently out of sync with generated output, and CI already fails on this exact diff check. Please regenerate withuv run python scripts/generate_openapi_schema.py docs/openapi.jsonand commit the updated artifact so the OpenAPI contract stays consistent across layers. Based on pipeline failures and the generation script contract, this is a deterministic mismatch, not a speculative warning.🤖 Prompt for AI Agents
Source: Pipeline failures