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)
360
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Tests (19)
Functions\AIFunctionFactoryTest.cs (19)
180
var options = new
AIFunctionFactoryOptions
205
AIFunctionFactoryOptions options =
new
();
220
new
()
330
new
() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) });
374
new
()
393
new
()
412
new
()
503
new
AIFunctionFactoryOptions
555
new
AIFunctionFactoryOptions
572
new
AIFunctionFactoryOptions
588
new
()
611
new
()
634
new
()
657
new
()
680
new
()
703
new
()
726
new
()
749
new
()
856
new
AIFunctionFactoryOptions
43 references to AIFunctionFactoryOptions
Microsoft.Extensions.AI.Abstractions (39)
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
391
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. Arguments that are not already of the expected type are
393
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>,
415
/// The handling of <see cref="IServiceProvider"/> parameters may be overridden via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
425
/// <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/>.
430
/// and are included in the generated JSON schema. This may be overridden by the <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> provided
435
/// binding ignores this collection, but a custom binding supplied via <see cref="
AIFunctionFactoryOptions
.ConfigureParameterBinding"/> may choose to
441
/// or <see cref="JsonNode"/>, it is deserialized into the parameter type, utilizing <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided,
453
/// <see cref="
AIFunctionFactoryOptions
.SerializerOptions"/> if provided, or else using <see cref="AIJsonUtilities.DefaultOptions"/>.
454
/// Handling of return values may be overridden via <see cref="
AIFunctionFactoryOptions
.MarshalResult"/>.
466
AIFunctionFactoryOptions
? options = null) =>
471
public static ReflectionAIFunction Build(MethodInfo method, object? target,
AIFunctionFactoryOptions
options)
499
AIFunctionFactoryOptions
options)
517
private ReflectionAIFunction(ReflectionAIFunctionDescriptor functionDescriptor, object? target,
AIFunctionFactoryOptions
options)
527
AIFunctionFactoryOptions
options)
610
public static ReflectionAIFunctionDescriptor GetOrCreate(MethodInfo method,
AIFunctionFactoryOptions
options)
634
Dictionary<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? boundParameters = null;
679
if (boundParameters?.TryGetValue(parameters[i], out
AIFunctionFactoryOptions
.ParameterBindingOptions options) is not true)
758
AIFunctionFactoryOptions
.ParameterBindingOptions bindingOptions,
1019
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions>? GetBindParameterOptions,
Functions\AIFunctionFactoryOptions.cs (1)
20
/// Initializes a new instance of the <see cref="
AIFunctionFactoryOptions
"/> class.
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
178
Func<ParameterInfo,
AIFunctionFactoryOptions
.ParameterBindingOptions> getBindParameterMode = _ => default;
180
var
options = new AIFunctionFactoryOptions
205
AIFunctionFactoryOptions
options = new();
855
private static
AIFunctionFactoryOptions
CreateKeyedServicesSupportOptions() =>