25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
38private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 186: new() 362: new()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
342new AIFunctionFactoryOptions
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
419AIFunctionFactoryOptions aiFuncOptions = new()
Microsoft.Extensions.AI.Tests (20)
Functions\AIFunctionFactoryTest.cs (20)
245var options = new AIFunctionFactoryOptions 270AIFunctionFactoryOptions options = new(); 286new() 310new() 411new() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) }); 455new() 474new() 493new() 584new AIFunctionFactoryOptions 636new AIFunctionFactoryOptions 653new AIFunctionFactoryOptions 669new() 692new() 715new() 738new() 761new() 784new() 807new() 830new() 1022new AIFunctionFactoryOptions
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
Functions\AIFunctionFactory.cs (38)
38private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 63/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 73/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 78/// and are included in the generated JSON schema. This can be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 83/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> can choose to 89/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 101/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 102/// Handling of return values can be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 107public static AIFunction Create(Delegate method, AIFunctionFactoryOptions? options) 184AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 226/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 236/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 241/// and are included in the generated JSON schema. This can be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 246/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> can choose to 252/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 264/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 265/// Handling of return values can be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 273public static AIFunction Create(MethodInfo method, object? target, AIFunctionFactoryOptions? options) 360AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 388/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 390/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 412/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 422/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 427/// and are included in the generated JSON schema. This can be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 432/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> can choose to 438/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 450/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 451/// Handling of return values can be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 463AIFunctionFactoryOptions? options = null) => 501public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 529AIFunctionFactoryOptions options) 547private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 557AIFunctionFactoryOptions options) 640public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 664Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 709if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 788AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1066Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (1)
20/// Initializes a new instance of the <see cref="AIFunctionFactoryOptions"/> class.
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (2)
417Func<AIFunctionFactoryOptions> createOptions = () => 419AIFunctionFactoryOptions aiFuncOptions = new()
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
243Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions> getBindParameterMode = _ => default; 245var options = new AIFunctionFactoryOptions 270AIFunctionFactoryOptions options = new(); 1021private static AIFunctionFactoryOptions CreateKeyedServicesSupportOptions() =>