From 8b696a113e4f1556f974b81a76f7ed40409fd9dd Mon Sep 17 00:00:00 2001 From: Pujarini Mohapatra Date: Fri, 20 Mar 2026 20:12:52 +0530 Subject: [PATCH] fix: update agent-framework import and constructor to match latest SDK API Replace deprecated ChatAgent with Agent and rename chat_client param to client. --- python/agent-framework/sample-agent/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/agent-framework/sample-agent/agent.py b/python/agent-framework/sample-agent/agent.py index 8f9fcb7b..500ad3dc 100644 --- a/python/agent-framework/sample-agent/agent.py +++ b/python/agent-framework/sample-agent/agent.py @@ -37,7 +37,7 @@ # # AgentFramework SDK -from agent_framework import ChatAgent +from agent_framework import Agent from agent_framework.azure import AzureOpenAIChatClient # Agent Interface @@ -156,8 +156,8 @@ def _create_chat_client(self): def _create_agent(self): """Create the AgentFramework agent with initial configuration""" try: - self.agent = ChatAgent( - chat_client=self.chat_client, + self.agent = Agent( + client=self.chat_client, instructions=self.AGENT_PROMPT, tools=[], )