heyllo_ai_chatbot 0.0.3+1
heyllo_ai_chatbot: ^0.0.3+1 copied to clipboard
An AI powered Flutter chatbot plugin for integrating into your flutter app.
Changelog #
All notable changes to the Heyllo Chat Plugin will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.0.3 - 2025-04-14 #
Added #
- Markdown Support: Bot responses are now rendered as Markdown using
flutter_markdown, allowing for richer text formatting (bold, italics, lists, links, etc.). - Citation Handling: Added support for receiving citation data from the backend.
- Citation Toggle: Added
showCitationsparameter toChatWidgetto allow developers to show/hide citation information in the UI. - Enable/Disable Toggle: Added
isEnabledparameter toChatWidgetto allow developers to enable or disable the chat functionality dynamically. - Thread ID Context: Implemented handling for
thread_idreceived from the backend (metadatatype response) and sending it back on subsequent requests to maintain conversation context. - New Callbacks: Added optional
onCitationsReceivedandonThreadIdReceivedcallbacks toChatWidget. - Error Message Type: Introduced an explicit
errormessage type for better error handling and display.
Changed #
- Backend Response Handling: Refactored
ChatServiceandMethodChannelChatPluginto process structured JSON responses from the backend with distincttypefields (content,metadata,citations,error) instead of just plain text streams. - Stream Finalization: Improved stream handling in
ChatServiceto correctly identify the end of a response (including handling customstream_endevents) and update the message state (isWaiting=false) reliably. - API Signatures: Updated
streamResponsemethod signature acrossChatPlugin,ChatPluginPlatform, andMethodChannelChatPluginto acceptthreadIdand returnStream<Map<String, dynamic>>. - ChatMessage Model: Updated
ChatMessageto includetype,threadId, andcitationsfields.
Fixed #
- Persistent Loading Indicator: Fixed an issue where the loading indicator on bot messages would not disappear after the response was fully received.
- Type Errors: Corrected type mismatches in
ChatBubblerelated toBorderRadiusGeometry/BorderRadiusandEdgeInsetsGeometry/EdgeInsets.
Changed #
- Updated README documentation.