-
Notifications
You must be signed in to change notification settings - Fork 1.1k
.NET: Consolidate durable agent samples into Durable/Agents folder #3471
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
Conversation
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
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
.slnxand.csprojproject reference paths to match the new directory depth. - Added
dotnet/samples/Durable/Directory.Build.propsto override the parentEnvironmentalias 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
| File | Description |
|---|---|
| dotnet/samples/README.md | Updates samples index link(s) for the new Durable Agents layout |
| dotnet/samples/Durable/Directory.Build.props | Overrides parent props to remove Environment alias for Durable samples |
| dotnet/samples/Durable/Agents/ConsoleApps/README.md | ConsoleApps hub README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/README.md | Console sample README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/Program.cs | Console sample program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/01_SingleAgent/01_SingleAgent.csproj | Console sample project file with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/README.md | Console orchestration README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/Program.cs | Console orchestration program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/Models.cs | Console orchestration models under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/02_AgentOrchestration_Chaining/02_AgentOrchestration_Chaining.csproj | Console orchestration csproj with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/README.md | Console concurrency README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/Program.cs | Console concurrency program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/Models.cs | Console concurrency models under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/03_AgentOrchestration_Concurrency/03_AgentOrchestration_Concurrency.csproj | Console concurrency csproj with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/README.md | Console conditionals README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/Program.cs | Console conditionals program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/Models.cs | Console conditionals models under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/04_AgentOrchestration_Conditionals/04_AgentOrchestration_Conditionals.csproj | Console conditionals csproj with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/README.md | Console HITL README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/Program.cs | Console HITL program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/Models.cs | Console HITL models under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/05_AgentOrchestration_HITL/05_AgentOrchestration_HITL.csproj | Console HITL csproj with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/README.md | Console long-running tools README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/Program.cs | Console long-running tools program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/Models.cs | Console long-running tools models under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/06_LongRunningTools/06_LongRunningTools.csproj | Console long-running tools csproj with updated references |
| dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/README.md | Console reliable streaming README under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/Program.cs | Console reliable streaming program under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/RedisStreamResponseHandler.cs | Console reliable streaming Redis handler under new folder |
| dotnet/samples/Durable/Agents/ConsoleApps/07_ReliableStreaming/07_ReliableStreaming.csproj | Console reliable streaming csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/README.md | Azure Functions hub README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/.editorconfig | Adds Azure Functions analyzer suppression config |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/01_SingleAgent/01_SingleAgent.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/FunctionTriggers.cs | Azure Functions triggers/orchestrator under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/02_AgentOrchestration_Chaining/02_AgentOrchestration_Chaining.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/FunctionTriggers.cs | Azure Functions triggers/orchestrator under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/03_AgentOrchestration_Concurrency/03_AgentOrchestration_Concurrency.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/Models.cs | Azure Functions sample models under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/FunctionTriggers.cs | Azure Functions triggers/orchestrator under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/04_AgentOrchestration_Conditionals/04_AgentOrchestration_Conditionals.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/Models.cs | Azure Functions sample models under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/FunctionTriggers.cs | Azure Functions triggers/orchestrator under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/05_AgentOrchestration_HITL/05_AgentOrchestration_HITL.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/demo.http | Azure Functions sample HTTP demo file |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Tools.cs | Azure Functions long-running tools helper class |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/README.md | Azure Functions sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Program.cs | Azure Functions sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/Models.cs | Azure Functions sample models under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/FunctionTriggers.cs | Azure Functions triggers/orchestrator under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/06_LongRunningTools/06_LongRunningTools.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/local.settings.json | Azure Functions sample local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/host.json | Azure Functions sample host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/README.md | Azure Functions MCP tool sample README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/Program.cs | Azure Functions MCP tool sample program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/07_AgentAsMcpTool/07_AgentAsMcpTool.csproj | Azure Functions csproj with updated references |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/local.settings.json | Azure Functions reliable streaming local settings template |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/host.json | Azure Functions reliable streaming host configuration |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/Tools.cs | Azure Functions reliable streaming mock tools |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/RedisStreamResponseHandler.cs | Azure Functions reliable streaming Redis handler |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/README.md | Azure Functions reliable streaming README under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/Program.cs | Azure Functions reliable streaming program under new folder |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/FunctionTriggers.cs | Azure Functions reliable streaming HTTP triggers |
| dotnet/samples/Durable/Agents/AzureFunctions/08_ReliableStreaming/08_ReliableStreaming.csproj | Azure Functions reliable streaming csproj with updated references |
| dotnet/agent-framework-dotnet.slnx | Updates solution folder/project paths to new sample hierarchy |
ce3dad4 to
926b7a4
Compare
926b7a4 to
c62b141
Compare
c62b141 to
5c828e9
Compare
5c828e9 to
f4e657d
Compare
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/tosamples/Durable/Agents/AzureFunctions/, and ConsoleApps samples fromsamples/DurableAgents/ConsoleApps/tosamples/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:
.csprojfiles for Azure Functions samples to update theirProjectReferencepaths, ensuring they correctly point to the shared source projects after the directory move. [1] [2] [3]Before:

After:

Description
Contribution Checklist