Share via


AIFunctionFactory.Create Method

Definition

Overloads

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

Create(Delegate, AIFunctionFactoryCreateOptions)

public:
 static Microsoft::Extensions::AI::AIFunction ^ Create(Delegate ^ method, Microsoft::Extensions::AI::AIFunctionFactoryCreateOptions ^ options);
public static Microsoft.Extensions.AI.AIFunction Create (Delegate method, Microsoft.Extensions.AI.AIFunctionFactoryCreateOptions? options);
static member Create : Delegate * Microsoft.Extensions.AI.AIFunctionFactoryCreateOptions -> Microsoft.Extensions.AI.AIFunction
Public Shared Function Create (method As Delegate, options As AIFunctionFactoryCreateOptions) As AIFunction

Parameters

method
Delegate

Returns

Applies to

Create(MethodInfo, Object, AIFunctionFactoryCreateOptions)

public:
 static Microsoft::Extensions::AI::AIFunction ^ Create(System::Reflection::MethodInfo ^ method, System::Object ^ target, Microsoft::Extensions::AI::AIFunctionFactoryCreateOptions ^ options);
public static Microsoft.Extensions.AI.AIFunction Create (System.Reflection.MethodInfo method, object? target, Microsoft.Extensions.AI.AIFunctionFactoryCreateOptions? options);
static member Create : System.Reflection.MethodInfo * obj * Microsoft.Extensions.AI.AIFunctionFactoryCreateOptions -> Microsoft.Extensions.AI.AIFunction
Public Shared Function Create (method As MethodInfo, target As Object, options As AIFunctionFactoryCreateOptions) As AIFunction

Parameters

method
MethodInfo
target
Object

Returns

Applies to

Create(Delegate, String, String, JsonSerializerOptions)

public static Microsoft.Extensions.AI.AIFunction Create (Delegate method, string? name = default, string? description = default, System.Text.Json.JsonSerializerOptions? serializerOptions = default);
static member Create : Delegate * string * string * System.Text.Json.JsonSerializerOptions -> Microsoft.Extensions.AI.AIFunction
Public Shared Function Create (method As Delegate, Optional name As String = Nothing, Optional description As String = Nothing, Optional serializerOptions As JsonSerializerOptions = Nothing) As AIFunction

Parameters

method
Delegate
name
String
description
String
serializerOptions
JsonSerializerOptions

Returns

Applies to

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

public static Microsoft.Extensions.AI.AIFunction Create (System.Reflection.MethodInfo method, object? target, string? name = default, string? description = default, System.Text.Json.JsonSerializerOptions? serializerOptions = default);
static member Create : System.Reflection.MethodInfo * obj * string * string * System.Text.Json.JsonSerializerOptions -> Microsoft.Extensions.AI.AIFunction
Public Shared Function Create (method As MethodInfo, target As Object, Optional name As String = Nothing, Optional description As String = Nothing, Optional serializerOptions As JsonSerializerOptions = Nothing) As AIFunction

Parameters

method
MethodInfo
target
Object
name
String
description
String
serializerOptions
JsonSerializerOptions

Returns

Applies to