-
Notifications
You must be signed in to change notification settings - Fork 939
.NET: Add integration tests for covering Tools and Sample scenarios for providers. #2881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rogerbarreto
wants to merge
9
commits into
microsoft:main
Choose a base branch
from
rogerbarreto:issues/713-add-it-samples-tools
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
.NET: Add integration tests for covering Tools and Sample scenarios for providers. #2881
rogerbarreto
wants to merge
9
commits into
microsoft:main
from
rogerbarreto:issues/713-add-it-samples-tools
+540
−1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crickman
approved these changes
Dec 15, 2025
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive integration tests for Tools and Sample scenarios across multiple AI providers, specifically focusing on image content handling and hosted tools functionality.
Key Changes
- Adds new
RunWithImageContentWorksAsynctest to conformance test base classes for validating vision/image analysis capabilities - Implements hosted tools integration tests (Code Interpreter, File Search, Web Search, MCP) for AzureAI and AzureAIAgentsPersistent providers
- Adds shared test asset (walkway.jpg) with proper MSBuild configuration for distribution to test projects
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunTests.cs | Added base conformance test for image content handling (non-streaming) |
| dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunStreamingTests.cs | Added base conformance test for image content handling (streaming) |
| dotnet/tests/OpenAIChatCompletion.IntegrationTests/OpenAIChatCompletionChatClientAgentRunTests.cs | Skips image content test for reasoning models which don't support images |
| dotnet/tests/OpenAIChatCompletion.IntegrationTests/OpenAIChatCompletionChatClientAgentRunStreamingTests.cs | Skips image content test for reasoning models (streaming version) |
| dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentRunTests.cs | Implements provider-specific image content test |
| dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentHostedToolsTests.cs | New file with comprehensive hosted tools tests (Code Interpreter, File Search, MCP, Web Search) |
| dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentFixture.cs | Adds helper methods for creating agents with tool definitions and web search tool configuration |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientFixture.cs | Adds GetWebSearchTool helper method for test configuration |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientChatClientAgentRunTests.cs | Overrides image content test with server error handling for known 500 errors |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientChatClientAgentRunStreamingTests.cs | Overrides image content test with server error handling (streaming version) |
| dotnet/tests/AzureAI.IntegrationTests/AIProjectClientAgentHostedToolsTests.cs | New file with comprehensive hosted tools tests mirroring AzureAIAgentsPersistent structure |
| dotnet/tests/AnthropicChatCompletion.IntegrationTests/AnthropicChatCompletionChatClientAgentRunTests.cs | Skips image content test for Anthropic provider |
| dotnet/tests/AnthropicChatCompletion.IntegrationTests/AnthropicChatCompletionChatClientAgentRunStreamingTests.cs | Skips image content test for Anthropic provider (streaming version) |
| dotnet/src/Shared/IntegrationTests/Assets/walkway.jpg | Binary image asset for vision/image analysis testing |
| dotnet/eng/MSBuild/Shared.props | Configures shared assets to be copied to test output directories |
| dotnet/samples/AGUIClientServer/AGUIDojoServer/ChatClientAgentFactory.cs | Removes unused OpenAI using statement |
dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentRunTests.cs
Show resolved
Hide resolved
dotnet/tests/AzureAIAgentsPersistent.IntegrationTests/AzureAIAgentsPersistentRunTests.cs
Show resolved
Hide resolved
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunTests.cs
Show resolved
Hide resolved
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunStreamingTests.cs
Show resolved
Hide resolved
dotnet/tests/AzureAI.IntegrationTests/AIProjectClientAgentHostedToolsTests.cs
Show resolved
Hide resolved
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunTests.cs
Show resolved
Hide resolved
...icChatCompletion.IntegrationTests/AnthropicChatCompletionChatClientAgentRunStreamingTests.cs
Show resolved
Hide resolved
dotnet/tests/AgentConformance.IntegrationTests/ChatClientAgentRunStreamingTests.cs
Show resolved
Hide resolved
peibekwe
approved these changes
Dec 16, 2025
dmytrostruk
approved these changes
Dec 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context