Freigeben über


AgentChannel Class

Definition

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

public abstract class AgentChannel
type AgentChannel = class
Public MustInherit Class AgentChannel
Inheritance
AgentChannel
Derived

Constructors

AgentChannel()

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