25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
42
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
190
:
new
()
366
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
342
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
419
AIFunctionFactoryOptions aiFuncOptions =
new
()
Microsoft.Extensions.AI.Tests (20)
Functions\AIFunctionFactoryTest.cs (20)
245
var options = new
AIFunctionFactoryOptions
270
AIFunctionFactoryOptions options =
new
();
286
new
()
310
new
()
411
new
() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) });
455
new
()
474
new
()
493
new
()
584
new
AIFunctionFactoryOptions
636
new
AIFunctionFactoryOptions
653
new
AIFunctionFactoryOptions
669
new
()
692
new
()
715
new
()
738
new
()
761
new
()
784
new
()
807
new
()
830
new
()
1002
new
AIFunctionFactoryOptions
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
Functions\AIFunctionFactory.cs (38)
42
private 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"/>.
111
public static AIFunction Create(Delegate method,
AIFunctionFactoryOptions
? options)
188
AIFunctionFactoryOptions
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"/>.
277
public static AIFunction Create(MethodInfo method, object? target,
AIFunctionFactoryOptions
? options)
364
AIFunctionFactoryOptions
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"/>.
467
AIFunctionFactoryOptions
? options = null) =>
472
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
500
AIFunctionFactoryOptions
options)
518
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
528
AIFunctionFactoryOptions
options)
611
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
635
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
680
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
759
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1037
Func<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)
417
Func<
AIFunctionFactoryOptions
> createOptions = () =>
419
AIFunctionFactoryOptions
aiFuncOptions = new()
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
243
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions> getBindParameterMode = _ => default;
245
var
options = new AIFunctionFactoryOptions
270
AIFunctionFactoryOptions
options = new();
1001
private static
AIFunctionFactoryOptions
CreateKeyedServicesSupportOptions() =>