Python: Move workflow-samples and agent-samples under declarative-agents directory - #5011
Merged
Shawn Henry (sphenry) merged 3 commits intoApr 2, 2026
Merged
Conversation
…update all references Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com>
Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Shawn Henry (sphenry)
March 31, 2026 21:33
View session
Ben Thomas (alliscode)
approved these changes
Mar 31, 2026
Eduard van Valkenburg (eavanvalkenburg)
approved these changes
Apr 1, 2026
Shawn Henry (sphenry)
marked this pull request as ready for review
April 2, 2026 03:49
Shawn Henry (sphenry)
enabled auto-merge
April 2, 2026 03:50
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates the repo-root declarative YAML assets by moving workflow-samples/ and agent-samples/ under a new top-level declarative-agents/ directory, and updates hardcoded references across Python, .NET, and CI to match.
Changes:
- Move sample YAML directories under
declarative-agents/at the repo root. - Update path references in .NET projects/tests/samples, Python samples/tests, and GitHub Actions sparse-checkout.
- Update Markdown links to point at the new locations.
Reviewed changes
Copilot reviewed 27 out of 44 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| python/samples/03-workflows/declarative/deep_research/main.py | Update workflow YAML lookup path to declarative-agents/workflow-samples. |
| python/samples/03-workflows/declarative/customer_support/main.py | Update workflow YAML lookup path to declarative-agents/workflow-samples. |
| python/samples/02-agents/declarative/README.md | Update referenced YAML locations and repo-root links for declarative agent samples. |
| python/samples/02-agents/declarative/openai_responses_agent.py | Update YAML path to declarative-agents/agent-samples/openai. |
| python/samples/02-agents/declarative/microsoft_learn_agent.py | Update YAML path to declarative-agents/agent-samples/foundry. |
| python/samples/02-agents/declarative/get_weather_agent.py | Update YAML path to declarative-agents/agent-samples/chatclient. |
| python/samples/02-agents/declarative/azure_openai_responses_agent.py | Update YAML path to declarative-agents/agent-samples/azure. |
| python/packages/declarative/tests/test_workflow_samples_integration.py | Point integration tests at declarative-agents/workflow-samples. |
| python/packages/declarative/tests/test_declarative_loader.py | Point agent-sample YAML collection at declarative-agents/agent-samples. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests.csproj | Update MSBuild includes to pull workflow setup YAMLs from declarative-agents/workflow-samples/Setup. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowTest.cs | Update repo-root detection to look for declarative-agents/workflow-samples. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/DeclarativeWorkflowTest.cs | Update workflow sample path composition to include declarative-agents/workflow-samples. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/DeclarativeCodeGenTest.cs | Update workflow sample paths to include declarative-agents/workflow-samples. |
| dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/README.md | Update docs to link to the moved workflow samples directory. |
| dotnet/samples/03-workflows/Declarative/StudentTeacher/StudentTeacher.csproj | Update workflow YAML include path to declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/Marketing/Marketing.csproj | Update workflow YAML include path to declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/HostedWorkflow/HostedWorkflow.csproj | Update workflow YAML include path to declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/GenerateCode/Program.cs | Update CLI workflow path resolution to use declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/ExecuteWorkflow/Program.cs | Update CLI workflow path resolution to use declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/DeepResearch/DeepResearch.csproj | Update workflow YAML include path to declarative-agents/workflow-samples. |
| dotnet/samples/03-workflows/Declarative/CustomerSupport/CustomerSupport.csproj | Update workflow YAML include path to declarative-agents/workflow-samples. |
| dotnet/samples/02-agents/DeclarativeAgents/ChatClient/Properties/launchSettings.json | Update launch args to point at moved agent-sample YAMLs under declarative-agents/agent-samples. |
| dotnet/agent-framework-dotnet.slnx | Update solution virtual folder file entries for moved workflow sample assets. |
| declarative-agents/workflow-samples/README.md | Update links to .NET samples now that README moved under declarative-agents/. |
| declarative-agents/workflow-samples/MathChat.yaml | Add/move workflow sample under consolidated directory. |
| declarative-agents/workflow-samples/Marketing.yaml | Add/move workflow sample under consolidated directory. |
| declarative-agents/workflow-samples/DeepResearch.yaml | Add/move workflow sample under consolidated directory. |
| declarative-agents/workflow-samples/CustomerSupport.yaml | Add/move workflow sample under consolidated directory. |
| declarative-agents/agent-samples/README.md | Update link to Python declarative samples now that README moved under declarative-agents/. |
| declarative-agents/agent-samples/openai/OpenAIResponses.yaml | Add/move OpenAI Responses prompt definition under consolidated directory. |
| declarative-agents/agent-samples/openai/OpenAIChat.yaml | Add/move OpenAI Chat prompt definition under consolidated directory. |
| declarative-agents/agent-samples/openai/OpenAIAssistants.yaml | Add/move OpenAI Assistants prompt definition under consolidated directory. |
| declarative-agents/agent-samples/openai/OpenAI.yaml | Add/move generic OpenAI prompt definition under consolidated directory. |
| declarative-agents/agent-samples/foundry/PersistentAgent.yaml | Add/move Foundry persistent agent definition under consolidated directory. |
| declarative-agents/agent-samples/foundry/MicrosoftLearnAgent.yaml | Add/move Foundry MCP-based sample under consolidated directory. |
| declarative-agents/agent-samples/foundry/FoundryAgent.yaml | Add/move Foundry prompt definition under consolidated directory. |
| declarative-agents/agent-samples/chatclient/GetWeather.yaml | Add/move ChatClient tool sample YAML under consolidated directory. |
| declarative-agents/agent-samples/chatclient/Assistant.yaml | Add/move ChatClient assistant YAML under consolidated directory. |
| declarative-agents/agent-samples/azure/AzureOpenAIResponses.yaml | Add/move Azure OpenAI Responses prompt definition under consolidated directory. |
| declarative-agents/agent-samples/azure/AzureOpenAIChat.yaml | Add/move Azure OpenAI Chat prompt definition under consolidated directory. |
| declarative-agents/agent-samples/azure/AzureOpenAIAssistants.yaml | Add/move Azure OpenAI Assistants prompt definition under consolidated directory. |
| declarative-agents/agent-samples/azure/AzureOpenAI.yaml | Add/move generic Azure OpenAI prompt definition under consolidated directory. |
| .github/workflows/dotnet-integration-tests.yml | Update sparse-checkout to fetch declarative-agents instead of workflow-samples. |
| .github/workflows/dotnet-build-and-test.yml | Update sparse-checkout to fetch declarative-agents instead of workflow-samples. |
Shawn Henry (sphenry)
temporarily deployed
to
integration
April 2, 2026 04:23 — with
GitHub Actions
Inactive
Shawn Henry (sphenry)
temporarily deployed
to
integration
April 2, 2026 04:23 — with
GitHub Actions
Inactive
Contributor
Eduard van Valkenburg (eavanvalkenburg)
approved these changes
Apr 2, 2026
Ben Thomas (alliscode)
pushed a commit
to alliscode/agent-framework
that referenced
this pull request
Apr 3, 2026
…nts directory (microsoft#5011) * Move workflow-samples and agent-samples under declarative-agents and update all references Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> * Fix relative paths in README files inside moved directories Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> Co-authored-by: Shawn Henry <shahen@microsoft.com>
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
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
Consolidate
workflow-samples/andagent-samples/under a newdeclarative-agents/directory at the repo root for better organizational clarity.Description
Moves both sample directories and updates all hardcoded path references across the codebase:
dotnet-build-and-test.yml(2 locations) anddotnet-integration-tests.ymlagent-framework-dotnet.slnxIncludepaths in 6 project files (5 sample projects + integration test project)Path.Combinecalls inExecuteWorkflow/Program.cs,GenerateCode/Program.cs, 3 test files, and repo-root detection inWorkflowTest.cslaunchSettings.jsonrelative paths forChatClientsampleworkflow-samples/README.md,agent-samples/README.md, declarative workflows README, Python declarative samples README)New directory structure:
Contribution Checklist