Agent.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 internal abstract System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel> CreateChannelAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateChannelAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel>
Protected Friend MustOverride 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.
Remarks
Every agent conversation, or AgentChat, will establish one or more AgentChannel objects according to the specific Agent type.