29 instantiations of FunctionApprovalRequestContent
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\FunctionApprovalRequestContentTests.cs (6)
16Assert.Throws<ArgumentNullException>("id", () => new FunctionApprovalRequestContent(null!, functionCall));
17Assert.Throws<ArgumentException>("id", () => new FunctionApprovalRequestContent("", functionCall));
18Assert.Throws<ArgumentException>("id", () => new FunctionApprovalRequestContent("\r\t\n ", functionCall));
20Assert.Throws<ArgumentNullException>("functionCall", () => new FunctionApprovalRequestContent("id", null!));
31FunctionApprovalRequestContent content = new(id, functionCall);
45FunctionApprovalRequestContent content = new(id, functionCall);
Microsoft.Extensions.AI.Tests (21)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (21)
48new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
49new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
84new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
85new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
128new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
129new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
155new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
156new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
206new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
210new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
265new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
266new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
324new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
325new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
388new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
389new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
416new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } }))
442new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
443new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }))
454new FunctionApprovalRequestContent("callId3", new FunctionCallContent("callId3", "Func1")),
505new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),
16 references to FunctionApprovalRequestContent
Microsoft.Extensions.AI (7)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Tests (6)