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)
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)
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