AgentChannel.ReceiveAsync Method

Definition

Receive the conversation messages. Used when joining a conversation and also during each agent interaction..

protected internal abstract System.Threading.Tasks.Task ReceiveAsync (System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.ChatMessageContent> history, System.Threading.CancellationToken cancellationToken = default);
abstract member ReceiveAsync : seq<Microsoft.SemanticKernel.ChatMessageContent> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Friend MustOverride Function ReceiveAsync (history As IEnumerable(Of ChatMessageContent), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

history
IEnumerable<ChatMessageContent>

The chat history at the point the channel is created.

cancellationToken
CancellationToken

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

Returns

Applies to