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)
360new AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
180var options = new AIFunctionFactoryOptions 205AIFunctionFactoryOptions options = new(); 220new() 330new() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) }); 374new() 393new() 412new() 503new AIFunctionFactoryOptions 555new AIFunctionFactoryOptions 572new AIFunctionFactoryOptions 588new() 611new() 634new() 657new() 680new() 703new() 726new() 749new() 856new AIFunctionFactoryOptions
43 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
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 391/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 393/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 415/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 425/// <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/>. 430/// and are included in the generated JSON schema. This may be overridden by the <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> provided 435/// binding ignores this collection, but a custom binding supplied via <see cref="AIFunctionFactoryOptions.ConfigureParameterBinding"/> may choose to 441/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, 453/// <see cref="AIFunctionFactoryOptions.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>. 454/// Handling of return values may be overridden via <see cref="AIFunctionFactoryOptions.MarshalResult"/>. 466AIFunctionFactoryOptions? options = null) => 471public static ReflectionAIFunction Build(MethodInfo method, object? target, AIFunctionFactoryOptions options) 499AIFunctionFactoryOptions options) 517private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target, AIFunctionFactoryOptions options) 527AIFunctionFactoryOptions options) 610public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method, AIFunctionFactoryOptions options) 634Dictionary<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? boundParameters = null; 679if (boundParameters?.TryGetValue(parameters[i], out AIFunctionFactoryOptions.ParameterBindingOptions options) is not true) 758AIFunctionFactoryOptions.ParameterBindingOptions bindingOptions, 1019Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (1)
20/// Initializes a new instance of the <see cref="AIFunctionFactoryOptions"/> class.
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
178Func<ParameterInfo, AIFunctionFactoryOptions.ParameterBindingOptions> getBindParameterMode = _ => default; 180var options = new AIFunctionFactoryOptions 205AIFunctionFactoryOptions options = new(); 855private static AIFunctionFactoryOptions CreateKeyedServicesSupportOptions() =>