36 instantiations of McpServerToolCallContent
Microsoft.Extensions.AI.Abstractions.Tests (15)
Contents\AIContentTests.cs (3)
79new McpServerToolCallContent("call123", "myTool", "myServer"),
81new ToolApprovalRequestContent("request123", new McpServerToolCallContent("call123", "myTool", "myServer")),
82new ToolApprovalResponseContent("request123", approved: true, new McpServerToolCallContent("call456", "myTool2", "myServer2")),
Contents\McpServerToolCallContentTests.cs (7)
16McpServerToolCallContent c = new("callId1", "toolName", null);
30McpServerToolCallContent c = new("callId1", "toolName", "serverName");
55Assert.Throws<ArgumentException>("callId", () => new McpServerToolCallContent(string.Empty, "name", null));
56Assert.Throws<ArgumentException>("name", () => new McpServerToolCallContent("callId1", string.Empty, null));
58Assert.Throws<ArgumentNullException>("callId", () => new McpServerToolCallContent(null!, "name", null));
59Assert.Throws<ArgumentNullException>("name", () => new McpServerToolCallContent("callId1", null!, null));
65var content = new McpServerToolCallContent("call123", "myTool", "myServer")
Microsoft.Extensions.AI.OpenAI (6)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (14)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (11)
1801new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1810new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1840new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1845new ToolApprovalResponseContent("callId2", true, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1854new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1866new ToolApprovalResponseContent("callId2", true, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1924new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1929new ToolApprovalResponseContent("callId2", approveMcpCall, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1937new ToolApprovalRequestContent("callId2", new McpServerToolCallContent("callId2", "McpCall", "myServer"))
1951new ToolApprovalResponseContent("callId2", approveMcpCall, new McpServerToolCallContent("callId2", "McpCall", "myServer"))
2151McpServerToolCallContent mstcc => new McpServerToolCallContent(mstcc.CallId, mstcc.Name, mstcc.ServerName)
62 references to McpServerToolCallContent
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (11)
Microsoft.Extensions.AI.OpenAI (7)
Microsoft.Extensions.AI.OpenAI.Tests (33)
Microsoft.Extensions.AI.Tests (4)