25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI (3)
Functions\AIFunctionFactory.cs (3)
36private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 220: new() 432: new()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
347new AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (21)
Functions\AIFunctionFactoryTest.cs (21)
174var options = new AIFunctionFactoryOptions 199AIFunctionFactoryOptions options = new(); 214new() 338func = AIFunctionFactory.Create((MyService myService) => myService.Value, new() { Services = sp }); 345func = AIFunctionFactory.Create((MyService? myService = null) => myService?.Value ?? 456, new() { Services = sp }); 365new() 382new() 426new() 445new() 464new() 550new AIFunctionFactoryOptions 602new AIFunctionFactoryOptions 619new AIFunctionFactoryOptions 635new() 658new() 681new() 704new() 727new() 750new() 773new() 796new()
53 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI (50)
Functions\AIFunctionFactory.cs (49)
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"/>. 86/// <see cref="AIFunctionFactoryOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/> 90/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 95/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 100/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 106/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 118/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 119/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 124public static AIFunction Create(Delegate method, AIFunctionFactoryOptions? options) 184/// <see cref="AIFunctionFactoryOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/> 218AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 260/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 270/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 279/// The handling of such parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 285/// <see cref="AIFunctionFactoryOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/> 289/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 294/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 299/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 305/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 317/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 318/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 326public static AIFunction Create(MethodInfo method, object? target, AIFunctionFactoryOptions? options) 392/// <see cref="AIFunctionFactoryOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/> 430AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 460/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 462/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 484/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 494/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 503/// The handling of such parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 509/// <see cref="AIFunctionFactoryOptions.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/> 513/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 518/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 523/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 529/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 541/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 542/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 555AIFunctionFactoryOptions? options = null) 565public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 593AIFunctionFactoryOptions options) 616private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 626AIFunctionFactoryOptions options) 705public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 729Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 791if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 865AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1170Func<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)
172Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions> getBindParameterMode = _ => default; 174var options = new AIFunctionFactoryOptions 199AIFunctionFactoryOptions options = new();