AnonymousDelegatingChatClient constructor

AnonymousDelegatingChatClient(
  1. ChatClient innerClient, {
  2. ChatClientResponseHandler? responseHandler,
  3. ChatClientStreamingResponseHandler? streamingResponseHandler,
})

Creates a new AnonymousDelegatingChatClient.

innerClient is the underlying client to delegate to. responseHandler optionally overrides getChatResponse. streamingResponseHandler optionally overrides getStreamingChatResponse.

Implementation

AnonymousDelegatingChatClient(
  super.innerClient, {
  this.responseHandler,
  this.streamingResponseHandler,
});