25 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI (3)
Functions\AIFunctionFactory.cs (3)
36
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
220
:
new
()
432
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
347
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (21)
Functions\AIFunctionFactoryTest.cs (21)
174
var options = new
AIFunctionFactoryOptions
199
AIFunctionFactoryOptions options =
new
();
214
new
()
338
func = AIFunctionFactory.Create((MyService myService) => myService.Value,
new
() { Services = sp });
345
func = AIFunctionFactory.Create((MyService? myService = null) => myService?.Value ?? 456,
new
() { Services = sp });
365
new
()
382
new
()
426
new
()
445
new
()
464
new
()
550
new
AIFunctionFactoryOptions
602
new
AIFunctionFactoryOptions
619
new
AIFunctionFactoryOptions
635
new
()
658
new
()
681
new
()
704
new
()
727
new
()
750
new
()
773
new
()
796
new
()
53 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI (50)
Functions\AIFunctionFactory.cs (49)
36
private 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"/>.
124
public static AIFunction Create(Delegate method,
AIFunctionFactoryOptions
? options)
184
/// <see cref="
AIFunctionFactoryOptions
.Services"/>. Any parameter that can be satisfied by that <see cref="IServiceProvider"/>
218
AIFunctionFactoryOptions
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"/>.
326
public 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"/>
430
AIFunctionFactoryOptions
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"/>.
555
AIFunctionFactoryOptions
? options = null)
565
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
593
AIFunctionFactoryOptions
options)
616
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
626
AIFunctionFactoryOptions
options)
705
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
729
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
791
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
865
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1170
Func<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)
172
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions> getBindParameterMode = _ => default;
174
var
options = new AIFunctionFactoryOptions
199
AIFunctionFactoryOptions
options = new();