Uh oh!
There was an error while loading. Please reload this page.
.NET Workflows - Update Declarative Integration Tests for File Cases - #2733
Conversation
There was a problem hiding this comment.
Pull request overview
This PR refines integration tests for declarative workflows by improving file input handling, separating agent definitions, and creating a dedicated vision agent for testing image and document processing capabilities.
Key Changes
- Created dedicated
VisionAgentProviderfor vision-based testing scenarios - Refactored tests to support both image and PDF file types with parameterized test cases
- Enhanced test validation with improved assertions and output logging
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| MediaInput.yaml | Simplified workflow configuration by removing inline instructions and referencing dedicated VisionAgent |
| MediaInputTest.cs | Refactored tests from [Fact] to [Theory] to support multiple file types (images and PDFs) with parameterized data |
| VisionAgentProvider.cs | Added new agent provider specifically for vision/document analysis with appropriate instructions |
| TestAgentProvider.cs | Updated agent description to be more generic ("Basic agent") to reflect its general-purpose nature |
| AgentProvider.cs | Extended factory to support creation of VisionAgent through new Names.Vision constant |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…tionTests/Agents/VisionAgentProvider.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ps://github.com/microsoft/agent-framework into crickman/workflow-integration-test-improvements
Uh oh!
There was an error while loading. Please reload this page.
…icrosoft#2733) * Updated * Update dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Agents/VisionAgentProvider.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Consistency --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Motivation and Context
Refine test-cases around file input for declarative workfows.
Description
Contribution Checklist