Agent 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.
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 | |
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; |