Repository navigation
Python: .NET: Executor source gen for workflow executor routing - #3131
Merged
Merged
Conversation
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 00:52 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 00:52 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 16:15 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 16:15 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 17:34 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 17:34 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 19:11 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 19:11 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 19:29 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 19:29 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 8, 2026 22:34 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 8, 2026 22:34 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 9, 2026 00:31 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 9, 2026 00:31 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 9, 2026 00:59 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 9, 2026 00:59 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 9, 2026 22:39 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 9, 2026 22:39 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 10, 2026 01:06 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 10, 2026 01:06 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
force-pushed
the
wf-source-gen
branch
from
January 12, 2026 17:46
0ed461a to
46bb208
Compare
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 12, 2026 17:47 — with
GitHub Actions
Failure
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 12, 2026 17:47 — with
GitHub Actions
Error
Ben Thomas (alliscode)
force-pushed
the
wf-source-gen
branch
from
January 12, 2026 17:57
46bb208 to
97c7f78
Compare
Ben Thomas (alliscode)
marked this pull request as ready for review
January 12, 2026 17:57
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 16, 2026 20:35 — with
GitHub Actions
Error
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 16, 2026 20:35 — with
GitHub Actions
Error
…uteGenerator.cs Co-authored-by: Copilot <[email protected]>
Ben Thomas (alliscode)
force-pushed
the
wf-source-gen
branch
from
January 16, 2026 20:42
7da1da4 to
7878562
Compare
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 16, 2026 20:43 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 16, 2026 20:43 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 16, 2026 21:01 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 16, 2026 21:01 — with
GitHub Actions
Inactive
Peter Ibekwe (peibekwe)
approved these changes
Jan 16, 2026
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 20, 2026 16:17 — with
GitHub Actions
Error
Ben Thomas (alliscode)
had a problem deploying
to
integration
January 20, 2026 16:17 — with
GitHub Actions
Error
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 20, 2026 16:20 — with
GitHub Actions
Inactive
Ben Thomas (alliscode)
temporarily deployed
to
integration
January 20, 2026 16:20 — with
GitHub Actions
Inactive
Jacob Alber (lokitoth)
approved these changes
Jan 21, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jan 21, 2026
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Jan 21, 2026
* Roslyn Source Generators for Workflow Executor Routing. * Update dotnet/src/Microsoft.Agents.AI.Workflows.Generators/ExecutorRouteGenerator.cs Co-authored-by: Copilot <[email protected]> * WIP. * All fixed up except dangling sends/yields attriutes, working on that next. * Add protocol-only generation for SendsMessage/YieldsOutput attributes * Ensuring collections that can change order are sorted to enable pipeline caching. * Improvents per PR feedback. --------- Co-authored-by: alliscode <[email protected]> Co-authored-by: Copilot <[email protected]>
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jan 21, 2026
This branch was previously deployed
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.
This pull request introduces a new Roslyn source generator project for the Microsoft Agent Framework Workflows, enabling compile-time route configuration for executor classes using the
[MessageHandler]attribute. It includes the generator implementation, diagnostics, build configuration, and integration into the solution and dependency management.Follow-up PRs will update samples and docs to use this new pattern and obsolete the ReflectingExecutor
New Source Generator Project:
Microsoft.Agents.AI.Workflows.Generatorstargetingnetstandard2.0, with all necessary build and NuGet packaging settings, and Roslyn dependencies for source generator development. [1] [2]Source Generator Implementation:
ExecutorRouteGeneratorclass, a Roslyn incremental source generator that scans for[MessageHandler]methods and generates partial classes to configure workflow routes at compile time.SourceBuilderutility to generate the actual C# code for route configuration, including overrides forConfigureRoutes,ConfigureSentTypes, andConfigureYieldTypesas needed.Diagnostics and Analysis:
DiagnosticDescriptorsto define and register custom diagnostics for common usage errors (e.g., missing parameters, invalid return types, non-partial classes, etc.) in handler methods and executor classes.Solution and Dependency Integration:
agent-framework-dotnet.slnx). [1] [2]Directory.Packages.propsto includeMicrosoft.CodeAnalysis.Analyzersas a dependency for code analysis support.### Motivation and ContextContribution Checklist