client library

Support for Genkit client operations in Dart.

Functions

defineRemoteAction<O, S>({required String url, Map<String, String>? defaultHeaders, Client? httpClient, required O fromResponse(dynamic jsonData), S fromStreamChunk(dynamic jsonData)?}) RemoteAction<O, S>
Defines a remote Genkit action (flow) client.

Typedefs

FlowStreamResponse<O, S> = ({Future<O> response, Stream<S> stream})
Record type returned by GenkitClient.streamFlow, containing the stream of chunks and a future for the final response.

Exceptions / Errors

GenkitException
Exception thrown for errors encountered during Genkit flow operations.