ChatClientSharedDelegate typedef
ChatClientSharedDelegate =
Future<void> Function(Iterable<ChatMessage> messages, ChatOptions? options, Future<void> next(Iterable<ChatMessage> messages, ChatOptions? options, CancellationToken? cancellationToken), CancellationToken? cancellationToken)
Delegate used to wrap both non-streaming and streaming operations.
The next callback must be invoked to run the inner client operation.
Implementation
typedef ChatClientSharedDelegate = Future<void> Function(
Iterable<ChatMessage> messages,
ChatOptions? options,
Future<void> Function(
Iterable<ChatMessage> messages,
ChatOptions? options,
CancellationToken? cancellationToken,
) next,
CancellationToken? cancellationToken,
);