次の方法で共有


FunctionInvokedEventArgs Class

Definition

Caution

Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.

Provides a CancelKernelEventArgs used in events just after a function is invoked.

[System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")]
public sealed class FunctionInvokedEventArgs : Microsoft.SemanticKernel.CancelKernelEventArgs
[<System.Obsolete("Events are deprecated in favor of filters. Example in dotnet/samples/GettingStarted/Step7_Observability.cs of Semantic Kernel repository.")>]
type FunctionInvokedEventArgs = class
    inherit CancelKernelEventArgs
Public NotInheritable Class FunctionInvokedEventArgs
Inherits CancelKernelEventArgs
Inheritance
Attributes

Constructors

FunctionInvokedEventArgs(KernelFunction, KernelArguments, FunctionResult)

Initializes a new instance of the FunctionInvokedEventArgs class.

Properties

Arguments

Gets the arguments associated with the operation.

(Inherited from KernelEventArgs)
Cancel

Gets or sets a value indicating whether the operation associated with the event should be canceled.

(Inherited from CancelKernelEventArgs)
Function

Gets the KernelFunction with which this event is associated.

(Inherited from KernelEventArgs)
Metadata

Gets a dictionary of metadata related to the event.

(Inherited from KernelEventArgs)
Result

Gets the result of the function's invocation.

Methods

SetResultValue(Object)

Sets an object to use as the overridden new result for the function's invocation.

Applies to