kai_engine 0.2.0 copy "kai_engine: ^0.2.0" to clipboard
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 ConversationManager documentation with factory method examples
  • Added InMemoryConversationManager documentation

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

Changed #

Fixed #

Deprecated #

Removed #

0
likes
150
points
117
downloads

Documentation

Documentation
API reference

Publisher

verified publisherpckimlong.com

Weekly Downloads

A modular, extensible AI chat engine built with a pipeline-based architecture.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

fast_immutable_collections, freezed_annotation, json_annotation, rxdart, uuid

More

Packages that depend on kai_engine