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