Skip to content

Commit 7743e5c

Browse files
committed
Generated doc
1 parent 5b4e485 commit 7743e5c

8 files changed

Lines changed: 145 additions & 0 deletions

File tree

src/app/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# List of source files stored in `src/app` directory
2+
3+
## [__init__.py](__init__.py)
4+
REST API service based on FastAPI.
5+
6+
## [database.py](database.py)
7+
Database engine management.
8+
9+
## [main.py](main.py)
10+
Definition of FastAPI based web service.
11+
12+
## [routers.py](routers.py)
13+
REST API routers.
14+

src/app/endpoints/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# List of source files stored in `src/app/endpoints` directory
2+
3+
## [__init__.py](__init__.py)
4+
Implementation of all endpoints.
5+
6+
## [authorized.py](authorized.py)
7+
Handler for REST API call to authorized endpoint.
8+
9+
## [config.py](config.py)
10+
Handler for REST API call to retrieve service configuration.
11+
12+
## [conversations.py](conversations.py)
13+
Handler for REST API calls to manage conversation history.
14+
15+
## [feedback.py](feedback.py)
16+
Handler for REST API endpoint for user feedback.
17+
18+
## [health.py](health.py)
19+
Handlers for health REST API endpoints.
20+
21+
## [info.py](info.py)
22+
Handler for REST API call to provide info.
23+
24+
## [metrics.py](metrics.py)
25+
Handler for REST API call to provide metrics.
26+
27+
## [models.py](models.py)
28+
Handler for REST API call to list available models.
29+
30+
## [query.py](query.py)
31+
Handler for REST API call to provide answer to query.
32+
33+
## [root.py](root.py)
34+
Handler for the / endpoint.
35+
36+
## [streaming_query.py](streaming_query.py)
37+
Handler for REST API call to provide answer to streaming query.
38+

src/auth/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# List of source files stored in `src/auth` directory
2+
3+
## [__init__.py](__init__.py)
4+
This package contains authentication code and modules.
5+
6+
## [interface.py](interface.py)
7+
Abstract base class for all authentication method implementations.
8+
9+
## [jwk_token.py](jwk_token.py)
10+
Manage authentication flow for FastAPI endpoints with JWK based JWT auth.
11+
12+
## [k8s.py](k8s.py)
13+
Manage authentication flow for FastAPI endpoints with K8S/OCP.
14+
15+
## [noop.py](noop.py)
16+
Manage authentication flow for FastAPI endpoints with no-op auth.
17+
18+
## [noop_with_token.py](noop_with_token.py)
19+
Manage authentication flow for FastAPI endpoints with no-op auth and provided user token.
20+
21+
## [utils.py](utils.py)
22+
Authentication utility functions.
23+

src/metrics/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List of source files stored in `src/metrics` directory
2+
3+
## [__init__.py](__init__.py)
4+
Metrics module for Lightspeed Stack.
5+
6+
## [utils.py](utils.py)
7+
Utility functions for metrics handling.
8+

src/models/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# List of source files stored in `src/models` directory
2+
3+
## [__init__.py](__init__.py)
4+
Pydantic models.
5+
6+
## [config.py](config.py)
7+
Model with service configuration.
8+
9+
## [requests.py](requests.py)
10+
Models for REST API requests.
11+
12+
## [responses.py](responses.py)
13+
Models for REST API responses.
14+

src/models/database/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# List of source files stored in `src/models/database` directory
2+
3+
## [__init__.py](__init__.py)
4+
Database models package.
5+
6+
## [base.py](base.py)
7+
Base model for SQLAlchemy ORM classes.
8+
9+
## [conversations.py](conversations.py)
10+
User conversation models.
11+

src/runners/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# List of source files stored in `src/runners` directory
2+
3+
## [__init__.py](__init__.py)
4+
Runners.
5+
6+
## [uvicorn.py](uvicorn.py)
7+
Uvicorn runner.
8+

src/utils/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# List of source files stored in `src/utils` directory
2+
3+
## [__init__.py](__init__.py)
4+
Utils.
5+
6+
## [checks.py](checks.py)
7+
Checks that are performed to configuration options.
8+
9+
## [common.py](common.py)
10+
Common utilities for the project.
11+
12+
## [endpoints.py](endpoints.py)
13+
Utility functions for endpoint handlers.
14+
15+
## [llama_stack_version.py](llama_stack_version.py)
16+
Check if the Llama Stack version is supported by the LCS.
17+
18+
## [mcp_headers.py](mcp_headers.py)
19+
MCP headers handling.
20+
21+
## [suid.py](suid.py)
22+
Session ID utility functions.
23+
24+
## [transcripts.py](transcripts.py)
25+
Transcript handling.
26+
27+
## [types.py](types.py)
28+
Common types for the project.
29+

0 commit comments

Comments
 (0)