Update M.E.AI and MCP versions (#992)

But not yet M.E.AI.OpenAI, which depends on the latest OpenAI, which conflicts with the latest Azure.AI.OpenAI.
This commit is contained in:
Stephen Toub
2025-09-30 07:17:59 +00:00
committed by GitHub
parent b8df0cd03f
commit fc4fce7973
13 changed files with 25 additions and 786 deletions
@@ -118,39 +118,6 @@ public sealed class PersistentAgentsClientExtensionsTests
Assert.Equal("persistentAgentsClient", exception.ParamName);
}
/// <summary>
/// Verify that AsNewIChatClient throws ArgumentNullException when client is null.
/// </summary>
[Fact]
public void AsNewIChatClient_WithNullClient_ThrowsArgumentNullException()
{
// Act & Assert
var exception = Assert.Throws<ArgumentNullException>(() =>
((PersistentAgentsClient)null!).AsNewIChatClient("test-agent"));
Assert.Equal("client", exception.ParamName);
}
/// <summary>
/// Verify that AsNewIChatClient throws ArgumentException when assistantId is null or empty.
/// </summary>
[Fact]
public void AsNewIChatClient_WithNullOrEmptyAssistantId_ThrowsArgumentException()
{
// Arrange
var mockClient = new Mock<PersistentAgentsClient>();
// Act & Assert - null assistantId throws ArgumentNullException
var exception1 = Assert.Throws<ArgumentNullException>(() =>
mockClient.Object.AsNewIChatClient(null!));
Assert.Equal("assistantId", exception1.ParamName);
// Act & Assert - empty assistantId throws ArgumentException
var exception2 = Assert.Throws<ArgumentException>(() =>
mockClient.Object.AsNewIChatClient(""));
Assert.Equal("assistantId", exception2.ParamName);
}
/// <summary>
/// Verify that GetAIAgent with clientFactory parameter correctly applies the factory.
/// </summary>