Resk Improvement
Changelog
[0.3.0] - 2024-09-24
New Features
-
Multiple AI Provider Integrations
- Added
AnthropicProtectorfor Claude models - Added
CohereProtectorfor Cohere models - Added
DeepSeekProtectorfor DeepSeek models - Added
OpenRouterProtectorfor accessing multiple LLMs through OpenRouter - Restructured
OpenAIProtectoras part of the providers system
- Added
-
Enhanced Filtering Patterns
- Created a dedicated
filtering_patternspackage for better organization - Implemented advanced LLM injection detection patterns
- Added PII (Personally Identifiable Information) detection
- Developed doxxing prevention capabilities
- Implemented toxicity detection and content moderation
- Added support for custom patterns through
CustomPatternManager
- Created a dedicated
-
Improved Context Management
- Redesigned the context manager with
ContextManagerBase - Added
TokenBasedContextManagerfor token-level context tracking - Added
MessageBasedContextManagerfor conversation contexts - Added
ContextWindowManagerfor dynamic context window handling - Enhanced
TextCleanerwith more sanitization options
- Redesigned the context manager with
-
Tokenizer Protection
- Redesigned tokenizer protection with
ReskProtectorTokenizer - Added
ReskWordsListsfor efficient prohibited content management - Improved encoding/decoding protection mechanisms
- Redesigned tokenizer protection with
-
Framework Integration
- Added Flask integration for securing web APIs
- Added LangChain integration for workflow security
- Added LangGraph integration for agent graphs
- Added Hugging Face integration for model security
-
Autonomous Agent Security
- Implemented
AgentIdentityManagerfor authentication - Added
AgentSecurityMonitorfor activity tracking - Developed
AgentSandboxfor confined execution - Created
SecureAvatarfor user interaction
- Implemented
-
Deployment and Testing
- Added comprehensive deployment tests
- Improved test coverage
- Added integration tests for all providers
Improvements
- Restructured the codebase for better maintainability
- Enhanced documentation with academic references
- Updated
README.mdwith comprehensive examples - Added example scripts in the
examplesdirectory - Updated dependencies in
setup.pyandrequirements.txt - Improved error handling and logging
Changed
- Renamed
SecureTokenizertoReskProtectorTokenizer - Updated library version to 0.3.0
- Changed import structure in
__init__.py
[0.2.5] - Previous Release
- Initial release features
- Basic OpenAI protection
- Simple token-based context management
- Basic prohibited words functionality