flutter_ai_client 0.1.0 copy "flutter_ai_client: ^0.1.0" to clipboard
flutter_ai_client: ^0.1.0 copied to clipboard

Provider-agnostic chat controller for flutter_ai. Wraps any LlmProvider in a Listenable UseChatController with optimistic send, cancellation, regeneration, and frame-batched streaming — without imposi [...]

Changelog #

0.1.0 #

Initial release.

  • UseChatController — a ChangeNotifier wrapping any LlmProvider:
    • optimistic, synchronous user-message append
    • sendText / submit / stop / regenerate / clear
    • live model/provider switching (setProvider, setOptions, setTools)
    • coalesced, injectable notification scheduling (frame-batched streaming)
    • raw events stream escape hatch
  • ChatStatus (idle / submitted / streaming / error).
  • Exposes stackTrace alongside error so failures can be reported with full context.
  • A fatal (message-scoped) StreamErrorEvent tears down the active turn so a misbehaving provider can't keep mutating the conversation after a fatal error; tool-scoped errors remain non-fatal.
  • Re-exports flutter_ai_core.
0
likes
0
points
687
downloads

Publisher

unverified uploader

Weekly Downloads

Provider-agnostic chat controller for flutter_ai. Wraps any LlmProvider in a Listenable UseChatController with optimistic send, cancellation, regeneration, and frame-batched streaming — without imposing a state-management library.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #llm #chat #streaming #flutter

License

unknown (license)

Dependencies

flutter, flutter_ai_core

More

Packages that depend on flutter_ai_client