genkit 0.7.0
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
topackage: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 atry/catch
block surrounding anawait for
loop.
0.6.0 #
- Added standard Genkit data classes for working with generative models, including
GenerateResponse
,Message
, andPart
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.