Skip to content

Conversation

@kshyju
Copy link
Contributor

@kshyju kshyju commented Jan 22, 2026

Motivation and Context

As part of adding Durable support for workflows, we need access to executor binding metadata so that the Durable orchestration workflow runner can correctly route messages at runtime. The runner itself will be introduced in a follow-up PR from the corresponding feature branch.

Additional Context

The Python implementation already exposes executor binding information, whereas the .NET implementation does not. This PR closes that gap and brings feature parity between the two.

Description

This PR exposes executor binding information from a workflow, similar to the existing APIs that expose ports and edges.

public Dictionary<string, ExecutorBinding> ReflectExecutors()

This method allows callers to retrieve a copy of the executor bindings defined in a workflow.

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.

Copilot AI review requested due to automatic review settings January 22, 2026 20:34
@markwallace-microsoft markwallace-microsoft added .NET workflows Related to Workflows in agent-framework labels Jan 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new public method ReflectExecutors() to the Workflow class to expose executor binding metadata. This change brings the .NET implementation to feature parity with Python and enables the Durable orchestration workflow runner (to be introduced in a follow-up PR) to access executor binding information for message routing.

Changes:

  • Added ReflectExecutors() method to expose executor bindings from workflows
  • Returns a defensive copy of the executor bindings dictionary to prevent external modifications

@kshyju kshyju added this pull request to the merge queue Jan 22, 2026
Merged via the queue into microsoft:main with commit 9f893a3 Jan 22, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET workflows Related to Workflows in agent-framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants