flutter_pipwave_ai_agent 1.1.1
flutter_pipwave_ai_agent: ^1.1.1 copied to clipboard
Pipwave AI Agent SDK provides a predesigned graphical user interface (GUI) for user to undergo the AI agent process.
1.1.1 (5th March 2026) #
Added #
- Session token guard — All API calls are now guarded to ensure the session token is not expired. When the token is expired, the SDK automatically invokes
onRefreshAccessTokenbefore making requests, preventing unauthorized errors.
Security #
- MIME validation — Media uploads now use MIME type validation instead of file name extension to block spoofed filenames and prevent malicious file uploads.
1.0.0 (23rd January 2026) #
Added #
- Initial public release of
flutter_pipwave_ai_agentSDK - Drop-in AI Agent chat UI presented as a modal bottom sheet via
FlutterPipwaveAiAgent.instance.launchAiAgent() - SDK initialization via
initialise()method - Orientation management with
lockOrientationToPortrait()helper - Auth/session configuration via
AuthParamclass supporting:- Session token authentication
- User ID configuration
- Locale and supported locales configuration
- AI Agent name customization
- Beta flag support
- Integration callbacks:
onRefreshAccessTokencallback for refreshing session tokensonLinkTapcallback for handling links tapped in the UItermsOfServicecallback for Terms of Service navigation
- Avatar customization via
AvatarBuilderandSenderTypeenum - Unread count API:
getUnreadCountStream()for reactive unread count updatesgetUnreadCount()for synchronous unread count retrievalresetUnreadCount()for resetting the unread counter- Background monitoring via
startBackgroundMonitoring()andstopBackgroundMonitoring()
- Attachment support:
- Camera capture for photos and videos
- Gallery/media picker integration
- File picker support
- Environment configuration:
- Staging/production endpoint selection via
--dart-define=pw_ai_agent_is_prod=true
- Staging/production endpoint selection via
- Error handling with
PipwaveExceptionclass:PipwaveException.sessionNotInitialised()for uninitialized session errorsPipwaveException.contextNotMounted()for context mounting errorsPipwaveException.wsError()for WebSocket errors
- Localization support via
flutter_pipwave_localizationpackage - Platform-specific documentation for Android and iOS permissions