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