23 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI (3)
Functions\AIFunctionFactory.cs (3)
36private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 201: new() 394: new()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
349new AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
173var options = new AIFunctionFactoryOptions 198AIFunctionFactoryOptions options = new(); 213new() 315new() 332new() 376new() 395new() 414new() 500new AIFunctionFactoryOptions 552new AIFunctionFactoryOptions 569new AIFunctionFactoryOptions 585new() 608new() 631new() 654new() 677new() 700new() 723new() 746new()
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI (42)
Functions\AIFunctionFactory.cs (41)
36private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 61/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 71/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 80/// The handling of such parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 85/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 90/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 96/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 108/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 109/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 114public static AIFunction Create(Delegate method, AIFunctionFactoryOptions? options) 199AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 241/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 251/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 260/// The handling of such parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 265/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 270/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 276/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 288/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 289/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 297public static AIFunction Create(MethodInfo method, object? target, AIFunctionFactoryOptions? options) 392AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 422/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 424/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 446/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 456/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 465/// The handling of such parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 470/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 475/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 481/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 493/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 494/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 507AIFunctionFactoryOptions? options = null) 517public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 545AIFunctionFactoryOptions options) 568private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 578AIFunctionFactoryOptions options) 657public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 681Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 733if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 807AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1076Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (1)
20/// Initializes a new instance of the <see cref="AIFunctionFactoryOptions"/> class.
Microsoft.Extensions.AI.Tests (3)
Functions\AIFunctionFactoryTest.cs (3)
171Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions> getBindParameterMode = _ => default; 173var options = new AIFunctionFactoryOptions 198AIFunctionFactoryOptions options = new();