client library
Support for Genkit client operations in Dart.
Classes
- Candidate
- CustomPart
- DataPart
- DocumentData
- GenerateRequest
- GenerateResponse
- GenerateResponseChunk
- GenerationUsage
- Media
- MediaPart
- Message
- Operation
- OutputConfig
- Part
- ReasoningPart
-
RemoteAction<
O, S> - Represents a remote Genkit action (flow) that can be invoked or streamed.
- ResourcePart
- TextPart
- ToolDefinition
- ToolRequest
- ToolRequestPart
- ToolResponse
- ToolResponsePart
Enums
Extensions
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.