Agent.RestoreChannelAsync(String, 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 an AgentChannel appropriate for the agent type based on the provided state.
protected internal abstract System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel> RestoreChannelAsync(string channelState, System.Threading.CancellationToken cancellationToken);
abstract member RestoreChannelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Agents.AgentChannel>
Protected Friend MustOverride Function RestoreChannelAsync (channelState As String, cancellationToken As CancellationToken) As Task(Of AgentChannel)
Parameters
- channelState
- String
The channel state, as serialized
- 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.