heyllo_ai_chatbot 0.0.3
heyllo_ai_chatbot: ^0.0.3 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
showCitations
parameter toChatWidget
to allow developers to show/hide citation information in the UI. - Enable/Disable Toggle: Added
isEnabled
parameter toChatWidget
to allow developers to enable or disable the chat functionality dynamically. - Thread ID Context: Implemented handling for
thread_id
received from the backend (metadata
type response) and sending it back on subsequent requests to maintain conversation context. - New Callbacks: Added optional
onCitationsReceived
andonThreadIdReceived
callbacks toChatWidget
. - Error Message Type: Introduced an explicit
error
message type for better error handling and display.
Changed #
- Backend Response Handling: Refactored
ChatService
andMethodChannelChatPlugin
to process structured JSON responses from the backend with distincttype
fields (content
,metadata
,citations
,error
) instead of just plain text streams. - Stream Finalization: Improved stream handling in
ChatService
to correctly identify the end of a response (including handling customstream_end
events) and update the message state (isWaiting=false
) reliably. - API Signatures: Updated
streamResponse
method signature acrossChatPlugin
,ChatPluginPlatform
, andMethodChannelChatPlugin
to acceptthreadId
and returnStream<Map<String, dynamic>>
. - ChatMessage Model: Updated
ChatMessage
to includetype
,threadId
, andcitations
fields.
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
ChatBubble
related toBorderRadiusGeometry
/BorderRadius
andEdgeInsetsGeometry
/EdgeInsets
.