ChatHistoryKernelAgent.CreateChannelAsync(CancellationToken) 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.
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.