Condividi tramite


AgentChat.InvokeStreamingAsync(CancellationToken) Method

Definition

Process a series of interactions between the agents participating in this chat.

public abstract System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.StreamingChatMessageContent> InvokeStreamingAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member InvokeStreamingAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.StreamingChatMessageContent>
Public MustOverride Function InvokeStreamingAsync (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of StreamingChatMessageContent)

Parameters

cancellationToken
CancellationToken

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

Returns

Asynchronous enumeration of messages.

Applies to