4 references to HostedMcpServerTool
Microsoft.Extensions.AI.Abstractions (1)
Tools\HostedMcpServerTool.cs (1)
25
:
this
(serverName, new Uri(Throw.IfNull(url)))
Microsoft.Extensions.AI.Abstractions.Tests (3)
Tools\HostedMcpServerToolTests.cs (3)
70
Assert.Throws<ArgumentException>(() => new
HostedMcpServerTool
(string.Empty, new Uri("https://localhost/")));
71
Assert.Throws<ArgumentNullException>(() => new
HostedMcpServerTool
(null!, new Uri("https://localhost/")));
72
Assert.Throws<ArgumentNullException>(() => new
HostedMcpServerTool
("name", (Uri)null!));