kai_engine 0.2.0
kai_engine: ^0.2.0 copied to clipboard
A modular, extensible AI chat engine built with a pipeline-based architecture.
Changelog #
0.2.0 - 2026-04-11 #
Added #
- CoreMessageRepository with callback-based persistence API
- KaiChatController as ready-to-use chat controller implementation
- Automatic timestamp-based sorting for InMemoryMessageRepository
- onInitial callback for loading messages from persistence
- onPut callback for persisting insert/update operations (upsert)
- Optional onRemove callback for persisting deletions
- Session caching and initialization state tracking
- Static create() factory method with async initialization support
- Optional callbacks for onPromptsReady and onStateChange
- systemPrompt parameter to SimpleContextEngine for customization
Changed #
- Improved code formatting across the codebase
- Simplified timestamp formatting to display HH:mm format
- Fixed error state handling to use _setState consistently
- Updated CoreMessageRepository callback signatures
0.1.1 - 2025-12-31 #
Changed #
- Improved README documentation with accurate API examples
- Updated architecture diagram (Mermaid flowchart) for better rendering
- Added
ContextEngine.builder()usage examples - Enhanced
ConversationManagerdocumentation with factory method examples - Added
InMemoryConversationManagerdocumentation
Removed #
- Removed FlexTemplate section from README (moved to prompt_block package)
0.1.0 - 2025-08-16 #
Added #
- Initial release of Kai Engine
- Modular pipeline-based architecture
- Core components: ChatController, ConversationManager, GenerationService, etc.
- Stream-based real-time responses
- Optimistic UI updates
- Flexible context building with template system
- Tool calling support
- Post-response processing
- Comprehensive test suite