You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Shield module must support the new guardrail feature, enabling content policy scans using multiple providers.
Acceptance Criteria
Configuration Processing:
The Shield must accept and process guardrail configurations provided alongside the message.
The system should validate the guardrail configuration and return an error for invalid or unsupported configurations.
Provider Support:
The Shield should support multiple content policy providers and apply the appropriate scanning logic based on the configuration.
If a provider is not specified, the default provider should be used for scanning.
Message Scanning:
The Shield must scan the message according to the policies defined in the guardrail configuration.
The scan should be executed within a specified response time (e.g., X milliseconds).
Tag Extraction:
Relevant tags must be accurately extracted from the message based on the scan results.
The extracted tags should match the structure and format defined by the guardrail configuration.
Error Handling:
If a scan cannot be completed (e.g., due to missing or invalid configurations), an appropriate error message must be returned.
Logs should be generated for all scan failures to assist with debugging.
Performance:
The system should handle concurrent scanning requests without degradation in performance.
The Shield must meet performance benchmarks under load testing conditions (e.g., X scans per second).
Testing:
Unit tests should cover all scenarios, including valid scans, invalid configurations, and multiple providers.
Integration tests should validate end-to-end functionality with different content policy providers.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
akhil31415
changed the title
[ENH]: Add support for processing the enhanced guardrail scanning feature
[ENH]: Add support for processing the enhanced guardrail scanning feature in shield module
Dec 19, 2024
Contact Details
No response
Feature Description
The Shield module must support the new guardrail feature, enabling content policy scans using multiple providers.
Acceptance Criteria
Configuration Processing:
Provider Support:
Message Scanning:
Tag Extraction:
Error Handling:
Performance:
Testing:
Code of Conduct
The text was updated successfully, but these errors were encountered: