共用方式為


Agent Class

Definition

Base abstraction for all Semantic Kernel agents. An agent instance may participate in one or more conversations, or AgentChat. A conversation may include one or more agents.

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

Remarks

In addition to identity and descriptive meta-data, an Agent must define its communication protocol, or AgentChannel.

Constructors

Agent()

Properties

Description

The description of the agent (optional)

Id

The identifier of the agent (optional).

Logger

The ILogger associated with this Agent.

LoggerFactory

A ILoggerFactory for this Agent.

Name

The name of the agent (optional)

Methods

CreateChannelAsync(CancellationToken)

Produce the an AgentChannel appropriate for the agent type.

GetChannelKeys()

Set of keys to establish channel affinity. Minimum expected key-set: yield return typeof(YourAgentChannel).FullName;

Applies to