AIFunctionFactory Class

Definition

Provides factory methods for creating commonly-used implementations of AIFunction.

public ref class AIFunctionFactory abstract sealed
public static class AIFunctionFactory
type AIFunctionFactory = class
Public Class AIFunctionFactory
Inheritance
AIFunctionFactory

Methods

Create(Delegate, AIFunctionFactoryOptions)

Creates an AIFunction instance for a method, specified via a delegate.

Create(Delegate, String, String, JsonSerializerOptions)

Creates an AIFunction instance for a method, specified via a delegate.

Create(MethodInfo, Func<AIFunctionArguments,Object>, AIFunctionFactoryOptions)

Creates an AIFunction instance for a method, specified via a MethodInfo for an instance method and a Func<T,TResult> for constructing an instance of the receiver object each time the AIFunction is invoked.

Create(MethodInfo, Object, AIFunctionFactoryOptions)

Creates an AIFunction instance for a method, specified via an MethodInfo instance and an optional target object if the method is an instance method.

Create(MethodInfo, Object, String, String, JsonSerializerOptions)

Creates an AIFunction instance for a method, specified via an MethodInfo instance and an optional target object if the method is an instance method.

Applies to

See also