23 instantiations of AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
41
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
189
:
new
()
365
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
347
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
174
var options = new
AIFunctionFactoryOptions
199
AIFunctionFactoryOptions options =
new
();
214
new
()
316
new
()
338
new
()
382
new
()
401
new
()
420
new
()
507
new
AIFunctionFactoryOptions
559
new
AIFunctionFactoryOptions
576
new
AIFunctionFactoryOptions
592
new
()
615
new
()
638
new
()
661
new
()
684
new
()
707
new
()
730
new
()
753
new
()
44 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (41)
Functions\AIFunctionFactory.cs (38)
41
private 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"/>.
110
public static AIFunction Create(Delegate method,
AIFunctionFactoryOptions
? options)
187
AIFunctionFactoryOptions
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"/>.
276
public static AIFunction Create(MethodInfo method, object? target,
AIFunctionFactoryOptions
? options)
363
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"/>.
468
AIFunctionFactoryOptions
? options = null)
478
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
506
AIFunctionFactoryOptions
options)
529
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
539
AIFunctionFactoryOptions
options)
626
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
650
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
695
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
769
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1023
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (3)
20
/// Initializes a new instance of the <see cref="
AIFunctionFactoryOptions
"/> class.
110
/// Gets or sets a delegate used with <see cref="AIFunctionFactory.Create(MethodInfo, Type,
AIFunctionFactoryOptions
?)"/> to create the receiver instance.
114
/// <see cref="AIFunctionFactory.Create(MethodInfo, Type,
AIFunctionFactoryOptions
?)"/> creates <see cref="AIFunction"/> instances that invoke an
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();