38 references to new
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
38
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
193
:
new
()
373
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
342
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Integration.Tests (10)
ChatClientIntegrationTests.cs (10)
428
AIFunctionFactoryOptions aiFuncOptions =
new
()
1419
new
AIFunctionFactoryOptions
1427
new
AIFunctionFactoryOptions
1435
new
AIFunctionFactoryOptions
1503
new
AIFunctionFactoryOptions
1511
new
AIFunctionFactoryOptions
1564
new
AIFunctionFactoryOptions
1636
new
AIFunctionFactoryOptions
1644
new
AIFunctionFactoryOptions
1652
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientIntegrationTests.cs (2)
262
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
356
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
Microsoft.Extensions.AI.Tests (22)
Functions\AIFunctionFactoryTest.cs (22)
304
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
());
308
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
{ Name = "options_name" });
324
var options = new
AIFunctionFactoryOptions
349
AIFunctionFactoryOptions options =
new
();
365
new
()
389
new
()
490
new
() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) });
534
new
()
553
new
()
572
new
()
663
new
AIFunctionFactoryOptions
715
new
AIFunctionFactoryOptions
732
new
AIFunctionFactoryOptions
748
new
()
771
new
()
794
new
()
817
new
()
840
new
()
863
new
()
886
new
()
909
new
()
1160
new
AIFunctionFactoryOptions