AgentChannel.ReceiveAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.