Skip to content

.NET: Consolidate durable agent samples into Durable/Agents folder - #3471

Merged
Shyju Krishnankutty (kshyju) merged 6 commits into
mainfrom
shkr/durable-samples-reorg
Jan 29, 2026
Merged

.NET: Consolidate durable agent samples into Durable/Agents folder#3471
Shyju Krishnankutty (kshyju) merged 6 commits into
mainfrom
shkr/durable-samples-reorg

Conversation

@kshyju

Copy link
Copy Markdown
Contributor

Motivation and Context

This pull request reorganizes the sample project structure for Durable Agents in the .NET solution. The main focus is on moving the Azure Functions and ConsoleApps samples into a new, more consistent directory hierarchy under samples/Durable/Agents/, and updating project references to match the new locations.

Key changes include:

Sample Project Structure Reorganization:

  • Moved all Azure Functions samples from samples/AzureFunctions/ to samples/Durable/Agents/AzureFunctions/, and ConsoleApps samples from samples/DurableAgents/ConsoleApps/ to samples/Durable/Agents/ConsoleApps/ for a more logical and maintainable structure.

  • Updated the solution file (dotnet/agent-framework-dotnet.slnx) to reflect the new sample locations and folder hierarchy.

Project Reference Updates:

  • Adjusted all affected .csproj files for Azure Functions samples to update their ProjectReference paths, ensuring they correctly point to the shared source projects after the directory move. [1][2][3]

Before:
Screenshot 2026-01-27 150507

After:
Screenshot 2026-01-27 150609

Description

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reorganizes the .NET durable agent samples into a consolidated dotnet/samples/Durable/Agents/ hierarchy, updating solution/project references and adding shared build configuration to support the new layout.

Changes:

  • Moved Durable Agent Azure Functions and ConsoleApp samples into dotnet/samples/Durable/Agents/{AzureFunctions,ConsoleApps}/.
  • Updated .slnx and .csproj project reference paths to match the new directory depth.
  • Added dotnet/samples/Durable/Directory.Build.props to override the parent Environment alias for these samples.

Reviewed changes

Copilot reviewed 17 out of 91 changed files in this pull request and generated 1 comment.

Show a summary per file
FileDescription
dotnet/samples/README.mdUpdates samples index link(s) for the new Durable Agents layout
dotnet/samples/Durable/Directory.Build.propsOverrides parent props to remove Environment alias for Durable samples
dotnet/samples/Durable/Agents/ConsoleApps/README.mdConsoleApps hub README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/README.mdConsole sample README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/Program.csConsole sample program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/01_SingleAgent.csprojConsole sample project file with updated references
dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/README.mdConsole orchestration README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/Program.csConsole orchestration program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/Models.csConsole orchestration models under new folder
dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/02_AgentOrchestration_Chaining.csprojConsole orchestration csproj with updated references
dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/README.mdConsole concurrency README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/Program.csConsole concurrency program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/Models.csConsole concurrency models under new folder
dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/03_AgentOrchestration_Concurrency.csprojConsole concurrency csproj with updated references
dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/README.mdConsole conditionals README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/Program.csConsole conditionals program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/Models.csConsole conditionals models under new folder
dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/04_AgentOrchestration_Conditionals.csprojConsole conditionals csproj with updated references
dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/README.mdConsole HITL README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/Program.csConsole HITL program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/Models.csConsole HITL models under new folder
dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/05_AgentOrchestration_HITL.csprojConsole HITL csproj with updated references
dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/README.mdConsole long-running tools README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/Program.csConsole long-running tools program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/Models.csConsole long-running tools models under new folder
dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/06_LongRunningTools.csprojConsole long-running tools csproj with updated references
dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/README.mdConsole reliable streaming README under new folder
dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/Program.csConsole reliable streaming program under new folder
dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/RedisStreamResponseHandler.csConsole reliable streaming Redis handler under new folder
dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/07_ReliableStreaming.csprojConsole reliable streaming csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/README.mdAzure Functions hub README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/.editorconfigAdds Azure Functions analyzer suppression config
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/01_SingleAgent.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/FunctionTriggers.csAzure Functions triggers/orchestrator under new folder
dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/02_AgentOrchestration_Chaining.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/FunctionTriggers.csAzure Functions triggers/orchestrator under new folder
dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/03_AgentOrchestration_Concurrency.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/Models.csAzure Functions sample models under new folder
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/FunctionTriggers.csAzure Functions triggers/orchestrator under new folder
dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/04_AgentOrchestration_Conditionals.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/Models.csAzure Functions sample models under new folder
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/FunctionTriggers.csAzure Functions triggers/orchestrator under new folder
dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/05_AgentOrchestration_HITL.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/demo.httpAzure Functions sample HTTP demo file
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Tools.csAzure Functions long-running tools helper class
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/README.mdAzure Functions sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Program.csAzure Functions sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Models.csAzure Functions sample models under new folder
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/FunctionTriggers.csAzure Functions triggers/orchestrator under new folder
dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/06_LongRunningTools.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/local.settings.jsonAzure Functions sample local settings template
dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/host.jsonAzure Functions sample host configuration
dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/README.mdAzure Functions MCP tool sample README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/Program.csAzure Functions MCP tool sample program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/07_AgentAsMcpTool.csprojAzure Functions csproj with updated references
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/local.settings.jsonAzure Functions reliable streaming local settings template
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/host.jsonAzure Functions reliable streaming host configuration
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/Tools.csAzure Functions reliable streaming mock tools
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/RedisStreamResponseHandler.csAzure Functions reliable streaming Redis handler
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/README.mdAzure Functions reliable streaming README under new folder
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/Program.csAzure Functions reliable streaming program under new folder
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/FunctionTriggers.csAzure Functions reliable streaming HTTP triggers
dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/08_ReliableStreaming.csprojAzure Functions reliable streaming csproj with updated references
dotnet/agent-framework-dotnet.slnxUpdates solution folder/project paths to new sample hierarchy

Comment threaddotnet/samples/README.md
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@kshyju@cgillum@larohra@markwallace-microsoft