25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
38
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
186
:
new
()
362
:
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
()
1022
new
AIFunctionFactoryOptions
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
Functions\AIFunctionFactory.cs (38)
38
private static readonly
AIFunctionFactoryOptions
_defaultOptions = new();
63
/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
73
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
78
/// and are included in the generated JSON schema. This can be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
83
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> can choose to
89
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
101
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
102
/// Handling of return values can be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
107
public static AIFunction Create(Delegate method,
AIFunctionFactoryOptions
? options)
184
AIFunctionFactoryOptions
createOptions = serializerOptions is null && name is null && description is null
226
/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
236
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
241
/// and are included in the generated JSON schema. This can be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
246
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> can choose to
252
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
264
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
265
/// Handling of return values can be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
273
public static AIFunction Create(MethodInfo method, object? target,
AIFunctionFactoryOptions
? options)
360
AIFunctionFactoryOptions
createOptions = serializerOptions is null && name is null && description is null
388
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. Arguments that are not already of the expected type are
390
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>,
412
/// The handling of <see cref="IServiceProvider"/> parameters can be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
422
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
427
/// and are included in the generated JSON schema. This can be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
432
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> can choose to
438
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
450
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
451
/// Handling of return values can be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
463
AIFunctionFactoryOptions
? options = null) =>
501
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
529
AIFunctionFactoryOptions
options)
547
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
557
AIFunctionFactoryOptions
options)
640
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
664
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
709
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
788
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1066
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();
1021
private static
AIFunctionFactoryOptions
CreateKeyedServicesSupportOptions() =>