54 references to Create
Microsoft.Extensions.AI.Abstractions.Tests (5)
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
Microsoft.Extensions.AI.Integration.Tests (7)
Microsoft.Extensions.AI.Ollama.Tests (5)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (33)
ChatCompletion\FunctionInvokingChatClientTests.cs (16)
34AIFunctionFactory.Create(() => "Result 1", "Func1"),
35AIFunctionFactory.Create((int i) => $"Result 2: {i}", "Func2"),
36AIFunctionFactory.Create((int i) => { }, "VoidReturn"),
60AIFunctionFactory.Create((int i) => "Result 1", "Func1"),
61AIFunctionFactory.Create((int i) => $"Result 2: {i}", "Func2"),
94AIFunctionFactory.Create((string arg) =>
124AIFunctionFactory.Create(async (string arg) =>
158AIFunctionFactory.Create(() => "Result 1", "Func1"),
159AIFunctionFactory.Create((int i) => $"Result 2: {i}", "Func2"),
160AIFunctionFactory.Create((int i) => { }, "VoidReturn"),
206AIFunctionFactory.Create(() => "Result 1", "Func1"),
207AIFunctionFactory.Create((int i) => $"Result 2: {i}", "Func2"),
208AIFunctionFactory.Create((int i) => { }, "VoidReturn"),
255AIFunctionFactory.Create(string () => throw new InvalidOperationException("Oh no!"), "Func1"),
270var func1 = AIFunctionFactory.Create(() => "Some result 1", "Func1");
271var func2 = AIFunctionFactory.Create(() => "Some result 2", "Func2");