Freigeben über


FunctionResult Constructors

Definition

Overloads

FunctionResult(FunctionResult, Object)

Initializes a new instance of the FunctionResult class.

FunctionResult(KernelFunction, Object, CultureInfo, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the FunctionResult class.

FunctionResult(FunctionResult, Object)

Initializes a new instance of the FunctionResult class.

public FunctionResult (Microsoft.SemanticKernel.FunctionResult result, object? value = default);
new Microsoft.SemanticKernel.FunctionResult : Microsoft.SemanticKernel.FunctionResult * obj -> Microsoft.SemanticKernel.FunctionResult
Public Sub New (result As FunctionResult, Optional value As Object = Nothing)

Parameters

result
FunctionResult

Instance of FunctionResult with result data to copy.

value
Object

The resulting object of the function's invocation.

Applies to

FunctionResult(KernelFunction, Object, CultureInfo, IReadOnlyDictionary<String,Object>)

Initializes a new instance of the FunctionResult class.

public FunctionResult (Microsoft.SemanticKernel.KernelFunction function, object? value = default, System.Globalization.CultureInfo? culture = default, System.Collections.Generic.IReadOnlyDictionary<string,object?>? metadata = default);
new Microsoft.SemanticKernel.FunctionResult : Microsoft.SemanticKernel.KernelFunction * obj * System.Globalization.CultureInfo * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.FunctionResult
Public Sub New (function As KernelFunction, Optional value As Object = Nothing, Optional culture As CultureInfo = Nothing, Optional metadata As IReadOnlyDictionary(Of String, Object) = Nothing)

Parameters

function
KernelFunction

The KernelFunction whose result is represented by this instance.

value
Object

The resulting object of the function's invocation.

culture
CultureInfo

The culture configured on the Kernel that executed the function.

metadata
IReadOnlyDictionary<String,Object>

Metadata associated with the function's execution

Applies to