Skip to content

.NET: feat: adds the executorId as an additional property when running the workflow as agent in dotnet - #7934

Open
Vincent Biret (baywet) wants to merge 9 commits into
mainfrom
feat/workflow-as-agent-executor-id-dotnet
Open

.NET: feat: adds the executorId as an additional property when running the workflow as agent in dotnet#7934
Vincent Biret (baywet) wants to merge 9 commits into
mainfrom
feat/workflow-as-agent-executor-id-dotnet

Conversation

@baywet

Copy link
Copy Markdown
Member

fixes #4445

Copilot AI balanced review requested due to automatic review settings August 28, 2026 12:53
@agent-framework-automation agent-framework-automation Bot added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Aug 28, 2026
@github-actions github-actions Bot changed the title feat: adds the executorId as an additional property when running the workflow as agent in dotnet .NET: feat: adds the executorId as an additional property when running the workflow as agent in dotnet Aug 28, 2026

Copilot AI 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

Adds workflow executor attribution to streamed .NET agent response updates.

Changes:

  • Adds a public executorId metadata key.
  • Attaches executor IDs to response updates.
  • Adds multi-executor streaming coverage.

Reviewed changes

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

File Description
WorkflowAgentAdditionalProperties.cs Defines the executor ID key.
AgentResponseUpdateEvent.cs Adds attribution metadata to updates.
WorkflowHostSmokeTests.cs Tests attribution and metadata preservation.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread dotnet/src/Microsoft.Agents.AI.Workflows/AgentResponseUpdateEvent.cs Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
github-actions[bot]

This comment was marked as outdated.

This comment was marked as outdated.

…cross execution methods

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
…revious inputs for the executorId

Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>

This comment was marked as outdated.

Signed-off-by: Vincent Biret <vibiret@microsoft.com>

This comment was marked as outdated.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>

Copilot AI 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

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

Throw.IfNull(message);

return new(message.Role, message.Contents)
return SetExecutorId(new(message.Role, message.Contents)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The behaviour pre-existed this change, Tao Chen (@TaoChenOSU) to confirm whether we should fix that or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: [Feature]: Expose ExecutorId for AgentResponseUpdate when using workflow\.AsAgent().RunStreamingAsync()

2 participants