Share via


KernelAgent Class

Definition

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
KernelAgent
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)

Applies to