38 references to new
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
38
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
181
:
new
()
349
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
348
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Integration.Tests (10)
ChatClientIntegrationTests.cs (10)
428
AIFunctionFactoryOptions aiFuncOptions =
new
()
1420
new
AIFunctionFactoryOptions
1428
new
AIFunctionFactoryOptions
1436
new
AIFunctionFactoryOptions
1504
new
AIFunctionFactoryOptions
1512
new
AIFunctionFactoryOptions
1565
new
AIFunctionFactoryOptions
1637
new
AIFunctionFactoryOptions
1645
new
AIFunctionFactoryOptions
1653
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientIntegrationTests.cs (2)
267
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
361
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
Microsoft.Extensions.AI.Tests (22)
Functions\AIFunctionFactoryTest.cs (22)
305
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
());
309
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
{ Name = "options_name" });
325
var options = new
AIFunctionFactoryOptions
350
AIFunctionFactoryOptions options =
new
();
366
new
()
390
new
()
491
new
() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) });
535
new
()
554
new
()
573
new
()
664
new
AIFunctionFactoryOptions
716
new
AIFunctionFactoryOptions
733
new
AIFunctionFactoryOptions
749
new
()
772
new
()
795
new
()
818
new
()
841
new
()
864
new
()
887
new
()
910
new
()
1161
new
AIFunctionFactoryOptions