Compartilhar via


AnonymousDelegatingChatClient.CompleteSharedFunc Delegate

Definition

public: delegate System::Threading::Tasks::Task ^ AnonymousDelegatingChatClient::CompleteSharedFunc(IList<ChatMessage ^> ^ chatMessages, ChatOptions ^ options, Func<IList<ChatMessage ^> ^, ChatOptions ^, CancellationToken, Task ^> ^ nextAsync, CancellationToken cancellationToken);
public delegate System.Threading.Tasks.Task AnonymousDelegatingChatClient.CompleteSharedFunc(IList<ChatMessage> chatMessages, ChatOptions? options, Func<IList<ChatMessage>,ChatOptions?,CancellationToken,Task> nextAsync, CancellationToken cancellationToken);
type AnonymousDelegatingChatClient.CompleteSharedFunc = delegate of IList<ChatMessage> * ChatOptions * Func<IList<ChatMessage>, ChatOptions, CancellationToken, Task> * CancellationToken -> Task
Public Delegate Function AnonymousDelegatingChatClient.CompleteSharedFunc(chatMessages As IList(Of ChatMessage), options As ChatOptions, nextAsync As Func(Of IList(Of ChatMessage), ChatOptions, CancellationToken, Task), cancellationToken As CancellationToken) As Task 

Parameters

chatMessages
IList<ChatMessage>

The chat content to send.

options
ChatOptions

The chat options to configure the request.

nextAsync
Func<IList<ChatMessage>,ChatOptions,CancellationToken,Task>

A delegate that provides the implementation for the inner client's CompleteAsync(IList<ChatMessage>, ChatOptions, CancellationToken) or CompleteStreamingAsync(IList<ChatMessage>, ChatOptions, CancellationToken). It should be invoked to continue the pipeline. It accepts the chat messages, options, and cancellation token, which are typically the same instances as provided to this method but need not be.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Return Value

A Task that represents the completion of the operation.

Applies to