Share via


Agent.CreateChannelAsync(CancellationToken) Method

Definition

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.

Applies to