ChatHistoryKernelAgent.CreateChannelAsync(CancellationToken) Method

Definition

Produce the an AgentChannel appropriate for the agent type.

protected override sealed System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel> CreateChannelAsync (System.Threading.CancellationToken cancellationToken);
override this.CreateChannelAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel>
Protected Overrides NotOverridable Function CreateChannelAsync (cancellationToken As CancellationToken) As Task(Of AgentChannel)

Parameters

cancellationToken
CancellationToken

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

Returns

An AgentChannel appropriate for the agent type.

Applies to