Skip to content

Commit 88c86e1

Browse files
author
Sofiya Nuryyeva
committed
Merge branch 'main' into snuryyeva/403_flows
2 parents c58a494 + d8ebfe8 commit 88c86e1

68 files changed

Lines changed: 462 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

deploy/lightspeed-stack/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ ENTRYPOINT ["/app-root/entrypoint.sh"]
144144
LABEL vendor="Red Hat, Inc." \
145145
name="lightspeed-core/lightspeed-stack-rhel9" \
146146
com.redhat.component="lightspeed-core/lightspeed-stack" \
147-
cpe="cpe:/a:redhat:lightspeed_core:0.7::el9" \
147+
cpe="cpe:/a:redhat:lightspeed_core:0.8::el9" \
148148
io.k8s.display-name="Lightspeed Stack" \
149149
summary="A service that provides a REST API for the Lightspeed Core Stack." \
150150
description="Lightspeed Core Stack (LCS) is an AI-powered assistant that provides answers to product questions using backend LLM services, agents, and RAG databases." \

scripts/gen_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def generate_docfile(directory: Path) -> None:
4444
for file in files:
4545
if file.endswith(".py"):
4646
print(f"## [{file}]({file})", file=indexfile)
47+
print(file=indexfile)
4748
with open(file, encoding="utf-8") as fin:
4849
source = fin.read()
4950
try:

src/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
# List of source files stored in `src` directory
22

33
## [__init__.py](__init__.py)
4+
45
Main classes for the Lightspeed Core Stack REST API service.
56

67
## [client.py](client.py)
8+
79
Llama Stack client retrieval class.
810

911
## [configuration.py](configuration.py)
12+
1013
Configuration loader.
1114

1215
## [constants.py](constants.py)
16+
1317
Constants used in business logic.
1418

1519
## [lightspeed_stack.py](lightspeed_stack.py)
20+
1621
Entry point to the Lightspeed Core Stack REST API service.
1722

1823
## [llama_stack_configuration.py](llama_stack_configuration.py)
24+
1925
Llama Stack configuration enrichment and synthesis.
2026

2127
## [log.py](log.py)
28+
2229
Log utilities.
2330

2431
## [sentry.py](sentry.py)
32+
2533
Sentry error tracking initialization and configuration.
2634

2735
## [version.py](version.py)
36+
2837
Service version that is read by project manager tools.
2938

src/a2a_storage/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# List of source files stored in `src/a2a_storage` directory
22

33
## [__init__.py](__init__.py)
4+
45
A2A protocol persistent storage components.
56

67
## [context_store.py](context_store.py)
8+
79
Abstract base class for A2A context-to-conversation mapping storage.
810

911
## [in_memory_context_store.py](in_memory_context_store.py)
12+
1013
In-memory implementation of A2A context store.
1114

1215
## [postgres_context_store.py](postgres_context_store.py)
16+
1317
PostgreSQL implementation of A2A context store.
1418

1519
## [sqlite_context_store.py](sqlite_context_store.py)
20+
1621
SQLite implementation of A2A context store.
1722

1823
## [storage_factory.py](storage_factory.py)
24+
1925
Factory for creating A2A storage backends.
2026

src/app/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# List of source files stored in `src/app` directory
22

33
## [__init__.py](__init__.py)
4+
45
REST API service based on FastAPI.
56

67
## [database.py](database.py)
8+
79
Database engine management.
810

911
## [main.py](main.py)
12+
1013
Definition of FastAPI based web service.
1114

1215
## [routers.py](routers.py)
16+
1317
REST API routers.
1418

src/app/endpoints/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,114 @@
11
# List of source files stored in `src/app/endpoints` directory
22

33
## [__init__.py](__init__.py)
4+
45
Implementation of all endpoints.
56

67
## [a2a.py](a2a.py)
8+
79
Handler for A2A (Agent-to-Agent) protocol endpoints using Responses API.
810

911
## [a2a_openapi.py](a2a_openapi.py)
12+
1013
OpenAPI-only metadata for A2A JSON-RPC routes.
1114

1215
## [authorized.py](authorized.py)
16+
1317
Handler for REST API call to authorized endpoint.
1418

1519
## [config.py](config.py)
20+
1621
Handler for REST API call to retrieve service configuration.
1722

1823
## [conversations_v1.py](conversations_v1.py)
24+
1925
Handler for REST API calls to manage conversation history using Conversations API.
2026

2127
## [conversations_v2.py](conversations_v2.py)
28+
2229
Handler for REST API calls to manage conversation history.
2330

2431
## [feedback.py](feedback.py)
32+
2533
Handler for REST API endpoint for user feedback.
2634

2735
## [health.py](health.py)
36+
2837
Handlers for health REST API endpoints.
2938

3039
## [info.py](info.py)
40+
3141
Handler for REST API call to provide info.
3242

3343
## [mcp_auth.py](mcp_auth.py)
44+
3445
Handler for REST API calls related to MCP server authentication.
3546

3647
## [mcp_servers.py](mcp_servers.py)
48+
3749
Handler for REST API calls to dynamically manage MCP servers.
3850

3951
## [metrics.py](metrics.py)
52+
4053
Handler for REST API call to provide metrics.
4154

4255
## [models.py](models.py)
56+
4357
Handler for REST API call to list available models.
4458

4559
## [prompts.py](prompts.py)
60+
4661
Handler for REST API calls to manage Llama Stack stored prompt templates.
4762

4863
## [providers.py](providers.py)
64+
4965
Handler for REST API calls to list and retrieve available providers.
5066

5167
## [query.py](query.py)
68+
5269
Handler for REST API call to provide answer to query using Response API.
5370

5471
## [rags.py](rags.py)
72+
5573
Handler for REST API calls to list and retrieve available RAGs.
5674

5775
## [responses.py](responses.py)
76+
5877
Handler for REST API call to provide answer using Responses API (LCORE specification).
5978

6079
## [responses_telemetry.py](responses_telemetry.py)
80+
6181
Splunk telemetry helpers for the Responses API endpoint.
6282

6383
## [rlsapi_v1.py](rlsapi_v1.py)
84+
6485
Handler for RHEL Lightspeed rlsapi v1 REST API endpoints.
6586

6687
## [root.py](root.py)
88+
6789
Handler for the / endpoint.
6890

6991
## [saved_prompts.py](saved_prompts.py)
92+
7093
Handler for REST API calls to manage saved prompts.
7194

7295
## [shields.py](shields.py)
96+
7397
Handler for REST API call to list available shields.
7498

7599
## [stream_interrupt.py](stream_interrupt.py)
100+
76101
Endpoint for interrupting in-progress streaming query requests.
77102

78103
## [streaming_query.py](streaming_query.py)
104+
79105
Streaming query handler using Responses API.
80106

81107
## [tools.py](tools.py)
108+
82109
Handler for REST API call to list available tools from MCP servers.
83110

84111
## [vector_stores.py](vector_stores.py)
112+
85113
Handler for REST API calls to manage vector stores and files.
86114

src/authentication/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11
# List of source files stored in `src/authentication` directory
22

33
## [__init__.py](__init__.py)
4+
45
This package contains authentication code and modules.
56

67
## [api_key_token.py](api_key_token.py)
8+
79
Authentication flow for FastAPI endpoints with a provided API key.
810

911
## [interface.py](interface.py)
12+
1013
Abstract base class for all authentication method implementations.
1114

1215
## [jwk_token.py](jwk_token.py)
16+
1317
Manage authentication flow for FastAPI endpoints with JWK based JWT auth.
1418

1519
## [k8s.py](k8s.py)
20+
1621
Manage authentication flow for FastAPI endpoints with K8S/OCP.
1722

1823
## [noop.py](noop.py)
24+
1925
Manage authentication flow for FastAPI endpoints with no-op auth.
2026

2127
## [noop_with_token.py](noop_with_token.py)
28+
2229
Manage authentication flow for FastAPI endpoints with no-op auth and provided user token.
2330

2431
## [rh_identity.py](rh_identity.py)
32+
2533
Red Hat Identity header authentication for FastAPI endpoints.
2634

2735
## [trusted_proxy.py](trusted_proxy.py)
36+
2837
Trusted-proxy authentication module for requests forwarded by a K8s proxy.
2938

3039
## [utils.py](utils.py)
40+
3141
Authentication utility functions.
3242

src/authorization/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# List of source files stored in `src/authorization` directory
22

33
## [__init__.py](__init__.py)
4+
45
Authorization module for role-based access control.
56

67
## [azure_token_manager.py](azure_token_manager.py)
8+
79
Azure Entra ID token manager for Azure OpenAI authentication.
810

911
## [middleware.py](middleware.py)
12+
1013
Authorization middleware and decorators.
1114

1215
## [resolvers.py](resolvers.py)
16+
1317
Authorization resolvers for role evaluation and access control.
1418

src/cache/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
11
# List of source files stored in `src/cache` directory
22

33
## [__init__.py](__init__.py)
4+
45
Various cache implementations.
56

67
## [cache.py](cache.py)
8+
79
Abstract class that is parent for all cache implementations.
810

911
## [cache_entry.py](cache_entry.py)
12+
1013
Model for conversation history cache entry.
1114

1215
## [cache_error.py](cache_error.py)
16+
1317
Any exception that can occur during cache operations.
1418

1519
## [cache_factory.py](cache_factory.py)
20+
1621
Cache factory class.
1722

1823
## [in_memory_cache.py](in_memory_cache.py)
24+
1925
In-memory cache implementation.
2026

2127
## [noop_cache.py](noop_cache.py)
28+
2229
No-operation cache implementation.
2330

2431
## [postgres_cache.py](postgres_cache.py)
32+
2533
PostgreSQL cache implementation.
2634

2735
## [sqlite_cache.py](sqlite_cache.py)
36+
2837
Cache that uses SQLite to store cached values.
2938

src/data/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# List of source files stored in `src/data` directory
22

33
## [__init__.py](__init__.py)
4+
45
Package-shipped data files for Lightspeed Core Stack.
56

0 commit comments

Comments
 (0)