Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app/endpoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Handler for RHEL Lightspeed rlsapi v1 REST API endpoints.
## [root.py](root.py)
Handler for the / endpoint.

## [saved_prompts.py](saved_prompts.py)
Handler for REST API calls to manage saved prompts.

## [shields.py](shields.py)
Handler for REST API call to list available shields.

Expand Down
3 changes: 3 additions & 0 deletions src/models/api/responses/successful/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Successful response model for the OpenAI-compatible Responses API.
## [rlsapi.py](rlsapi.py)
Models for rlsapi v1 REST API responses.

## [saved_prompts.py](saved_prompts.py)
Successful responses for saved prompts configuration.

## [vector_stores.py](vector_stores.py)
Successful responses for vector stores and vector store files.

1 change: 1 addition & 0 deletions src/models/database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ User conversation models.

## [saved_prompts.py](saved_prompts.py)
User saved prompt models.

11 changes: 11 additions & 0 deletions src/pydantic_ai_lightspeed/capabilities/redaction/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# List of source files stored in `src/pydantic_ai_lightspeed/capabilities/redaction` directory

## [__init__.py](__init__.py)
PII redaction capability for Pydantic AI agents.

## [capability.py](capability.py)
Pydantic AI capability for PII redaction of model messages.

## [core.py](core.py)
Core redaction logic for PII detection and replacement.

17 changes: 13 additions & 4 deletions src/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Common utilities for the project.
## [compaction.py](compaction.py)
Conversation compaction — partitioning, summarization, additive fold-up.

## [config_dumper.py](config_dumper.py)
Function to dump the configuration schema into OpenAPI-compatible format.

## [connection_decorator.py](connection_decorator.py)
Decorator that makes sure the object is 'connected' according to it's connected predicate.

Expand All @@ -27,6 +30,9 @@ Degraded mode state tracking.
## [endpoints.py](endpoints.py)
Utility functions for endpoint handlers.

## [json_schema_updater.py](json_schema_updater.py)
Function to transform a JSON Schema-like dictionary into an OpenAPI-compatible schema.

## [llama_stack_version.py](llama_stack_version.py)
Check if the Llama Stack version is supported by the LCS.

Expand All @@ -42,6 +48,12 @@ MCP headers handling.
## [mcp_oauth_probe.py](mcp_oauth_probe.py)
Probe MCP servers for OAuth and raise 401 with WWW-Authenticate when required.

## [models_dumper.py](models_dumper.py)
Function to dump the schema of all data models into OpenAPI-compatible format.

## [openapi_schema_dumper.py](openapi_schema_dumper.py)
Utility function to dump schema with list of models into OpenAPI-compatible JSON format.

## [prompts.py](prompts.py)
Utility functions for system prompts.

Expand All @@ -51,7 +63,7 @@ Helpers for running Pydantic AI agents against Llama Stack (Responses API compat
## [query.py](query.py)
Utility functions for working with queries.

## [quota.py](quota.py)
## [quota_utils.py](quota_utils.py)
Quota handling helper functions.

## [reranker.py](reranker.py)
Expand All @@ -63,9 +75,6 @@ Utility functions for processing Responses API output.
## [rh_identity.py](rh_identity.py)
Utility functions for extracting RH Identity context for telemetry.

## [schema_dumper.py](schema_dumper.py)
Function to dump the configuration schema into OpenAPI-compatible format.

## [shields.py](shields.py)
Utility functions for working with Llama Stack shields.

Expand Down
3 changes: 3 additions & 0 deletions tests/unit/app/endpoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Unit tests for the rlsapi v1 /infer REST API endpoint.
## [test_root.py](test_root.py)
Unit tests for the / endpoint handler.

## [test_saved_prompts.py](test_saved_prompts.py)
Unit tests for the /saved-prompts/config REST API endpoint.

## [test_shields.py](test_shields.py)
Unit tests for the /shields REST API endpoint.

Expand Down
3 changes: 3 additions & 0 deletions tests/unit/models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ Unit tests for models.
## [test_compaction.py](test_compaction.py)
Unit tests for the ConversationSummary model.

## [test_saved_prompts_config.py](test_saved_prompts_config.py)
Unit tests for SavedPromptsConfiguration.

8 changes: 8 additions & 0 deletions tests/unit/models/database/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List of source files stored in `tests/unit/models/database` directory

## [__init__.py](__init__.py)
Unit tests for database models.

## [test_saved_prompts.py](test_saved_prompts.py)
Unit tests for SavedPrompt database model.

14 changes: 14 additions & 0 deletions tests/unit/pydantic_ai_lightspeed/capabilities/redaction/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# List of source files stored in `tests/unit/pydantic_ai_lightspeed/capabilities/redaction` directory

## [__init__.py](__init__.py)
Tests for pydantic_ai_lightspeed.capabilities.redaction package.

## [test_capability.py](test_capability.py)
Unit tests for pydantic_ai_lightspeed.capabilities.redaction.capability module.

## [test_config.py](test_config.py)
Unit tests for pydantic_ai_lightspeed.capabilities.redaction.config module.

## [test_core.py](test_core.py)
Unit tests for pydantic_ai_lightspeed.capabilities.redaction.core module.

3 changes: 3 additions & 0 deletions tests/unit/pydantic_ai_lightspeed/llamastack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## [__init__.py](__init__.py)
Unit tests for pydantic_ai_lightspeed.llamastack sub-package.

## [test_model.py](test_model.py)
Unit tests for pydantic_ai_lightspeed.llamastack._model module.

## [test_provider.py](test_provider.py)
Unit tests for pydantic_ai_lightspeed.llamastack._provider module.

Expand Down
12 changes: 9 additions & 3 deletions tests/unit/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Test module for utils/common.py.
## [test_compaction.py](test_compaction.py)
Unit tests for utils/compaction — partitioning, prompt, summarization.

## [test_config_dumper.py](test_config_dumper.py)
Unit tests for utils/config_dumper module.

## [test_connection_decorator.py](test_connection_decorator.py)
Unit tests for the connection decorator.

Expand All @@ -27,6 +30,9 @@ Unit tests for conversation utility functions.
## [test_endpoints.py](test_endpoints.py)
Unit tests for endpoints utility functions.

## [test_json_schema_updater.py](test_json_schema_updater.py)
Unit tests for utils/json_schema_updater module.

## [test_llama_stack_version.py](test_llama_stack_version.py)
Unit tests for utility function to check Llama Stack version.

Expand All @@ -39,6 +45,9 @@ Unit tests for MCP authorization headers utilities.
## [test_mcp_headers.py](test_mcp_headers.py)
Unit tests for MCP headers utility functions.

## [test_models_dumper.py](test_models_dumper.py)
Unit tests for utils/models_dumper module.

## [test_prompts.py](test_prompts.py)
Unit tests for prompts utility functions.

Expand All @@ -54,9 +63,6 @@ Unit tests for utils/responses.py functions.
## [test_rh_identity.py](test_rh_identity.py)
Unit tests for utils/rh_identity module.

## [test_schema_dumper.py](test_schema_dumper.py)
Unit tests for utils/schema_dumper module.

## [test_shields.py](test_shields.py)
Unit tests for utils/shields.py functions.

Expand Down
Loading