Skip to content

Python: [BREAKING] Update naming of AgentRunResponse to AgentResponse#3202

Closed
eavanvalkenburg wants to merge 0 commit intomicrosoft:mainfrom
eavanvalkenburg:rename_agent_run_response
Closed

Python: [BREAKING] Update naming of AgentRunResponse to AgentResponse#3202
eavanvalkenburg wants to merge 0 commit intomicrosoft:mainfrom
eavanvalkenburg:rename_agent_run_response

Conversation

@eavanvalkenburg
Copy link
Member

Motivation and Context

In line with dotnet, renaming AgentRunResponse to AgentResponse and AgentRunResponseUpdate to AgentResponseUpdate

Description

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 13, 2026 16:20
@eavanvalkenburg eavanvalkenburg requested a review from a team as a code owner January 13, 2026 16:20
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python lab Agent Framework Lab labels Jan 13, 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 pull request implements a breaking change to rename AgentRunResponse to AgentResponse and AgentRunResponseUpdate to AgentResponseUpdate across the Python codebase to align with the .NET implementation naming conventions.

Changes:

  • Renamed core types AgentRunResponseAgentResponse and AgentRunResponseUpdateAgentResponseUpdate
  • Updated all imports, type annotations, and references across the entire Python codebase
  • Updated documentation strings, comments, and examples to reflect the new naming

Reviewed changes

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

Show a summary per file
File Description
python/packages/core/agent_framework/_types.py Core type definitions renamed with updated class names, docstrings, and serialization type strings
python/packages/core/agent_framework/_agents.py Updated agent protocol and ChatAgent implementation with new type names
python/packages/core/agent_framework/_middleware.py Updated middleware context and pipeline to use new type names
python/packages/core/agent_framework/observability.py Updated tracing decorators and helper functions
python/packages/core/agent_framework/_workflows/*.py Updated workflow-related files including agent executor, workflow agent, magentic, handoff, group chat, and concurrent builders
Sample files Updated all samples across getting_started, semantic-kernel-migration, azure_functions, and demo directories
Test files Updated all test files across core, workflow, azure, openai, and package-specific tests
Package files Updated azurefunctions, copilotstudio, chatkit, bedrock, purview, devui, and other package implementations

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 lab Agent Framework Lab python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants