Share via


IReadOnlyKernelPluginCollection Interface

Definition

Provides a read-only collection of KernelPlugins.

public interface IReadOnlyKernelPluginCollection : System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.KernelPlugin>, System.Collections.Generic.IReadOnlyCollection<Microsoft.SemanticKernel.KernelPlugin>
type IReadOnlyKernelPluginCollection = interface
    interface IReadOnlyCollection<KernelPlugin>
    interface seq<KernelPlugin>
    interface IEnumerable
Public Interface IReadOnlyKernelPluginCollection
Implements IEnumerable(Of KernelPlugin), IReadOnlyCollection(Of KernelPlugin)
Derived
Implements

Properties

Item[String]

Gets a plugin from the collection by name.

Methods

TryGetPlugin(String, KernelPlugin)

Gets a plugin from the collection by name.

Extension Methods

TryGetFunctionAndArguments(IReadOnlyKernelPluginCollection, OpenAIFunctionToolCall, KernelFunction, KernelArguments)

Given an OpenAIFunctionToolCall object, tries to retrieve the corresponding KernelFunction and populate KernelArguments with its parameters.

TryGetFunctionAndArguments(IReadOnlyKernelPluginCollection, ChatToolCall, KernelFunction, KernelArguments)

Given an OpenAIFunctionToolCall object, tries to retrieve the corresponding KernelFunction and populate KernelArguments with its parameters.

Contains(IReadOnlyKernelPluginCollection, String)

Gets whether the plugins collection contains a plugin with the specified name.

GetFunction(IReadOnlyKernelPluginCollection, String, String)

Gets a function from the collection by plugin and function names.

TryGetFunction(IReadOnlyKernelPluginCollection, String, String, KernelFunction)

Gets a function from the collection by plugin and function names.

Applies to