42 references to FunctionApprovalRequestContent
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
1570updatedContent[i] = new FunctionApprovalRequestContent(fcc.CallId, fcc); 1634message.Contents[contentIndex] = new FunctionApprovalRequestContent(functionCall.CallId, functionCall);
Microsoft.Extensions.AI.Abstractions.Tests (11)
Contents\AIContentTests.cs (1)
73new FunctionApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\FunctionApprovalRequestContentTests.cs (8)
18Assert.Throws<ArgumentNullException>("id", () => new FunctionApprovalRequestContent(null!, functionCall)); 19Assert.Throws<ArgumentException>("id", () => new FunctionApprovalRequestContent("", functionCall)); 20Assert.Throws<ArgumentException>("id", () => new FunctionApprovalRequestContent("\r\t\n ", functionCall)); 22Assert.Throws<ArgumentNullException>("functionCall", () => new FunctionApprovalRequestContent("id", null!)); 33FunctionApprovalRequestContent content = new(id, functionCall); 47FunctionApprovalRequestContent content = new(id, functionCall); 68FunctionApprovalRequestContent content = new(id, functionCall); 82var content = new FunctionApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } }));
Contents\UserInputRequestContentTests.cs (2)
36UserInputRequestContent content = new FunctionApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })); 44new FunctionApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Microsoft.Extensions.AI.Tests (29)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (29)
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 } })) 207new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 208new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 259new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 263new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 318new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 319new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 377new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 378new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 441new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 442new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 507new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 508new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })), 509new FunctionApprovalRequestContent("callId3", new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })) 599new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 657new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 658new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 685new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })) 711new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")), 712new FunctionApprovalRequestContent("callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 723new FunctionApprovalRequestContent("callId3", new FunctionCallContent("callId3", "Func1")), 837new FunctionApprovalRequestContent("callId1", new FunctionCallContent("callId1", "Func1")),