38 references to new
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunctionFactory.cs (3)
52
private static readonly AIFunctionFactoryOptions _defaultOptions =
new
();
208
:
new
()
390
:
new
()
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
348
new
AIFunctionFactoryOptions
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
418
AIFunctionFactoryOptions aiFuncOptions =
new
()
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientIntegrationTests.cs (2)
391
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
485
Tools = [AIFunctionFactory.Create(() => { callCount++; return "5:43"; }, new
AIFunctionFactoryOptions
{ Name = "GetCurrentTime" })]
Microsoft.Extensions.AI.Tests (31)
Functions\AIFunctionFactoryTest.cs (31)
308
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
());
312
func = AIFunctionFactory.Create(funcWithDisplayName, new
AIFunctionFactoryOptions
{ Name = "options_name" });
335
func = AIFunctionFactory.Create(funcWithAttribute, new
AIFunctionFactoryOptions
{ Name = "options_name" });
390
new
AIFunctionFactoryOptions
{ SerializerOptions = strictOptions });
420
new
AIFunctionFactoryOptions
{ SerializerOptions = options });
450
var options = new
AIFunctionFactoryOptions
494
var options = new
AIFunctionFactoryOptions
519
AIFunctionFactoryOptions options =
new
();
535
new
()
566
AIFunctionFactoryOptions options =
new
()
620
new
()
721
new
() { MarshalResult = (result, type, cancellationToken) => new ValueTask<object?>(result) });
765
new
()
784
new
()
803
new
()
894
new
AIFunctionFactoryOptions
946
new
AIFunctionFactoryOptions
963
new
AIFunctionFactoryOptions
979
new
()
1002
new
()
1025
new
()
1048
new
()
1071
new
()
1094
new
()
1117
new
()
1140
new
()
1391
new
AIFunctionFactoryOptions
1698
new
AIFunctionFactoryOptions
{ SerializerOptions = strictOptions });
1744
new
AIFunctionFactoryOptions
{ SerializerOptions = strictOptions });
1776
new
AIFunctionFactoryOptions
{ SerializerOptions = strictOptions });
1799
new
AIFunctionFactoryOptions