Skip to content

Commit 00e8eef

Browse files
committed
Updated OpenAPI documentation
1 parent be78264 commit 00e8eef

2 files changed

Lines changed: 75 additions & 80 deletions

File tree

docs/openapi.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@
27282728
"prompts"
27292729
],
27302730
"summary": "Update Prompt Handler",
2731-
"description": "Handle requests to the PUT /prompts/{prompt_id} endpoint.\n\nProcess requests to update a stored prompt; Llama Stack increments the\nversion. The body includes the new text, the current version being\nreplaced, and optional fields such as ``set_as_default`` and ``variables``.\nFor example:\n\n curl -X PUT http://localhost:8080/v1/prompts/pmpt_abc123 \\\\\n -H 'Content-Type: application/json' \\\\\n -d '{\"prompt\": \"Hi\", \"version\": 1, \"set_as_default\": true}'\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- prompt_id: The Llama Stack prompt identifier.\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- body: Prompt update parameters.\n\n### Raises:\n- HTTPException: If configuration is not loaded, if the prompt is not\n found, if unable to connect to Llama Stack, or if the prompts API returns\n an error response.\n\n### Returns:\n- PromptResourceResponse: The updated prompt object returned by Llama Stack.",
2731+
"description": "Handle requests to the PUT /prompts/{prompt_id} endpoint.\n\nProcess requests to update a stored prompt; Llama Stack increments the\nversion. The body includes the new text, the current version being\nreplaced, and optional fields such as ``set_as_default`` and ``variables``.\nFor example:\n\n curl -X PUT http://localhost:8080/v1/prompts/pmpt_abc123 \\\\\n -H 'Content-Type: application/json' \\\\\n -d '{\"prompt\": \"Hi\", \"version\": 1, \"set_as_default\": true}'\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- prompt_id: The Llama Stack prompt identifier.\n- auth: Authentication tuple from the auth dependency (used by middleware).\n- body: Prompt update parameters.\n\n### Raises:\n- HTTPException: with status 400 when request format is not valid.\n- HTTPException: with status 401 for unauthorized access.\n- HTTPException: with status 403 if permission is denied.\n- HTTPException: with status 404 if prompt is not found.\n- HTTPException: with status 422 if request payload is corrupted.\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- PromptResourceResponse: The updated prompt object returned by Llama Stack.",
27322732
"operationId": "update_prompt_handler_v1_prompts__prompt_id__put",
27332733
"parameters": [
27342734
{
@@ -2980,7 +2980,7 @@
29802980
"prompts"
29812981
],
29822982
"summary": "Delete Prompt Handler",
2983-
"description": "Handle requests to the DELETE /prompts/{prompt_id} endpoint.\n\nProcess requests to delete a stored prompt in Llama Stack. The response\nalways uses HTTP 200 with a JSON body indicating whether the deletion\nsucceeded (same pattern as deleting a conversation in ``/v2``). For example:\n\n curl -X DELETE http://localhost:8080/v1/prompts/pmpt_abc123\n\nWhen the prompt does not exist, the response still returns 200 with\n``deleted`` set to false in the body.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- prompt_id: The Llama Stack prompt identifier.\n- auth: Authentication tuple from the auth dependency (used by middleware).\n\n### Raises:\n- HTTPException: If configuration is not loaded, if unable to connect to\n Llama Stack, or if the prompts API returns an error response.\n\n### Returns:\n- PromptDeleteResponse: An object describing whether the prompt was\n deleted and a human-readable message.",
2983+
"description": "Handle requests to the DELETE /prompts/{prompt_id} endpoint.\n\nProcess requests to delete a stored prompt in Llama Stack. The response\nalways uses HTTP 200 with a JSON body indicating whether the deletion\nsucceeded (same pattern as deleting a conversation in ``/v2``). For example:\n\n curl -X DELETE http://localhost:8080/v1/prompts/pmpt_abc123\n\nWhen the prompt does not exist, the response still returns 200 with\n``deleted`` set to false in the body.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- prompt_id: The Llama Stack prompt identifier.\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 422 if request payload is corrupted.\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- PromptDeleteResponse: An object describing whether the prompt was\n deleted and a human-readable message.",
29842984
"operationId": "delete_prompt_handler_v1_prompts__prompt_id__delete",
29852985
"parameters": [
29862986
{
@@ -3211,7 +3211,7 @@
32113211
"rags"
32123212
],
32133213
"summary": "Rags Endpoint Handler",
3214-
"description": "List all available RAGs.\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 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 - RAGListResponse: List of RAG identifiers.",
3214+
"description": "List all available RAGs.\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 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- RAGListResponse: List of RAG identifiers.",
32153215
"operationId": "rags_endpoint_handler_v1_rags_get",
32163216
"responses": {
32173217
"200": {
@@ -3384,7 +3384,7 @@
33843384
"rags"
33853385
],
33863386
"summary": "Get Rag Endpoint Handler",
3387-
"description": "Retrieve a single RAG identified by its unique ID.\n\nAccepts both user-facing rag_id (from LCORE config) and llama-stack\nvector_store_id. If a rag_id from config is provided, it is resolved\nto the underlying vector_store_id for the llama-stack lookup.\n\nReturns:\n RAGInfoResponse: A single RAG's details.\n\nRaises:\n HTTPException:\n - 401: Authentication failed\n - 403: Authorization failed\n - 404: RAG with the given ID not found\n - 500: Lightspeed Stack configuration not loaded\n - 503: Unable to connect to Llama Stack",
3387+
"description": "Retrieve a single RAG identified by its unique ID.\n\nAccepts both user-facing rag_id (from LCORE config) and llama-stack\nvector_store_id. If a rag_id from config is provided, it is resolved\nto the underlying vector_store_id for the llama-stack lookup.\n\n### Parameters:\n- request: The incoming HTTP request (used by middleware).\n- rag_id: rag_id or llama-stack vector_store_id\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 404 if rag_id is not found.\n- HTTPException: with status 422 for incorrect request payload.\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- RAGInfoResponse: A single RAG's details.",
33883388
"operationId": "get_rag_endpoint_handler_v1_rags__rag_id__get",
33893389
"parameters": [
33903390
{

docs/openapi.md

Lines changed: 71 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -2616,16 +2616,23 @@ Accepts both user-facing rag_id (from LCORE config) and llama-stack
26162616
vector_store_id. If a rag_id from config is provided, it is resolved
26172617
to the underlying vector_store_id for the llama-stack lookup.
26182618

2619-
Returns:
2620-
RAGInfoResponse: A single RAG's details.
2619+
### Parameters:
2620+
- request: The incoming HTTP request (used by middleware).
2621+
- rag_id: rag_id or llama-stack vector_store_id
2622+
- auth: Authentication tuple from the auth dependency (used by middleware).
26212623

2622-
Raises:
2623-
HTTPException:
2624-
- 401: Authentication failed
2625-
- 403: Authorization failed
2626-
- 404: RAG with the given ID not found
2627-
- 500: Lightspeed Stack configuration not loaded
2628-
- 503: Unable to connect to Llama Stack
2624+
### Raises:
2625+
- HTTPException: with status 401 for unauthorized access.
2626+
- HTTPException: with status 403 if permission is denied.
2627+
- HTTPException: with status 404 if rag_id is not found.
2628+
- HTTPException: with status 422 for incorrect request payload.
2629+
- HTTPException: with status 500 and a detail object containing `response`
2630+
and `cause` when service configuration is wrong or incomplete.
2631+
- HTTPException: with status 503 and a detail object containing `response`
2632+
and `cause` when unable to connect to Llama Stack.
2633+
2634+
### Returns:
2635+
- RAGInfoResponse: A single RAG's details.
26292636

26302637

26312638

@@ -5461,8 +5468,17 @@ Serve the A2A Agent Card at the well-known location.
54615468
This endpoint provides the agent card that describes Lightspeed's
54625469
capabilities according to the A2A protocol specification.
54635470

5464-
Returns:
5465-
AgentCard: The agent card describing this agent's capabilities.
5471+
### Parameters:
5472+
- auth: Authentication tuple from the auth dependency (used by middleware).
5473+
5474+
### Raises:
5475+
- HTTPException: with status 500 and a detail object containing `response`
5476+
and `cause` when service configuration is wrong or incomplete.
5477+
- HTTPException: with status 503 and a detail object containing `response`
5478+
and `cause` when unable to connect to Llama Stack.
5479+
5480+
### Returns:
5481+
- AgentCard: The agent card describing this agent's capabilities.
54665482

54675483

54685484

@@ -5483,8 +5499,17 @@ Serve the A2A Agent Card at the well-known location.
54835499
This endpoint provides the agent card that describes Lightspeed's
54845500
capabilities according to the A2A protocol specification.
54855501

5486-
Returns:
5487-
AgentCard: The agent card describing this agent's capabilities.
5502+
### Parameters:
5503+
- auth: Authentication tuple from the auth dependency (used by middleware).
5504+
5505+
### Raises:
5506+
- HTTPException: with status 500 and a detail object containing `response`
5507+
and `cause` when service configuration is wrong or incomplete.
5508+
- HTTPException: with status 503 and a detail object containing `response`
5509+
and `cause` when unable to connect to Llama Stack.
5510+
5511+
### Returns:
5512+
- AgentCard: The agent card describing this agent's capabilities.
54885513

54895514

54905515

@@ -5568,8 +5593,14 @@ Returns:
55685593
55695594
Health check endpoint for A2A service.
55705595

5571-
Returns:
5572-
Dict with health status information.
5596+
### Parameters:
5597+
- None
5598+
5599+
### Raises:
5600+
- None
5601+
5602+
### Returns:
5603+
- Dict with health status information.
55735604

55745605

55755606

@@ -5879,6 +5910,7 @@ Authentication configuration.
58795910
| jwk_config | | |
58805911
| api_key_config | | |
58815912
| rh_identity_config | | |
5913+
| trusted_proxy_config | | |
58825914

58835915

58845916
## AuthorizationCodeOAuthFlow
@@ -5974,6 +6006,11 @@ BYOK (Bring Your Own Knowledge) RAG configuration.
59746006
| vector_db_id | string | Vector database identification. |
59756007
| db_path | string | Path to RAG database. |
59766008
| score_multiplier | number | Multiplier applied to relevance scores from this vector store. Used to weight results when querying multiple knowledge sources. Values > 1 boost this store's results; values < 1 reduce them. |
6009+
| host | | PostgreSQL host for remote::pgvector. Defaults to ${env.POSTGRES_HOST} when rag_type is remote::pgvector. |
6010+
| port | | PostgreSQL port for remote::pgvector. Defaults to ${env.POSTGRES_PORT} when rag_type is remote::pgvector. |
6011+
| db | | PostgreSQL database name for remote::pgvector. Defaults to ${env.POSTGRES_DATABASE} when rag_type is remote::pgvector. |
6012+
| user | | PostgreSQL user for remote::pgvector. Defaults to ${env.POSTGRES_USER} when rag_type is remote::pgvector. |
6013+
| password | | PostgreSQL password for remote::pgvector. Defaults to ${env.POSTGRES_PASSWORD} when rag_type is remote::pgvector. |
59776014

59786015

59796016
## CORSConfiguration
@@ -6142,6 +6179,7 @@ Attributes:
61426179

61436180
| Field | Type | Description |
61446181
|-------|------|-------------|
6182+
| deleted | boolean | Whether the deletion was successful. |
61456183
| conversation_id | string | The conversation ID (UUID) that was deleted. |
61466184
| success | boolean | Whether the deletion was successful. |
61476185
| response | string | A message about the deletion result. |
@@ -6250,13 +6288,6 @@ Model representing a request to update a conversation topic summary.
62506288
Attributes:
62516289
topic_summary: The new topic summary for the conversation.
62526290

6253-
Example:
6254-
```python
6255-
update_request = ConversationUpdateRequest(
6256-
topic_summary="Discussion about machine learning algorithms"
6257-
)
6258-
```
6259-
62606291

62616292
| Field | Type | Description |
62626293
|-------|------|-------------|
@@ -6273,15 +6304,6 @@ Attributes:
62736304
success: Whether the update was successful.
62746305
message: A message about the update result.
62756306

6276-
Example:
6277-
```python
6278-
update_response = ConversationUpdateResponse(
6279-
conversation_id="123e4567-e89b-12d3-a456-426614174000",
6280-
success=True,
6281-
message="Topic summary updated successfully",
6282-
)
6283-
```
6284-
62856307

62866308
| Field | Type | Description |
62876309
|-------|------|-------------|
@@ -6397,18 +6419,6 @@ Attributes:
63976419
user_feedback: The optional user feedback.
63986420
categories: The optional list of feedback categories (multi-select for negative feedback).
63996421

6400-
Example:
6401-
```python
6402-
feedback_request = FeedbackRequest(
6403-
conversation_id="12345678-abcd-0000-0123-456789abcdef",
6404-
user_question="what are you doing?",
6405-
user_feedback="This response is not helpful",
6406-
llm_response="I don't know",
6407-
sentiment=-1,
6408-
categories=[FeedbackCategory.INCORRECT, FeedbackCategory.INCOMPLETE]
6409-
)
6410-
```
6411-
64126422

64136423
| Field | Type | Description |
64146424
|-------|------|-------------|
@@ -6428,11 +6438,6 @@ Model representing a response to a feedback request.
64286438
Attributes:
64296439
response: The response of the feedback request.
64306440

6431-
Example:
6432-
```python
6433-
feedback_response = FeedbackResponse(response="feedback received")
6434-
```
6435-
64366441

64376442
| Field | Type | Description |
64386443
|-------|------|-------------|
@@ -6447,13 +6452,6 @@ Model representing a feedback status update request.
64476452
Attributes:
64486453
status: Value of the desired feedback enabled state.
64496454

6450-
Example:
6451-
```python
6452-
feedback_request = FeedbackRequest(
6453-
status=false
6454-
)
6455-
```
6456-
64576455

64586456
| Field | Type | Description |
64596457
|-------|------|-------------|
@@ -6468,18 +6466,6 @@ Model representing a response to a feedback status update request.
64686466
Attributes:
64696467
status: The previous and current status of the service and who updated it.
64706468

6471-
Example:
6472-
```python
6473-
status_response = StatusResponse(
6474-
status={
6475-
"previous_status": true,
6476-
"updated_status": false,
6477-
"updated_by": "user/test",
6478-
"timestamp": "2023-03-15 12:34:56"
6479-
},
6480-
)
6481-
```
6482-
64836469

64846470
| Field | Type | Description |
64856471
|-------|------|-------------|
@@ -6618,15 +6604,6 @@ Attributes:
66186604
service_version: Service version.
66196605
llama_stack_version: Llama Stack version.
66206606

6621-
Example:
6622-
```python
6623-
info_response = InfoResponse(
6624-
name="Lightspeed Stack",
6625-
service_version="1.0.0",
6626-
llama_stack_version="0.2.22",
6627-
)
6628-
```
6629-
66306607

66316608
| Field | Type | Description |
66326609
|-------|------|-------------|
@@ -6635,6 +6612,24 @@ Example:
66356612
| llama_stack_version | string | Llama Stack version |
66366613

66376614

6615+
## InputToolMCP
6616+
6617+
6618+
MCP input tool with authorization included when serializing request bodies.
6619+
6620+
6621+
| Field | Type | Description |
6622+
|-------|------|-------------|
6623+
| type | string | |
6624+
| server_label | string | |
6625+
| connector_id | | |
6626+
| server_url | | |
6627+
| headers | | |
6628+
| authorization | | |
6629+
| require_approval | | |
6630+
| allowed_tools | | |
6631+
6632+
66386633
## InternalServerErrorResponse
66396634

66406635

0 commit comments

Comments
 (0)