23 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI (3)
Functions\AIFunctionFactory.cs (3)
36
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
201
:
new
()
394
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
349
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
173
var options = new
AIFunctionFactoryOptions
198
AIFunctionFactoryOptions options =
new
();
213
new
()
315
new
()
332
new
()
376
new
()
395
new
()
414
new
()
500
new
AIFunctionFactoryOptions
552
new
AIFunctionFactoryOptions
569
new
AIFunctionFactoryOptions
585
new
()
608
new
()
631
new
()
654
new
()
677
new
()
700
new
()
723
new
()
746
new
()
45 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI (42)
Functions\AIFunctionFactory.cs (41)
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"/>.
85
/// and are included in the generated JSON schema. This may be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
90
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> may choose to
96
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
108
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
109
/// Handling of return values may be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
114
public static AIFunction Create(Delegate method,
AIFunctionFactoryOptions
? options)
199
AIFunctionFactoryOptions
createOptions = serializerOptions is null && name is null && description is null
241
/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
251
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
260
/// The handling of such parameters may be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
265
/// and are included in the generated JSON schema. This may be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
270
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> may choose to
276
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
288
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
289
/// Handling of return values may be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
297
public static AIFunction Create(MethodInfo method, object? target,
AIFunctionFactoryOptions
? options)
392
AIFunctionFactoryOptions
createOptions = serializerOptions is null && name is null && description is null
422
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. Arguments that are not already of the expected type are
424
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>,
446
/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
456
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
465
/// The handling of such parameters may be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
470
/// and are included in the generated JSON schema. This may be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
475
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> may choose to
481
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
493
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
494
/// Handling of return values may be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
507
AIFunctionFactoryOptions
? options = null)
517
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
545
AIFunctionFactoryOptions
options)
568
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
578
AIFunctionFactoryOptions
options)
657
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
681
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
733
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
807
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1076
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)
171
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions> getBindParameterMode = _ => default;
173
var
options = new AIFunctionFactoryOptions
198
AIFunctionFactoryOptions
options = new();