This commit is contained in:
Roger Barreto
2025-11-07 21:44:31 +00:00
Unverified
parent f5d6056074
commit 6e04c6bbbe
32 changed files with 120 additions and 518 deletions
@@ -191,25 +191,7 @@ public sealed class AgentsClientExtensionsTests
};
// Act
var agent = client.GetAIAgent(agentVersion, tools: tools, requireInvocableTools: true);
// Assert
Assert.NotNull(agent);
Assert.IsType<ChatClientAgent>(agent);
}
/// <summary>
/// Verify that GetAIAgent with requireInvocableTools=false allows declarative functions.
/// </summary>
[Fact]
public void GetAIAgent_WithAgentVersion_WithRequireInvocableToolsFalse_AllowsDeclarativeFunctions()
{
// Arrange
AgentsClient client = this.CreateTestAgentsClient();
AgentVersion agentVersion = this.CreateTestAgentVersion();
// Act - should not throw even without tools when requireInvocableTools is false
var agent = client.GetAIAgent(agentVersion, requireInvocableTools: false);
var agent = client.GetAIAgent(agentVersion, tools: tools);
// Assert
Assert.NotNull(agent);