Share via


AgentPlugin Class

Definition

Specialization of KernelPlugin for IAgent

public abstract class AgentPlugin : Microsoft.SemanticKernel.KernelPlugin
type AgentPlugin = class
    inherit KernelPlugin
Public MustInherit Class AgentPlugin
Inherits KernelPlugin
Inheritance
AgentPlugin

Constructors

AgentPlugin(String, String)

Initializes the new plugin from the provided name, description, and function collection.

Properties

Description

Gets a description of the plugin.

(Inherited from KernelPlugin)
FunctionCount

Gets the number of functions in this plugin.

(Inherited from KernelPlugin)
Item[String]

Gets the function in the plugin with the specified name.

(Inherited from KernelPlugin)
Name

Gets the name of the plugin.

(Inherited from KernelPlugin)

Methods

Contains(KernelFunction)

Gets whether the plugin contains a function.

(Inherited from KernelPlugin)
Contains(String)

Gets whether the plugin contains a function with the specified name.

(Inherited from KernelPlugin)
GetEnumerator() (Inherited from KernelPlugin)
GetFunctionsMetadata()

Gets a collection of KernelFunctionMetadata instances, one for every function in this plugin.

(Inherited from KernelPlugin)
InvokeAsync(String, CancellationToken)

Invoke plugin with user input

InvokeAsync(String, KernelArguments, CancellationToken)

Invoke plugin with user input

TryGetFunction(String, KernelFunction)

Finds a function in the plugin by name.

(Inherited from KernelPlugin)

Explicit Interface Implementations

IEnumerable.GetEnumerator() (Inherited from KernelPlugin)

Applies to