11 references to new
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\McpServerToolCallContentTests.cs (8)
15
McpServerToolCallContent c =
new
("callId1", "toolName", "serverName");
30
McpServerToolCallContent c =
new
("callId1", "toolName", "serverName");
55
Assert.Throws<ArgumentException>("callId", () => new
McpServerToolCallContent
(string.Empty, "name", "serverName"));
56
Assert.Throws<ArgumentException>("toolName", () => new
McpServerToolCallContent
("callId1", string.Empty, "serverName"));
57
Assert.Throws<ArgumentException>("serverName", () => new
McpServerToolCallContent
("callId1", "name", string.Empty));
59
Assert.Throws<ArgumentNullException>("callId", () => new
McpServerToolCallContent
(null!, "name", "serverName"));
60
Assert.Throws<ArgumentNullException>("toolName", () => new
McpServerToolCallContent
("callId1", null!, "serverName"));
61
Assert.Throws<ArgumentNullException>("serverName", () => new
McpServerToolCallContent
("callId1", "name", null!));
Microsoft.Extensions.AI.OpenAI (3)
OpenAIResponsesChatClient.cs (3)
167
message.Contents.Add(new McpServerToolApprovalRequestContent(mtcari.Id,
new
(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
291
yield return CreateUpdate(new McpServerToolApprovalRequestContent(mtcari.Id,
new
(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
848
contents.Add(new
McpServerToolCallContent
(mtci.Id, mtci.ToolName, mtci.ServerLabel)