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)
70Assert.Throws<ArgumentException>(() => new HostedMcpServerTool(string.Empty, new Uri("https://localhost/"))); 71Assert.Throws<ArgumentNullException>(() => new HostedMcpServerTool(null!, new Uri("https://localhost/"))); 72Assert.Throws<ArgumentNullException>(() => new HostedMcpServerTool("name", (Uri)null!));