53 references to AIFunctionArguments
Microsoft.Extensions.AI.Abstractions (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.AIFunctionArguments.g.cs (1)
33
ObjectCreator = () => new global::Microsoft.Extensions.AI.
AIFunctionArguments
(),
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\FunctionCallContentTests.cs (1)
182
AIFunctionArguments arguments =
new
()
Functions\AIFunctionArgumentsTests.cs (2)
17
var args = new
AIFunctionArguments
();
53
var args = new
AIFunctionArguments
Generated\361d1da7f942c932\TestJsonSerializerContext.AIFunctionArguments.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.Extensions.AI.
AIFunctionArguments
(),
Microsoft.Extensions.AI.Tests (48)
Functions\AIFunctionFactoryTest.cs (48)
49
AssertExtensions.EqualFunctionCallResults("test test", await func.InvokeAsync(
new
() { ["a"] = "test" }));
52
AssertExtensions.EqualFunctionCallResults("hello world", await func.InvokeAsync(
new
() { ["b"] = "hello", ["a"] = "world" }));
55
AssertExtensions.EqualFunctionCallResults(3L, await func.InvokeAsync(
new
() { ["a"] = 1, ["b"] = 2L }));
63
AssertExtensions.EqualFunctionCallResults("hello hello", await func.InvokeAsync(
new
() { ["a"] = "hello" }));
82
AssertExtensions.EqualFunctionCallResults("hello", await funcNull.InvokeAsync(
new
() { ["text"] = "hello" }));
91
AssertExtensions.EqualFunctionCallResults("custom", await funcValue.InvokeAsync(
new
() { ["text"] = "custom" }));
100
AssertExtensions.EqualFunctionCallResults(10, await funcInt.InvokeAsync(
new
() { ["x"] = 5 }));
135
var result = await func.InvokeAsync(
new
()
165
var result = await func.InvokeAsync(
new
()
185
var result = await func.InvokeAsync(
new
()
219
AssertExtensions.EqualFunctionCallResults("test test", await func.InvokeAsync(
new
() { ["a"] = "test" }));
223
AssertExtensions.EqualFunctionCallResults("hello world", await func.InvokeAsync(
new
() { ["b"] = "hello", ["a"] = "world" }));
228
AssertExtensions.EqualFunctionCallResults(null, await func.InvokeAsync(
new
() { ["a"] = 1, ["b"] = 2L }));
234
AssertExtensions.EqualFunctionCallResults(null, await func.InvokeAsync(
new
() { ["a"] = 1, ["b"] = 2L }));
239
AssertExtensions.EqualFunctionCallResults(new int[] { 0, 1, 2, 3, 4 }, await func.InvokeAsync(
new
() { ["count"] = 5 }), JsonContext.Default.Options);
357
AssertExtensions.EqualFunctionCallResults("Name2", await func.InvokeAsync(
new
() { ["$select"] = "Name", ["top"] = 2 }));
393
AssertExtensions.EqualFunctionCallResults("Name", await func.InvokeAsync(
new
() { ["my_param"] = "Name" }));
397
await func.InvokeAsync(
new
() { ["myParam"] = "Name" }));
410
AssertExtensions.EqualFunctionCallResults("param='Name'", await func.InvokeAsync(
new
() { ["my_param"] = "Name" }));
545
var result = (JsonElement?)await func.InvokeAsync(
new
()
636
AIFunctionArguments arguments =
new
() { ["myInteger"] = 42 };
696
var result = await func.InvokeAsync(
new
() { ["myInteger"] = 42 });
724
var result = (Tuple<MyFunctionTypeWithOneArg, MyArgumentType>?)await func.InvokeAsync(
new
() { Services = sp });
835
Exception e = await Assert.ThrowsAsync<ArgumentException>("arguments.Services", () => f.InvokeAsync(
new
() { ["myInteger"] = 1 }).AsTask());
837
var result = await f.InvokeAsync(
new
() { ["myInteger"] = 1, Services = sp });
858
Exception e = await Assert.ThrowsAsync<ArgumentException>("arguments.Services", () => f.InvokeAsync(
new
() { ["myInteger"] = 1 }).AsTask());
860
var result = await f.InvokeAsync(
new
() { ["myInteger"] = 1, Services = sp });
880
var result = await f.InvokeAsync(
new
() { ["myInteger"] = 1 });
883
result = await f.InvokeAsync(
new
() { ["myInteger"] = 1, Services = sp });
917
Exception e = await Assert.ThrowsAsync<ArgumentException>(() => f.InvokeAsync(
new
() { ["myInteger"] = 1 }).AsTask());
920
e = await Assert.ThrowsAsync<ArgumentException>(() => f.InvokeAsync(
new
()
927
var result = await f.InvokeAsync(
new
()
951
var result = await f.InvokeAsync(
new
() { Services = sp1 });
958
AIFunctionArguments args1 =
new
() { ["a"] = 42 };
959
AIFunctionArguments args2 =
new
() { ["a"] = 43 };
991
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1014
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1037
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1060
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1083
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1106
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1129
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1153
object? result = await f.InvokeAsync(
new
() { ["i"] = 42 }, cts.Token);
1702
await func.InvokeAsync(
new
()
1711
object? result = await func.InvokeAsync(
new
()
1726
object? result = await func.InvokeAsync(
new
()
1783
await func.InvokeAsync(
new
() { ["phase"] = "completed" }));
1808
object? result = await func.InvokeAsync(
new
()