AgentChannel Class

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.

Defines the communication protocol for a particular Agent type. An agent provides it own AgentChannel via CreateChannelAsync(CancellationToken).

C#
public abstract class AgentChannel
Inheritance
AgentChannel
Derived

Constructors

Properties

Logger

The ILogger associated with the AgentChannel.

Methods

GetHistoryAsync(CancellationToken)

Retrieve the message history specific to this channel.

InvokeAsync(Agent, CancellationToken)

Perform a discrete incremental interaction between a single Agent and AgentChat.

InvokeStreamingAsync(Agent, IList<ChatMessageContent>, CancellationToken)

Perform a discrete incremental interaction between a single Agent and AgentChat with streaming results.

ReceiveAsync(IEnumerable<ChatMessageContent>, CancellationToken)

Receive the conversation messages. Used when joining a conversation and also during each agent interaction..

ResetAsync(CancellationToken)

Reset any persistent state associated with the channel.

Applies to

Proizvod Verzije
Semantic Kernel Dotnet Latest