Zero Labs
Industry News / AI

Microsoft Agent Framework Just Changed in a Big Way — Here’s What Developers Need to Know

Source · Towards AI By Gaurav Bhardwaj

From the publisher’s feed, collected in the ZeroLabs newsroom.

Source: Image by MicrosoftIf you have been building with the earlier beta versions of Microsoft’s Agent Framework, take a deep breath. The new 1.0.0 release isn’t just a small cleanup or a few bug fixes — it is a massive architectural shift.At first glance, the headline feature looks like FoundryAgent, and yes, that is one of the biggest day-to-day improvements. But the deeper story is larger: Microsoft has reworked the framework around provider-leading client design. They’ve extracted OpenAI provider code out of the core package, standardized naming, unified model configuration, and modernized the entire workflow and streaming API stack.The New Architecture: A Leaner CoreIn the earlier model, agent-framework-core carried OpenAI and Azure-specific implementations together with all their dependencies. This made the core package heavier than necessary and blurred the lines between framework abstractions and provider-specific concerns.The new direction fixes that. Core is now truly about abstractions, middleware, and telemetry. Provider implementations now live in dedicated, lightweight packages:agent-framework-openaiagent-framework-foundryThis isn’t just cleaner code — it’s a better developer experience with fewer dependency headaches.The Old Pattern vs. The New PatternThe biggest practical change for Azure AI Foundry users is the move away from project-centric agent setup toward FoundryAgent. Instead of creating and managing agents through older provider patterns, the framework now assumes your agents already exist in Foundry, and your application simply connects to them.Foundry is now the control plane; your app is the runtime consumer.Before: Provider-based agent creationfrom agent_framework.azure import AzureAIProjectAgentProviderasync with AzureAIProjectAgentProvider(credential=cred) as provider: agent = await provider.create_agent( name="FinancialAdvisorAgent", model=model )After: Connect directly to a Foundry-hosted agentfrom agent_framework.foundry import FoundryAgentfrom azure.identity import AzureCliCredentialimport oscredential = AzureCliCredential()agent = FoundryAgent( agent_name="FinancialAdvisorAgent", credential=credential, project_endpoint=os.environ["AI_FOUNDRY_PROJECT_ENDPOINT"],)The new version removes CRUD (Create, Read, Update, Delete) from the common path, making “connect to pre-configured agents” the default mental model.Unified Model Configuration: A Quiet WinOne change that will save you hours of “Wait, what was the parameter name for this provider?” is the unified model parameter. Previously, we juggled model_id, deployment_name, and model_deployment_name. In rc6, these collapse into one consistent field.Client TypeOld ParameterNew Parameter (rc6)FoundryChatClientmodel_deployment_namemodelOpenAIChatClientmodel_idmodelEnvironment VariableOPENAI_MODEL_IDOPENAI_MODELNew Unified OpenAI Example:from agent_framework.openai import OpenAIChatClientclient = OpenAIChatClient(model="gpt-4o")Streaming & Core API RefactorsThis is the part that will trip people up during migration. There is no run_stream() method anymore. Streaming is now handled through a simple boolean flag in the standard run() method.The New Streaming Syntax# Streaming is now a parameter, not a separate method!async for chunk in agent.run( "What is the current portfolio risk?", stream=True,): print(chunk, end="")Essential Naming MigrationsIt’s not just the Azure classes that changed — the core vocabulary of the framework has been simplified:ChatAgent ➡️ AgentChatMessage ➡️ MessageContents ➡️ Contentchat_client= ➡️ client=@ai_function ➡️ @toolRole.USER ➡️ "user"The “Gotcha” Workaround: Tool SchemasIn rc6, some developers have noticed that RawFoundryAgentChatClient may fail when tools contain schemas the Foundry service doesn't expect. If you hit this, use this pragmatic workaround to strip tool schemas before sending requests:class FoundryAgentChatClient(RawFoundryAgentChatClient): def _prepare_options(self, options): options = super()._prepare_options(options) if hasattr(options, "tools") and options.tools: for t in options.tools: if hasattr(t, "function") and hasattr(t.function, "parameters"): t.function.parameters = None # Temporary fix for rc6 return optionsFinal TakeWhat makes this release exciting is that the code finally reflects the product’s vision. Azure AI Foundry is the place where agents are governed and configured, while the Framework is the lean runtime layer that brings them to life.It feels like the point where the Agent Framework has graduated from an evolving beta to a mature, intentional platform. If you’re building agents on Azure, it’s time to update your requirements file and embrace the new standard.Microsoft Agent Framework Just Changed in a Big Way — Here’s What Developers Need to Know was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.