23 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
41private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 189: new() 365: new()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
347new AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
174var options = new AIFunctionFactoryOptions 199AIFunctionFactoryOptions options = new(); 214new() 316new() 338new() 382new() 401new() 420new() 507new AIFunctionFactoryOptions 559new AIFunctionFactoryOptions 576new AIFunctionFactoryOptions 592new() 615new() 638new() 661new() 684new() 707new() 730new() 753new()
44 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (41)
Functions\AIFunctionFactory.cs (38)
41private static readonly AIFunctionFactoryOptions _defaultOptions = new(); 66/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 76/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 81/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 86/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 92/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 104/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 105/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 110public static AIFunction Create(Delegate method, AIFunctionFactoryOptions? options) 187AIFunctionFactoryOptions createOptions = serializerOptions is null && name is null && description is null 229/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 239/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 244/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 249/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 255/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 267/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 268/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 276public static AIFunction Create(MethodInfo method, object? target, AIFunctionFactoryOptions? options) 363AIFunctionFactoryOptions 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"/>. 468AIFunctionFactoryOptions? options = null) 478public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 506AIFunctionFactoryOptions options) 529private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 539AIFunctionFactoryOptions options) 626public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 650Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 695if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 769AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1023Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (3)
20/// Initializes a new instance of the <see cref="AIFunctionFactoryOptions"/> class. 110/// Gets or sets a delegate used with <see cref="AIFunctionFactory.Create(MethodInfo, Type, AIFunctionFactoryOptions?)"/> to create the receiver instance. 114/// <see cref="AIFunctionFactory.Create(MethodInfo, Type, AIFunctionFactoryOptions?)"/> creates <see cref="AIFunction"/> instances that invoke an
Microsoft.Extensions.AI.Tests (3)
Functions\AIFunctionFactoryTest.cs (3)
172Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions> getBindParameterMode = _ => default; 174var options = new AIFunctionFactoryOptions 199AIFunctionFactoryOptions options = new();