KernelAgent 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 class for agents utilizing Kernel plugins or services.
public abstract class KernelAgent : Microsoft.SemanticKernel.Agents.Agent
type KernelAgent = class
inherit Agent
Public MustInherit Class KernelAgent
Inherits Agent
- Inheritance
- Derived
Constructors
KernelAgent() |
Properties
Description |
The description of the agent (optional) (Inherited from Agent) |
Id |
The identifier of the agent (optional). (Inherited from Agent) |
Instructions |
The instructions of the agent (optional) |
Kernel |
The Kernel containing services, plugins, and filters for use throughout the agent lifetime. |
Logger |
The ILogger associated with this Agent. (Inherited from Agent) |
LoggerFactory |
A ILoggerFactory for this Agent. (Inherited from Agent) |
Name |
The name of the agent (optional) (Inherited from Agent) |
Methods
CreateChannelAsync(CancellationToken) |
Produce the an AgentChannel appropriate for the agent type. (Inherited from Agent) |
GetChannelKeys() |
Set of keys to establish channel affinity. Minimum expected key-set: yield return typeof(YourAgentChannel).FullName; (Inherited from Agent) |