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