25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
42private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 190: new() 366: 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() 1002new AIFunctionFactoryOptions
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
Functions\AIFunctionFactory.cs (38)
42private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 67/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 77/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 82/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 87/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 93/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 105/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 106/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 111public static AIFunction Create(Delegate method, AIFunctionFactoryOptions? options) 188AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 230/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 240/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 245/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 250/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 256/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 268/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 269/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 277public static AIFunction Create(MethodInfo method, object? target, AIFunctionFactoryOptions? options) 364AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 392/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 394/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 416/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 426/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 431/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 436/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 442/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 454/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 455/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 467AIFunctionFactoryOptions? options = null) => 472public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 500AIFunctionFactoryOptions options) 518private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 528AIFunctionFactoryOptions options) 611public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 635Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 680if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 759AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1037Func<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(); 1001private static AIFunctionFactoryOptions CreateKeyedServicesSupportOptions() =>