Skip to content

Conversation

@feiyun0112
Copy link

fix #2899

Copilot AI review requested due to automatic review settings December 18, 2025 05:30
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework labels Dec 18, 2025
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 pull request implements a systematic renaming of AgentRunResponse and AgentRunResponseUpdate to AgentResponse and AgentResponseUpdate respectively, addressing issue #2899. The changes are clean and consistent across the entire codebase.

Key Changes:

  • Renamed core types: AgentRunResponseAgentResponse and AgentRunResponseUpdateAgentResponseUpdate
  • Updated all extension methods and helper methods to use the new naming (e.g., ToAgentRunResponse()ToAgentResponse())
  • Updated XML documentation comments, error messages, and inline documentation to reflect the new naming
  • Removed BOM (Byte Order Mark) characters from copyright headers across all modified files

Reviewed changes

Copilot reviewed 181 out of 181 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Test files (40+ files) Systematically updated all test classes, methods, and variable declarations to use new type names
Source abstractions Core AgentResponse.cs and AgentResponseUpdate.cs files renamed with all references updated
Extension methods AgentResponseExtensions.cs updated with all conversion methods renamed appropriately
AIAgent implementations All agent implementations (DurableTask, CopilotStudio, A2A, Workflows, Purview, etc.) updated consistently
Hosting implementations OpenAI and AzureFunctions hosting layers updated with new type names
Sample code All sample programs updated to demonstrate proper usage with new naming
Documentation README files and inline documentation updated to reference new type names
Declarative workflows Generated code templates and workflow executors updated

The renaming is thorough, consistent, and maintains backward compatibility in terms of functionality while improving API clarity by removing the redundant "Run" term from the response type names.

@SergeyMenshykh
Copy link
Member

@feiyun0112, thanks for the contribution. Do you mind resolving the conflicts so we can procced with this PR?

@SergeyMenshykh SergeyMenshykh changed the title .NET: Rename AgentRunResponse{Update} to AgentResponse{Update} .NET: [Breaking] Rename AgentRunResponse{Update} to AgentResponse{Update} Jan 9, 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

Copilot reviewed 186 out of 186 changed files in this pull request and generated no new comments.

@SergeyMenshykh
Copy link
Member

SergeyMenshykh commented Jan 9, 2026

@alliscode, @lokitoth I wonder if we need to rename AgentRunUpdateEvent and AgentRunResponseEvent as well?

@SergeyMenshykh
Copy link
Member

@feiyun0112, the dotnet-format check fails with "/app/dotnet/samples/AGUIClientServer/AGUIClient/Program.cs(1,1): error CHARSET: Fix file encoding. [/app/dotnet/samples/AGUIClientServer/AGUIClient/AGUIClient.csproj]" error; please have a look.

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

This change should be reverted.

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

This change should be reverted.

@@ -1,4 +1,4 @@
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

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

This change should be reverted.

@@ -1,4 +1,4 @@
// ------------------------------------------------------------------------------
// ------------------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

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

This change should be reverted.

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

This change should be reverted.

@@ -1,4 +1,4 @@
// Copyright (c) Microsoft. All rights reserved.
// Copyright (c) Microsoft. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

This change and similar change in several files below should be reverted.

@SergeyMenshykh
Copy link
Member

@feiyun0112, I'm proceeding with this PR #3197 instead since it blocks the other renaming work we want to do asap.

@feiyun0112 feiyun0112 closed this Jan 15, 2026
@feiyun0112 feiyun0112 deleted the issues/2899 branch January 15, 2026 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET workflows Related to Workflows in agent-framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: Rename AgentRunResponse{Update} to AgentResponse{Update}

4 participants