Share via


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, 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.

Create(MethodInfo, Type, AIFunctionFactoryOptions)

Creates an AIFunction instance for a method, specified via an MethodInfo for and instance method, along with a Type representing the type of the target object to instantiate each time the method is invoked.

Applies to

See also