genkit 0.7.0 copy "genkit: ^0.7.0" to clipboard
genkit: ^0.7.0 copied to clipboard

A type-safe Dart client library for calling Google Genkit flows with streaming support, authentication, and comprehensive error handling.

0.7.0 #

  • BREAKING CHANGE: The package has been renamed from package:genkit/genkit.dart to package:genkit/client.dart. You will need to update your import statements.
  • BREAKING CHANGE: The response future returned by the .stream() method is now nullable (Future<O?>). This change supports improved error handling and cancellation.
  • Improved Error Handling: Errors occurring on the server during a stream are now thrown by the stream itself. This allows you to catch exceptions directly within a try/catch block surrounding an await for loop.

0.6.0 #

  • Added standard Genkit data classes for working with generative models, including GenerateResponse, Message, and Part types.
  • Added helper getters like .text and .media for easier data extraction.

0.5.1 #

  • README cleanup

0.5.0 #

  • Enhanced type-safe client: Added comprehensive generics support for type-safe operations
  • Streaming support: Implemented real-time data streaming with Server-Sent Events (SSE)
  • Improved error handling: Introduced GenkitException with detailed error information and HTTP status codes
  • Authentication support: Added support for custom headers including Firebase Auth integration
  • Better integration: Enhanced compatibility with json_serializable for object serialization
  • Comprehensive documentation: Added detailed API documentation and usage examples
  • Platform support: Full cross-platform support for iOS, Android, Web, Windows, macOS, and Linux
  • Testing improvements: Added comprehensive unit and integration tests

0.0.1 #

  • Initial version.
1
likes
150
points
464
downloads

Publisher

unverified uploader

Weekly Downloads

A type-safe Dart client library for calling Google Genkit flows with streaming support, authentication, and comprehensive error handling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

http, json_annotation

More

Packages that depend on genkit