Udostępnij za pośrednictwem


AgentChannel.GetHistoryAsync(CancellationToken) Method

Definition

Retrieve the message history specific to this channel.

protected internal abstract System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.ChatMessageContent> GetHistoryAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetHistoryAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.SemanticKernel.ChatMessageContent>
Protected Friend MustOverride Function GetHistoryAsync (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of ChatMessageContent)

Parameters

cancellationToken
CancellationToken

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

Returns

Asynchronous enumeration of messages.

Applies to