KernelPlugin.TryGetFunction(String, KernelFunction) Method

Definition

Finds a function in the plugin by name.

public abstract bool TryGetFunction (string name, out Microsoft.SemanticKernel.KernelFunction? function);
abstract member TryGetFunction : string * KernelFunction -> bool
Public MustOverride Function TryGetFunction (name As String, ByRef function As KernelFunction) As Boolean

Parameters

name
String

The name of the function to find.

function
KernelFunction

If the plugin contains the requested function, the found function instance; otherwise, null.

Returns

true if the function was found in the plugin; otherwise, false.

Applies to