fix: upgraded the agent-framework to latest version#860
Merged
Roopan-Microsoft merged 10 commits intomainfrom Mar 17, 2026
Merged
fix: upgraded the agent-framework to latest version#860Roopan-Microsoft merged 10 commits intomainfrom
Roopan-Microsoft merged 10 commits intomainfrom
Conversation
fix: updated the agent framework to latest version
Roopan-Microsoft
previously approved these changes
Mar 17, 2026
fix: codeQL fix for raising the error
Prajwal-Microsoft
approved these changes
Mar 17, 2026
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.
Purpose
This pull request introduces significant updates to the agent framework integration across the backend, focusing on upgrading dependencies to release candidates, refactoring agent and message types, and updating agent protocol methods to match the new framework API. The changes modernize agent initialization and invocation, streamline tool handling, and improve message and session management. The most important changes are grouped below:
Dependency and Framework Upgrades
agent-framework-azure-aiandagent-framework-coredependencies to1.0.0rc4and addedagent-framework-orchestrations==1.0.0b260311, ensuring compatibility with the latest agent framework API. Also upgradedazure-ai-projectsto2.0.0. (src/backend/pyproject.toml) [1] [2]Agent and Message Type Refactoring
ChatAgent,ChatMessage, andHostedCodeInterpreterTooltypes with newAgent,Message, andChatOptionstypes throughout the codebase, including agent initialization, message handling, and tool collection. (src/backend/v4/callbacks/response_handlers.py,src/backend/v4/magentic_agents/common/lifecycle.py,src/backend/v4/magentic_agents/foundry_agent.py,src/backend/v4/magentic_agents/proxy_agent.py) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Agent Protocol and Session Management
AgentSessioninstead ofAgentThread, updatedrunand streaming invocation methods to match the new framework contract, and improved session handling in the proxy agent. (src/backend/v4/magentic_agents/proxy_agent.py) [1] [2] [3]Tool Handling and Azure Search Integration
HostedCodeInterpreterTool(now handled server-side), replacedAzureAISearchAgentToolwithAzureAISearchTool, and clarified tool initialization paths for both MCP and Azure Search modes. (src/backend/v4/magentic_agents/foundry_agent.py) [1] [2] [3] [4]Message and Content Serialization
Content.from_textand proper role assignment, and updated websocket event payloads to use explicit dict serialization for frontend compatibility. (src/backend/v4/magentic_agents/proxy_agent.py) [1] [2] [3]These changes collectively modernize the backend agent integration, align with the latest agent framework, and streamline agent and message handling throughout the codebase.
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information