sarufi 1.0.0 copy "sarufi: ^1.0.0" to clipboard
sarufi: ^1.0.0 copied to clipboard

A modern, null-safe Dart & Flutter SDK for the Sarufi Conversational AI platform - build, train and chat with Swahili-first chatbots.

1.0.0 #

First stable release: a modern, null-safe Dart 3 SDK for the Sarufi Conversational AI platform (developers.sarufi.io).

Features #

  • API-key authentication (Sarufi('YOUR_API_KEY')).
  • Typed models: Bot, ChatResponse, ChatState, IntentPrediction.
  • Sealed exception hierarchy (SarufiException and subtypes); failures throw instead of returning error maps.
  • Full endpoint coverage: create / update / get / list / delete bots, chat (general + WhatsApp), chatStatus, updateConversationState, predictIntent.
  • Bot convenience helpers: respond, predictIntent, rename, update, addIntent, addFlow, delete.
  • createFromFile / updateFromFile (JSON & YAML) via package:sarufi/sarufi_io.dart.
  • Self-documenting API: SarufiDocs / Sarufi.docs print each operation's fields and a runnable example inline (print(SarufiDocs.chat)).
  • MessageType and Channel enums.
  • Injectable http.Client, configurable baseUrl and timeout, opt-in console logging.
  • Pure Dart package: runs on mobile, desktop, web, server and CLI.
  • Runnable examples, including the bilingual Weledi Bot flagship (browse courses, enroll, pay) plus insurance and betting bots.
  • Requires Dart >=3.4.0.
0
likes
160
points
9
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A modern, null-safe Dart & Flutter SDK for the Sarufi Conversational AI platform - build, train and chat with Swahili-first chatbots.

Repository (GitHub)
View/report issues

Topics

#sarufi #chatbot #conversational-ai #nlp #sdk

License

MIT (license)

Dependencies

http, logging, uuid, yaml

More

Packages that depend on sarufi