<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Atanu Gupta on Medium]]></title>
        <description><![CDATA[Stories by Atanu Gupta on Medium]]></description>
        <link>https://medium.com/@atanu.gupta?source=rss-8564e6b1ab92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yFx26_sEovMf3pQN4sLmXw.jpeg</url>
            <title>Stories by Atanu Gupta on Medium</title>
            <link>https://medium.com/@atanu.gupta?source=rss-8564e6b1ab92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:27:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atanu.gupta/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[️ Beyond Chatbots: Using Microsoft Agent Framework and MCP]]></title>
            <link>https://blog.gopenai.com/%EF%B8%8F-beyond-chatbots-using-microsoft-agent-framework-and-mcp-cd2df3ba5843?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd2df3ba5843</guid>
            <category><![CDATA[mcp-python]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[microsoft-agent-framework]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 06:58:38 GMT</pubDate>
            <atom:updated>2026-11-19T09:50:28.765Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What happens when you combine Microsoft Agent Framework, Azure AI Foundry, MCP, and </strong><a href="https://open-meteo.com/"><strong>Open-Meteo</strong></a><strong>? You get more than a chatbot that talks about the weather. You get an agent that knows when to stop talking and start calling tools!</strong></p><p>Let’s face it. Building a chatbot that answers <em>“What’s the weather in Helsinki, Finland?”</em> is not particularly exciting anymore.</p><p>But what if you ask:</p><p><em>“I’m travelling to Helsinki next week. What’s the weather going to be like? Should I expect rain? What about the temperature over the next few days?”</em></p><p>Now things get interesting.</p><p>The agent needs to understand the intent, identify the city, retrieve its geographical coordinates, invoke the right weather APIs, process the response, and present the information in a meaningful format.</p><p>And I wanted to build exactly that. 🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOlVHyYMRZKAQVxih-nrmg.png" /></figure><h3>🧠 The idea: From a simple question to an agentic workflow</h3><p>I built a <strong>City Weather Forecast Agent</strong> using:</p><ul><li><strong>Microsoft Agent Framework (MAF)</strong> — for agent creation and tool orchestration.</li><li><strong>Azure AI Foundry</strong> — to provide the LLM inference layer through FoundryChatClient.</li><li><strong>Model Context Protocol (MCP)</strong> — to expose weather capabilities as reusable tools.</li><li><strong>Open-Meteo APIs</strong> — for geocoding, current weather, and multi-day forecasts.</li><li><strong>Python AsyncIO</strong> — for asynchronous execution.</li><li><strong>UDP sockets</strong> — for relaying MCP execution logs to the agent terminal.</li></ul><p>The objective was not simply to fetch weather data. It was to explore how an agent can dynamically leverage external capabilities through MCP rather than relying entirely on its model knowledge.</p><p>Because, let’s be honest, an LLM’s confidence about tomorrow’s weather doesn’t mean you should leave your umbrella at home! ☔</p><h3>🏗️ Architecture: Two independent components, one intelligent workflow</h3><p>I deliberately separated the implementation into two Python applications.</p><p><strong>1. MCP Server — The capability layer</strong></p><p>This application exposes weather-related functionality as MCP tools. It handles external API communication, data processing, and structured responses.</p><p><a href="https://github.com/AtanuGpt/Microsoft-Agentic-Framework/blob/main/mcp/sample-project/mcp_servers/mcp-city-weather-forecast.py">https://github.com/AtanuGpt/Microsoft-Agentic-Framework/blob/main/mcp/sample-project/mcp_servers/mcp-city-weather-forecast.py</a></p><p><strong>2. MAF Agent — The intelligence and orchestration layer</strong></p><p>This application connects to the MCP server over Streamable HTTP, uses Azure AI Foundry for model inference, and orchestrates tool execution based on the user’s query.</p><p><a href="https://github.com/AtanuGpt/Microsoft-Agentic-Framework/blob/main/mcp/sample-project/agent/agent-city-weather-forecast.py">https://github.com/AtanuGpt/Microsoft-Agentic-Framework/blob/main/mcp/sample-project/agent/agent-city-weather-forecast.py</a></p><p>The separation is important. The agent doesn’t need to know how the Open-Meteo APIs work internally. It only needs to understand which MCP capability to invoke and how to interpret the result.</p><p>That’s the beauty of a well-defined tool contract.</p><h3>🔌 Step 1: Building the MCP Server</h3><p>I created an MCP server using Python’s MCP server implementation.</p><p>Instead of exposing one generic weather function, I created three focused tools.</p><h3>Tool 1: get_city_coordinates (cityname)</h3><p>First things first. The weather API needs geographical coordinates.</p><p>This tool invokes the <a href="https://open-meteo.com/">Open-Meteo</a> Geocoding API and retrieves the latitude and longitude for a given city.</p><p>For example:</p><p>get_city_coordinates(&quot;Helsinki&quot;)</p><p>Returns structured data containing:</p><ul><li>City lookup status</li><li>Latitude</li><li>Longitude</li></ul><p>The coordinates become the input for the subsequent weather operations.</p><h3>Tool 2: get_city_weather (latitude, longitude)</h3><p>Once the coordinates are available, this tool invokes the Open-Meteo Forecast API to retrieve current weather conditions.</p><p>The response includes:</p><ul><li>🌡️ Temperature</li><li>💧 Relative humidity</li><li>🌬️ Wind speed</li><li>🌧️ Rain</li><li>🌦️ Showers</li><li>☔ Precipitation probability</li></ul><p>The response is returned as structured JSON, including the corresponding units and timezone.</p><p>No hardcoded weather. No guessing. Just API-backed data.</p><h3>Tool 3: get_city_forecast (latitude, longitude, forecast_days)</h3><p>This is where the implementation becomes more interesting.</p><p>I added a multi-day forecast capability that retrieves daily weather information for a configurable forecast period.</p><p>The tool provides:</p><ul><li>Weather codes</li><li>Minimum and maximum temperatures</li><li>Precipitation levels</li><li>Precipitation probability</li><li>Maximum wind speed</li><li>Sunrise and sunset timings</li></ul><p>One additional enhancement: I added a WMO weather-code mapping so that the agent receives human-readable conditions such as:</p><ul><li>Clear Sky</li><li>Partly Cloudy</li><li>Overcast</li><li>Light Drizzle</li><li>Thunderstorm</li></ul><p>Because returning weather_code: 95 to a user isn&#39;t exactly what I would call a great conversational experience! 😄</p><p>The MCP server runs using <strong>Streamable HTTP</strong> on port 8080, making its capabilities accessible to the agent over an HTTP-based MCP connection.</p><h3>🤖 Step 2: Connecting Microsoft Agent Framework with MCP</h3><p>Now comes the interesting part.</p><p>I used FoundryChatClient from Microsoft Agent Framework to connect the agent to Azure AI Foundry.</p><p>For MCP integration, I used:</p><p>MCPStreamableHTTPTool</p><p>This allows the agent to consume tools exposed by the independently running MCP server.</p><p>The key implementation pattern looks like this:</p><pre>from agent_framework import Agent, MCPStreamableHTTPTool<br>from agent_framework.foundry import FoundryChatClient<br>from azure.identity import DefaultAzureCredential</pre><pre>chat_client = FoundryChatClient(<br>    project_endpoint=FOUNDRY_PROJECT_ENDPOINT,<br>    model=FOUNDRY_MODEL,<br>    credential=DefaultAzureCredential()<br>)</pre><pre>mcp_tool = MCPStreamableHTTPTool(<br>    name=&quot;CityWeatherForecastMCP&quot;,<br>    url=&quot;http://127.0.0.1:8080/mcp&quot;, #The local mcp url<br>    approval_mode=&quot;never_require&quot;<br>)</pre><p>I then created the agent and attached the MCP tool:</p><pre>agent = Agent(<br>    client=chat_client,<br>    name=&quot;CityWeatherForecastAgent&quot;,<br>    instructions=&quot;You are an intelligent city weather assistant...&quot;,<br>    tools=[mcp_tool]<br>)</pre><p>The important architectural distinction here is that <strong>the agent connects to the MCP server over HTTP.</strong></p><p>It does not import the MCP server’s Python functions directly.</p><p>This gives us a clean separation between the agent’s orchestration logic and the external capabilities it consumes.</p><h3>🔄 Step 3: The actual agentic execution flow</h3><p>Let’s take a practical example.</p><p><strong>User query:</strong></p><p><em>“I’m travelling to Helsinki next week. What is the weather going to be like?”</em></p><p>The workflow looks something like this:</p><ol><li>The user submits a natural-language query.</li><li>The agent identifies the city and understands that a forecast is required.</li><li>It invokes get_city_coordinates(&quot;Helsinki&quot;).</li><li>The MCP server calls the Open-Meteo Geocoding API.</li><li>The coordinates are returned to the agent.</li><li>The agent invokes get_city_forecast() using those coordinates.</li><li>The MCP server retrieves the forecast data.</li><li>The agent interprets the structured response and generates a user-friendly answer.</li></ol><p><strong>The key takeaway:</strong> The LLM handles intent interpretation and orchestration, while the MCP tools handle the actual external data retrieval.</p><p><strong>This is a practical example of moving from a conventional LLM interaction to a tool-augmented agentic workflow.</strong></p><h3>📊 Step 4: Making the output actually useful</h3><p>Raw JSON is great for machines. Not so great for someone planning a trip.</p><p>So I added explicit formatting instructions to the agent.</p><p>For multi-day forecasts, I instructed it to return a Markdown table rather than a long list of individual date headings.</p><p>The expected presentation looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*QXlI-oOxyIoPWiM2Ym2JvQ.png" /></figure><p>Much easier to read, compare, and make decisions.</p><p>A small prompt-engineering detail, but a significant improvement in the user experience.</p><h3>🔍 Step 5: Observability — What is happening behind the scenes?</h3><p>Here is another interesting part of the implementation.</p><p>When the MCP server and the agent run as separate processes, their standard output streams are also separate.</p><p>So, when the MCP server executes a tool, its print() statements naturally appear in the MCP server terminal—not the agent terminal.</p><p>I wanted to see the MCP execution activity alongside the agent’s output.</p><p>My solution was a lightweight UDP-based log relay.</p><p>The MCP server sends execution notifications using Python’s socket module:</p><pre>def notify_agent(message: str):<br>    with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:<br>        sock.sendto(<br>            message.encode(&quot;utf-8&quot;),<br>            (&quot;127.0.0.1&quot;, 8765)<br>        )</pre><p>On the agent side, I implemented an asynchronous UDP listener using asyncio.DatagramProtocol.</p><pre>class MCPLogReceiver(asyncio.DatagramProtocol):</pre><pre>    def datagram_received(self, data, addr):<br>        message = data.decode(&quot;utf-8&quot;, errors=&quot;replace&quot;)<br>        print(message, flush=True)</pre><p>Now, when the MCP server performs an operation, the corresponding log notification appears in the agent terminal.</p><p>For example:</p><pre>[Agent] MCP log receiver initialized.</pre><pre>[MCP] Looking up coordinates for Helsinki<br>[MCP] Coordinates retrieved successfully</pre><pre>[MCP] Fetching 7-day weather forecast<br>[MCP] Weather forecast retrieved successfully</pre><pre>Agent Response:<br>...</pre><p>A small implementation detail, but it makes debugging and understanding the execution sequence much easier.</p><p><strong>One important distinction:</strong> MCP Streamable HTTP handles tool communication. UDP is only being used here as a lightweight local development log relay. It is not a production-grade observability or event-delivery pipeline.</p><p>For a browser-based experience or production deployment, I would use a proper event gateway with authenticated WebSockets or Server-Sent Events, along with a reliable logging and telemetry pipeline.</p><h3>💡 What I liked about this implementation</h3><p>A few architectural takeaways stood out:</p><p><strong>1. Separation of concerns</strong></p><p>The MCP server owns the external API integrations. The agent owns reasoning, intent interpretation, and orchestration.</p><p><strong>2. Reusable capabilities</strong></p><p>The weather tools are not tightly coupled to this particular agent. Other MCP-compatible clients and agents can potentially consume the same capabilities.</p><p><strong>3. Asynchronous execution</strong></p><p>The external API calls use httpx.AsyncClient, keeping the implementation aligned with asynchronous execution patterns.</p><p><strong>4. Structured tool responses</strong></p><p>Returning structured JSON makes it easier for the agent to interpret API results and generate meaningful responses.</p><p><strong>5. Extensible architecture</strong></p><p>Adding another capability — such as air quality, weather alerts, or travel advisories — can be approached as an additional tool rather than rewriting the entire agent.</p><h3>🚀 What’s next?</h3><p>This is a working implementation, but there is plenty of room to evolve it.</p><p>Some enhancements you could explore next:</p><ul><li><strong>Streamlit UI:</strong> Move beyond the terminal and expose the agent through a browser-based chat interface.</li><li><strong>Real-time execution visibility:</strong> Display tool invocation events and agent responses in the UI.</li><li><strong>WebSocket/SSE integration:</strong> Stream execution events to the browser.</li><li><strong>Travel intelligence:</strong> Combine weather forecasts with additional travel-related capabilities.</li><li><strong>Multi-agent orchestration:</strong> Introduce specialised agents for destination research, weather analysis, and travel planning.</li></ul><p>And perhaps the most interesting next step: turning this into a broader travel intelligence assistant rather than keeping it limited to weather.</p><h3>🎯 Final thoughts</h3><p>What makes this implementation interesting isn’t the weather API itself.</p><p>It’s the architecture.</p><p>We have an LLM-powered agent, independently hosted MCP capabilities, external REST API integrations, structured tool responses, and an execution observability mechanism — all working together in a single workflow.</p><p><strong>MCP provides the integration contract. Microsoft Agent Framework provides the orchestration layer. Azure AI Foundry provides the model inference capability.</strong></p><p>And together, they make it possible to build agents that do more than generate plausible text — they can interact with external systems and retrieve information to complete a task.</p><p>That’s the direction I find exciting about Agentic AI.</p><p><strong>Less chatbot. More capability. More orchestration. More real-world execution.</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd2df3ba5843" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/%EF%B8%8F-beyond-chatbots-using-microsoft-agent-framework-and-mcp-cd2df3ba5843">🌦️ Beyond Chatbots: Using Microsoft Agent Framework and MCP</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Foundry Local on Windows: A Quick Practical Installation and Configuration Guide ]]></title>
            <link>https://medium.com/@atanu.gupta/microsoft-foundry-local-on-windows-a-quick-practical-installation-and-configuration-guide-aeb86e6e4985?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/aeb86e6e4985</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[microsoft-foundry-local]]></category>
            <category><![CDATA[microsoft-foundry]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 09:45:13 GMT</pubDate>
            <atom:updated>2026-11-16T09:45:13.365Z</atom:updated>
            <content:encoded><![CDATA[<p>The AI ecosystem is rapidly evolving, and running Large Language Models (LLMs) locally is becoming an increasingly interesting option for developers and architects.</p><p>While cloud-hosted inference through Azure OpenAI and Microsoft Foundry offers scalability and managed infrastructure, there are scenarios where local inference makes more sense:</p><ul><li>Developing and testing AI applications without depending on cloud-hosted inference endpoints.</li><li>Experimenting with different LLMs on local development machines.</li><li>Building applications with local inference capabilities.</li><li>Exploring hardware-accelerated inference using CPU, GPU and supported execution providers.</li></ul><p>This is where <strong>Microsoft Foundry Local</strong> comes into the picture.</p><p>Foundry Local enables developers to download, manage and execute supported AI models directly on their local machines.</p><p>However, getting it operational on a Windows machine involves a few additional considerations beyond simply installing the CLI.</p><p>In this blog, I’ll walk through my hands-on experience setting up Microsoft Foundry Local on Windows, covering installation, model discovery, hardware compatibility, model loading and inference validation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jkp-DimvconosXhm_XDf0g.png" /></figure><h3>1. Installing Microsoft Foundry Local on Windows</h3><p>The installation process is relatively straightforward.</p><p>Open PowerShell or Windows Terminal and execute:</p><pre>winget install Microsoft.FoundryLocal</pre><p>Once installation completes, reopen your terminal and verify the installation:</p><pre>foundry</pre><p>You should now see the Foundry Local CLI and its available commands.</p><p>You can also check the installed version:</p><pre>foundry --version</pre><h3>2. Starting the Foundry Local Server</h3><p>Foundry Local runs a local service responsible for managing model discovery, model loading and inference requests.</p><p>Start the server:</p><pre>foundry server start</pre><p>Check the server status:</p><pre>foundry server status</pre><p>To stop the server:</p><pre>foundry server stop</pre><p>You can also inspect the overall Foundry Local status:</p><pre>foundry status</pre><p>This is an important validation step before moving towards model execution.</p><h3>3. Discovering AvailableOnce the server is operational, the next step is exploring the available models.</h3><p>Execute:</p><pre>foundry model list</pre><p>You can search for a specific model using:</p><pre>foundry model list --search qwen2.5-0.5b</pre><p>Foundry Local provides different model variants depending on the supported hardware and execution provider.</p><p><strong>This is where things get interesting!</strong> AI Models</p><h3>4. Understanding CPU and GPU Model Variants</h3><p>One of the most important things I learned during my setup was that selecting a model is not simply about choosing its name.</p><p>The same model can have multiple execution variants depending on the underlying hardware and execution provider.</p><p>To inspect the available variants, execute:</p><pre>foundry model list --search &lt;model-name&gt; --variants</pre><p>For example:</p><pre>foundry model list --search qwen2.5-0.5b --variants</pre><p>Or:</p><pre>foundry model list --search phi-3.5-mini --variants</pre><p>You may find variants targeting different execution environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*pcEuA0JbRBtxErjishiuHQ.png" /></figure><p>Some important considerations:</p><ul><li><strong>CPU variants:</strong> Useful when GPU acceleration is unavailable or incompatible.</li><li><strong>GPU variants:</strong> Depend on supported GPU hardware, drivers and execution providers.</li><li><strong>Execution providers:</strong> Determine how the model executes against the available hardware acceleration stack.</li></ul><p>During my laptop-based setup, I initially explored the OpenVINO GPU variants but encountered an ONNX Runtime execution-provider compatibility issue as it was not a GPU supported laptop 😒</p><p>The generic CPU variants worked successfully.</p><p><strong>My recommendation:</strong> Don’t assume that a GPU variant will work just because it appears in the model catalog. Always inspect the available variants and validate hardware compatibility.</p><h3>5. Running Your First Model Locally</h3><p>Once you identify a suitable model variant, you can execute it directly.</p><p>For example:</p><pre>foundry run Phi-3.5-mini-instruct-generic-cpu</pre><p>Another example:</p><pre>foundry run qwen2.5-0.5b-instruct-generic-cpu</pre><p>Foundry Local will handle the required model execution workflow.</p><p>At this point, you should be able to execute an LLM directly on your Windows machine without relying on a cloud inference endpoint.</p><h3>6. Explicitly Loading Models for API-Based Inference</h3><p>Here is another important step that developers should not overlook.</p><p>If you intend to consume the locally hosted model through the REST API or an OpenAI-compatible client, explicitly load the model into the inference runtime.</p><p>For example:</p><pre>foundry model load qwen2.5-0.5b-instruct-generic-cpu</pre><p>This ensures that the model is loaded and available for subsequent inference requests.</p><p>This distinction is important when moving from interactive CLI experimentation to application integration.</p><h3>7. Validating Local Inference</h3><p>Now let’s validate whether our local inference environment is operational.</p><p>Foundry Local provides a CLI command to execute a completion request.</p><pre>foundry complete qwen2.5-0.5b-instruct-generic-cpu &quot;Explain Azure in three sentences&quot;</pre><p>If the model returns a response, your local inference environment is working!</p><p>You have successfully installed Foundry Local, selected a compatible model variant, loaded it and executed an inference request. 😊</p><h3>8. Useful Configuration and Cache Commands</h3><p>A few additional commands are useful when troubleshooting or managing your local environment.</p><p><strong>Inspect Foundry Local configuration:</strong></p><pre>foundry config show</pre><p><strong>Find the local model cache location:</strong></p><pre>foundry cache location</pre><p><strong>List available models:</strong></p><pre>foundry model list</pre><p>These commands are particularly useful when working with multiple models and troubleshooting local storage or configuration-related issues.</p><h3>9. Common Things to Watch Out For</h3><p>Based on my hands-on experience, here are a few things worth remembering:</p><ol><li><strong>Hardware compatibility matters:</strong> A model’s availability does not guarantee that every execution variant will work on your machine.</li><li><strong>GPU execution is not always straightforward:</strong> Driver compatibility and ONNX Runtime execution providers can influence successful model initialization.</li><li><strong>CPU is a perfectly valid starting point:</strong> Start with a generic CPU variant to establish a working baseline before exploring hardware acceleration.</li><li><strong>Explicit model loading matters:</strong> When integrating with REST APIs or OpenAI-compatible clients, ensure the model is loaded into the inference runtime.</li><li><strong>Model selection matters:</strong> Start with smaller models when experimenting on resource-constrained development machines.</li></ol><h3>Conclusion</h3><p>Microsoft Foundry Local opens up interesting possibilities for developers who want to explore local LLM inference and build AI-powered applications without making every inference request dependent on a cloud-hosted endpoint.</p><p>However, getting the environment operational requires understanding more than the installation command. Model variants, hardware compatibility, execution providers and inference runtime configuration are equally important.</p><p>If you are planning to experiment with Microsoft Foundry Local on Windows, hopefully this walkthrough will save you some troubleshooting time.</p><p>Happy building with local AI! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aeb86e6e4985" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Is Your AI Agent Working Overtime When It Has a Team? ]]></title>
            <link>https://blog.gopenai.com/why-is-your-ai-agent-working-overtime-when-it-has-a-team-cffdbea16026?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/cffdbea16026</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[microsoft-agent-framework]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agent-orchestration]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 12:00:03 GMT</pubDate>
            <atom:updated>2026-11-16T11:59:09.251Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stop making AI agents wait for each other. Let’s introduce some teamwork with Microsoft Agent Framework (MAF)!</h3><p>Let’s do a small experiment.</p><p>You are planning a weekend in Kolkata, India</p><p>You need three things:</p><ul><li>Someone to investigate the weather.</li><li>Someone to find the best hotels.</li><li>Someone to shortlist the best restaurants.</li></ul><p>Now imagine hiring three people for these jobs.</p><p>Would you ask the weather researcher to finish their investigation, submit a report, and THEN allow the hotel researcher to start working?</p><p>And after that, would you ask the hotel researcher to finish before the restaurant researcher could even open Google?</p><p>Of course not!</p><p>That would be a terrible project management strategy.</p><p>Yet, this is exactly how we sometimes design AI workflows: one agent finishes its job, another starts, and the next one patiently waits in the queue.</p><p><strong>What if we could give the same problem to three specialized AI agents and let them work simultaneously?</strong></p><p>That’s exactly what I wanted to experiment with using Microsoft’s Agent Framework (MAF).</p><p>I decided to build a small City Intelligence System.</p><p>The idea is simple:</p><ul><li>Agent 1 investigates the climatic conditions.</li><li>Agent 2 finds the top five hotels.</li><li>Agent 3 finds the top five restaurants.</li><li>Agent 4 takes all three reports and produces one consolidated answer.</li></ul><p>Three agents doing the research. One agent playing the editor-in-chief.</p><p>And the interesting part? We don’t manually manage the parallel execution.</p><p>We let MAF handle the orchestration using ConcurrentBuilder.</p><p>Let’s build it! 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZDYxjq0dDKhClRGxj8bfw.png" /></figure><h3>1. The architecture: Three specialists, one coordinator</h3><p>Before jumping into the implementation, let’s understand what we are building.</p><p>We will create four specialized agents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*64kVhvnaKsWPEIBr4T2mGw.png" /></figure><p>The first three agents execute concurrently. Once they complete their assignments, a custom aggregator collects their outputs and invokes the fourth agent.</p><h3>Architecture</h3><pre>USER INPUT<br>                 Kolkata, India<br>                       |<br>                       v<br>               ConcurrentBuilder<br>                       |<br>           +-----------+-----------+<br>           |           |           |<br>           v           v           v<br>        CLIMATE      HOTEL     RESTAURANT<br>         AGENT       AGENT        AGENT<br>           |           |           |<br>           v           v           v<br>        Climate      Top 5       Top 5<br>        Analysis     Hotels    Restaurants<br>           |           |           |<br>           +-----------+-----------+<br>                       |<br>                       v<br>               CUSTOM AGGREGATOR<br>                       |<br>                       v<br>                SUMMARIZER AGENT<br>                       |<br>                       v<br>               CONSOLIDATED REPORT</pre><p>Notice that the Summarizer is not part of the concurrent participant list.</p><p>It is invoked separately through the custom aggregator after the three specialist agents complete their execution.</p><p>This separation between parallel execution and result synthesis is an important architectural concept. 👍</p><h3>2. Let’s build our AI workforce</h3><p>For this implementation, I am using:</p><ul><li>Python</li><li>Microsoft Agent Framework</li><li>Azure AI Foundry</li><li>GPT-4o-mini</li><li>Azure CLI authentication</li></ul><p>Install the dependencies:</p><pre>pip install agent-framework azure-identity python-dotenv</pre><p>Authenticate using Azure CLI:</p><pre>az login</pre><p>Configure your Foundry project endpoint and model in a .env file:</p><pre>FOUNDRY_PROJECT_ENDPOINT=https://&lt;your-foundry-project-endpoint&gt;<br>FOUNDRY_MODEL=gpt-4o-mini</pre><h3>Defining the agents</h3><p>Each agent gets a specific set of instructions:</p><pre>instructions_climate = (<br>    &quot;You are an intelligent agent who gets the precise &quot;<br>    &quot;climatic conditions of any city. &quot;<br>    &quot;Just give a summary of the climatic conditions &quot;<br>    &quot;and nothing else.&quot;<br>)<br><br>instructions_hotels = (<br>    &quot;You are an intelligent agent who gets the top hotels &quot;<br>    &quot;in any city. &quot;<br>    &quot;Just give the list of top 5 hotels and nothing else.&quot;<br>)<br><br>instructions_restaurants = (<br>    &quot;You are an intelligent agent who gets the top &quot;<br>    &quot;restaurants in any city. &quot;<br>    &quot;Just give the list of top 5 restaurants and nothing else.&quot;<br>)<br><br>instructions_summarizer = (<br>    &quot;You are a helpful assistant that consolidates &quot;<br>    &quot;multiple domain expert outputs into one cohesive, &quot;<br>    &quot;concise summary with clear takeaways. &quot;<br>    &quot;Keep it under 200 words.&quot;<br>)</pre><p>Next, initialize the Azure AI Foundry client and create the agents.</p><pre>chat_client = FoundryChatClient(<br>    project_endpoint=os.environ[&quot;FOUNDRY_PROJECT_ENDPOINT&quot;],<br>    model=os.environ[&quot;FOUNDRY_MODEL&quot;],<br>    credential=AzureCliCredential()<br>)</pre><pre>climate_finder = chat_client.as_agent(<br>    instructions=instructions_climate,<br>    name=&quot;climate_finder&quot;<br>)</pre><pre>hotel_finder = chat_client.as_agent(<br>    instructions=instructions_hotels,<br>    name=&quot;hotel_finder&quot;<br>)</pre><pre>restaurant_finder = chat_client.as_agent(<br>    instructions=instructions_restaurants,<br>    name=&quot;restaurant_finder&quot;<br>)</pre><pre>summarizer_agent = chat_client.as_agent(<br>    instructions=instructions_summarizer,<br>    name=&quot;summarizer&quot;<br>)</pre><p>We now have four specialized agents.</p><p>Three are responsible for independent research. The fourth is responsible for consolidating their findings.</p><h3>3. The interesting part: Custom aggregation</h3><p>Creating multiple agents is one thing. Getting them to work together is another.</p><p>How do we collect their individual responses? How do we preserve the identity of each agent? And how do we pass everything to the summarizer?</p><p>This is where MAF’s with_aggregator() capability comes into play.</p><p>Here is our custom aggregation function:</p><pre>async def summarize_results(<br>    results: list[AgentExecutorResponse]<br>) -&gt; str:</pre><pre>    expert_sections = []</pre><pre>    for r in results:<br>        try:<br>            messages = getattr(<br>                r.agent_response,<br>                &quot;messages&quot;,<br>                []<br>            )</pre><pre>            final_text = (<br>                messages[-1].text<br>                if messages and hasattr(messages[-1], &quot;text&quot;)<br>                else &quot;(no content)&quot;<br>            )</pre><pre>            expert_sections.append(<br>                f&quot;{r.executor_id}:\n{final_text}&quot;<br>            )</pre><pre>        except Exception as e:<br>            expert_sections.append(<br>                f&quot;{r.executor_id}: &quot;<br>                f&quot;(error: {type(e).__name__}: {e})&quot;<br>            )</pre><pre>    prompt = &quot;\n\n&quot;.join(expert_sections)</pre><pre>    response = await summarizer_agent.run(prompt)</pre><pre>    return (<br>        response.messages[-1].text<br>        if response.messages<br>        else &quot;&quot;<br>    )</pre><p>The aggregator performs three important operations:</p><ol><li><strong>Collect:</strong> Retrieves the final response from each participating agent.</li><li><strong>Consolidate:</strong> Combines the responses while preserving the executor identity.</li><li><strong>Synthesize:</strong> Invokes the Summarizer agent to generate one unified response.</li></ol><p>For example, the aggregator can combine outputs in this format:</p><pre>climate_finder:<br>Kolkata experiences a tropical wet-and-dry climate...</pre><pre>hotel_finder:<br>1. Hotel A<br>2. Hotel B<br>...</pre><pre>restaurant_finder:<br>1. Restaurant A<br>2. Restaurant B<br>...</pre><p>The summarizer receives this combined context and produces the final answer.</p><p><strong>We are not merely collecting agent responses. We are introducing an additional reasoning stage into the orchestration pipeline.</strong></p><h3>4. Bringing everything together with ConcurrentBuilder</h3><p>Now comes the most important part of the implementation.</p><pre>workflow = (<br>    ConcurrentBuilder(<br>        participants=[<br>            climate_finder,<br>            hotel_finder,<br>            restaurant_finder<br>        ]<br>    )<br>    .with_aggregator(summarize_results)<br>    .build()<br>)</pre><p>Look at how simple this is!</p><ul><li>participants defines the agents that execute concurrently.</li><li>with_aggregator() registers our custom aggregation function.</li><li>build() constructs the workflow.</li></ul><p>We don’t need to manually coordinate the execution of three independent agents.</p><p>MAF provides the orchestration abstraction.</p><p>And our summarizer remains outside the concurrent participant list because it is invoked by the aggregator after the parallel execution completes.</p><h3>5. Execute the workflow!</h3><p>Let’s execute the entire workflow with a simple input.</p><pre>async def main():</pre><pre>    events = await workflow.run(<br>        &quot;Kolkata, India&quot;<br>    )</pre><pre>    outputs = events.get_outputs()</pre><pre>    if outputs:<br>        print(&quot;===== Final Aggregated Results =====&quot;)</pre><pre>        final: AgentResponse = outputs[0]</pre><pre>        print(final)<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    asyncio.run(main())</pre><p>That’s it! 😊</p><p>One input. Three concurrent agents. One custom aggregator. One consolidated response.</p><p>And the best part? Change &quot;Kolkata, India&quot; to &quot;Tokyo, Japan&quot; or &quot;Singapore&quot; and reuse the same workflow.</p><p>No need to rewrite your orchestration logic.</p><h3>6. Sequential vs Concurrent: Why should we care?</h3><p>Let’s assume the three agents take the following time to complete their assignments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*3bwUPzvkSBtlMSoucdX-aA.png" /></figure><p>In a sequential implementation:</p><p>5 + 8 + 10 = <strong>23 seconds</strong></p><p>With concurrent execution:</p><p>max(5, 8, 10) = <strong>10 seconds</strong></p><p>The actual workflow will take additional time for orchestration and the summarizer invocation, but the independent research phase can be significantly faster.</p><p>This is the fundamental advantage of concurrent orchestration.</p><p><strong>Why make one agent wait for another when their tasks are completely independent?</strong></p><h3>7. Where can we use this in enterprise AI?</h3><p>Now forget hotels and restaurants for a moment.</p><p>Think about enterprise use cases.</p><p><strong>Azure Cloud Assessment</strong></p><ul><li>Infrastructure Agent evaluates Azure resource configurations.</li><li>Security Agent evaluates security posture and compliance.</li><li>FinOps Agent identifies cost optimization opportunities.</li><li>Summarizer generates an executive assessment report.</li></ul><p><strong>Enterprise RAG</strong></p><ul><li>HR Agent retrieves HR policies.</li><li>Finance Agent retrieves financial policies.</li><li>Legal Agent retrieves compliance documentation.</li><li>Summarizer consolidates relevant information.</li></ul><p><strong>Customer Intelligence</strong></p><ul><li>Sentiment Agent analyzes customer feedback.</li><li>Transaction Agent analyzes purchase history.</li><li>Support Agent analyzes customer interactions.</li><li>Summarizer generates a consolidated customer intelligence report.</li></ul><p><strong>The possibilities are extensive.</strong></p><p>Whenever a business problem can be decomposed into independent tasks, concurrent multi-agent orchestration becomes an interesting architectural option.</p><h3>8. A few production considerations</h3><p>Before deploying this architecture in production, keep a few things in mind:</p><ul><li><strong>Failure handling:</strong> Implement retry, timeout, and partial-result strategies.</li><li><strong>Cost management:</strong> Each agent can trigger an independent LLM invocation. The summarizer introduces another invocation.</li><li><strong>Context management:</strong> Avoid passing unnecessarily large responses to the summarizer.</li><li><strong>Observability:</strong> Capture agent-level execution latency, token consumption, failures, and aggregation duration.</li><li><strong>Data grounding:</strong> Our demonstration agents do not have external weather, hotel-search, or restaurant-search tools attached. For production, connect them to reliable APIs or MCP servers to retrieve verified information.</li></ul><p>Remember, concurrent execution improves the execution model. It does not automatically guarantee better data quality or lower inference costs.</p><h3>9. The takeaway</h3><p>We started with a simple travel-planning question.</p><p>But what we actually built was a reusable concurrent multi-agent orchestration pattern using Microsoft Agent Framework.</p><p>Three specialized agents independently execute their assignments. A custom aggregator collects their responses. A fourth agent synthesizes everything into a consolidated answer.</p><p>The interesting architectural shift is moving away from a single AI agent trying to do everything towards a coordinated ecosystem of specialized agents.</p><p><strong>One agent can answer a question. A well-orchestrated team of agents can tackle a much broader problem.</strong></p><p>And remember:</p><p>You don’t always need one super-intelligent AI agent doing everything.</p><p>Sometimes, you just need a well-coordinated team!</p><p>Happy building with Microsoft Agent Framework.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cffdbea16026" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/why-is-your-ai-agent-working-overtime-when-it-has-a-team-cffdbea16026">Why Is Your AI Agent Working Overtime When It Has a Team? 🚀</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Multi-Agent AI Workflows : A Practical Guide to Sequential Orchestration in Microsoft…]]></title>
            <link>https://blog.gopenai.com/building-multi-agent-ai-workflows-a-practical-guide-to-sequential-orchestration-in-microsoft-68f3961543ae?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/68f3961543ae</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agent-orchestration]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[microsoft-agent-framework]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 10:11:18 GMT</pubDate>
            <atom:updated>2026-11-04T02:57:13.493Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Multi-Agent AI Workflows : A Practical Guide to Sequential Orchestration in Microsoft Agent Framework 🚀</h3><h3>Moving Beyond Single-Agent AI Applications</h3><p>The evolution of Generative AI is moving beyond simple conversational chatbots and single-agent implementations towards sophisticated multi-agent architectures.</p><p>While a single AI agent can handle a variety of tasks, complex enterprise scenarios often require multiple specialized agents working together, with each agent responsible for a specific domain of expertise.</p><p>Consider a simple scenario:</p><p>You ask an AI application:</p><p><em>“Create a budget-friendly travel itinerary for the birthplace of cricketer Sachin Tendulkar.”</em></p><p>To fulfill this request, the application needs to perform two distinct operations:</p><ol><li>Identify Sachin Tendulkar’s precise city and country of birth as Step 1.</li><li>Use that exact geographical information of Step 1 to generate a budget-friendly travel itinerary.</li></ol><p>We could implement both operations using a single AI agent. However, this approach combines multiple responsibilities into one instruction set, making the application harder to maintain, extend, and govern.</p><p>What if we could create two independent AI agents?</p><ul><li><strong>Agent 1 — City Finder:</strong> Specializes in identifying the city and country of birth of a cricket player.</li><li><strong>Agent 2 — Travel Planner:</strong> Specializes in generating budget-friendly travel itineraries based on a given city and country.</li></ul><p>Now, how do we make these agents communicate with each other?</p><p>This is where <strong>Microsoft Agent Framework’s Sequential Orchestration</strong> becomes interesting.</p><p>Microsoft Agent Framework provides orchestration capabilities that allow developers to coordinate multiple agents through predefined workflow patterns rather than manually implementing the communication and execution sequence.</p><p>In this article, we will build this complete scenario using Python, Microsoft Agent Framework, and Microsoft Foundry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1-pEpvQZ1CVRiHkgAoPSw.png" /></figure><h3>What Is Sequential Orchestration?</h3><p>Sequential orchestration is one of the simplest ways to implement a multi-agent architecture.</p><p>In this approach, agents are organized into a pipeline. Each agent executes its assigned responsibility and passes its output to the next agent.</p><p>Think of it as a processing pipeline:</p><p><strong>Input → Agent 1 → Agent 2 → Agent 3 → Final Output</strong></p><p>Each agent receives the output generated by its predecessor and uses that information to execute its own task.</p><p>For our implementation, the workflow looks like this:</p><h3>Solution architecture</h3><pre>                 USER INPUT<br>                     |<br>                     |<br>             Sachin Tendulkar<br>                     |<br>                     v<br>        +-------------------------+<br>        |    Microsoft Foundry    |<br>        |       Chat Client       |<br>        +-------------------------+<br>                     |<br>                     v<br>        +-------------------------+<br>        |       Agent 01          |<br>        |       City Finder       |<br>        |                         |<br>        |  Identify birth city    |<br>        |  and country            |<br>        +-------------------------+<br>                     |<br>                     |<br>             Agent Response<br>                     |<br>                     v<br>        +-------------------------+<br>        |   SequentialBuilder    |<br>        |                         |<br>        |  Context Propagation    |<br>        |  and Workflow Execution |<br>        +-------------------------+<br>                     |<br>                     v<br>        +-------------------------+<br>        |       Agent 02          |<br>        |      Travel Planner     |<br>        |                         |<br>        |  Generate budget       |<br>        |  friendly itinerary    |<br>        +-------------------------+<br>                     |<br>                     v<br>        +-------------------------+<br>        |     Final Response      |<br>        |                         |<br>        |  Travel Itinerary       |<br>        +-------------------------+</pre><p>Notice something important here.</p><p>We are not explicitly calling Agent 1 and then manually passing its response to Agent 2.</p><p>Instead, we define the participants in a SequentialBuilder workflow and let the framework coordinate the execution.</p><p>That is the key concept.</p><h3>Prerequisites and Environment Setup</h3><p>Before implementing the solution, make sure you have the following components available.</p><p><strong>Technical prerequisites:</strong></p><ul><li>Python 3.10+ (use a Python version supported by your selected Agent Framework release).</li><li>Microsoft Foundry project.</li><li>A model deployment accessible through your Foundry project.</li><li>Azure CLI.</li><li>Azure identity authentication.</li><li>Microsoft Agent Framework Python packages.</li></ul><h3>Step 1: Install the required packages</h3><p>Install the relevant Python dependencies:</p><pre>pip install agent-framework-foundry<br>pip install agent-framework-orchestrations<br>pip install azure-identity<br>pip install python-dotenv</pre><p>For reproducible development environments, I recommend maintaining a requirements.txt file and pinning package versions after validating compatibility.</p><h3>Step 2: Authenticate with Azure</h3><p>Since we are using AzureCliCredential, authenticate through Azure CLI:</p><pre>az login</pre><p>Make sure the signed-in identity has the necessary permissions to access the Microsoft Foundry project and its deployed model.</p><h3>Step 3: Configure environment variables</h3><p>Create a .env file in your project directory.</p><pre>FOUNDRY_PROJECT_ENDPOINT=https://your-project-endpoint<br>FOUNDRY_MODEL=your-model-deployment-name</pre><p>Replace these values with the actual endpoint and model deployment name from your Microsoft Foundry project.</p><p>The benefit of using environment variables is that application configuration remains decoupled from the application source code.</p><p>For production deployments, use an appropriate managed identity or another supported workload identity rather than relying on interactive Azure CLI authentication.</p><h3>Implementation: Building Our First Multi-Agent Workflow</h3><p>Now comes the interesting part.</p><p>We will implement two specialized agents and connect them using the SequentialBuilder orchestration pattern.</p><h3>Step 1: Import the required libraries</h3><pre>import os<br>import asyncio<br>from dotenv import load_dotenv<br><br>from agent_framework.foundry import FoundryChatClient<br>from agent_framework.orchestrations import SequentialBuilder<br>from agent_framework import AgentResponse<br><br>from azure.identity import AzureCliCredential</pre><h3>Step 2: Define agent instructions</h3><p>This is where we establish the individual responsibilities of our agents.</p><p>We will create two instruction sets.</p><p><strong>Agent 1 — City Finder</strong></p><pre>instructions_agent01 = (<br>    &quot;You are an intelligent agent who gets the precise city and &quot;<br>    &quot;country of birth of any cricket player. &quot;<br>    &quot;Just give the name of the city and country only and nothing else. &quot;<br>    &quot;Output format: &quot;<br>    &quot;{&#39;city&#39;: &#39;city_name&#39;, &#39;country&#39;: &#39;country_name&#39;}&quot;<br>)</pre><p>The responsibility of this agent is straightforward.</p><p>It receives the name of a cricket player and identifies the player’s birth city and country.</p><p>We are also instructing the agent to return its response in a structured-looking format.</p><p>For example:</p><pre>{<br>    &quot;city&quot;: &quot;Mumbai&quot;,<br>    &quot;country&quot;: &quot;India&quot;<br>}</pre><p>Why is this important?</p><p>Because the next agent needs geographical information to generate the travel itinerary.</p><p>A concise and predictable intermediate response reduces unnecessary conversational content being passed between agents.</p><p>Note that the prompt describes a desired format; it does not enforce JSON schema validation. For production applications, use structured output capabilities and validate the response against a defined schema.</p><p><strong>Agent 2 — Travel Planner</strong></p><pre>instructions_agent02 = (<br>    &quot;You are a specialized agent in giving expert 1N/2D &quot;<br>    &quot;budget friendly travel itinerary for a given place in a country. &quot;<br>    &quot;Only recommend places, hotels, transport and restaurants &quot;<br>    &quot;suggestions which will in making the plan better and budget friendly. &quot;<br>    &quot;You will get the city and country from the previous agent. &quot;<br>    &quot;Just give the travel itinerary based on that information.&quot;<br>)</pre><p>This agent has a completely different responsibility.</p><p>It receives the city and country generated by Agent 1 and uses that information to prepare a one-night, two-day budget-friendly itinerary.</p><p>Notice that we do not need to explicitly tell this agent to identify the cricket player’s birthplace.</p><p>That responsibility belongs to Agent 1.</p><p>This is the fundamental design principle behind specialized multi-agent systems:</p><p><strong>One agent, one clearly defined responsibility.</strong></p><h3>Initialize Microsoft Foundry Chat Client</h3><p>Now we need to connect our agents to a model deployed in Microsoft Foundry.</p><pre>load_dotenv(override=True)</pre><pre>chat_client = FoundryChatClient(<br>    project_endpoint=os.environ[&quot;FOUNDRY_PROJECT_ENDPOINT&quot;],<br>    model=os.environ[&quot;FOUNDRY_MODEL&quot;],<br>    credential=AzureCliCredential()<br>)</pre><p>Let’s understand the configuration.</p><p><strong>project_endpoint</strong></p><p>This identifies the Microsoft Foundry project endpoint through which the application communicates with the model service.</p><p><strong>model</strong></p><p>This specifies the model deployment name configured in the Foundry project.</p><p>For example, you can use a compatible deployment such as GPT-4o-mini, provided it is available in your project.</p><p><strong>credential</strong></p><p>We are using AzureCliCredential() to authenticate the application through the Azure CLI identity.</p><p>One important architectural advantage is that we initialize a single chat client and reuse it for both agents.</p><p>We do not need to create an independent model client for every agent.</p><p>Each agent can have its own instructions and responsibilities while sharing the underlying model client configuration.</p><h3>Create specialized AI agents</h3><p>Now let’s create our two agents.</p><pre>city_finder = chat_client.as_agent(<br>    instructions=instructions_agent01,<br>    name=&quot;city_finder&quot;<br>)</pre><pre>travel_planner = chat_client.as_agent(<br>    instructions=instructions_agent02,<br>    name=&quot;travel_planner&quot;<br>)</pre><p>This is where we convert the chat client into specialized agents.</p><p>The as_agent() method allows us to define an agent using:</p><ul><li>Instructions.</li><li>Agent identity.</li><li>The underlying chat client.</li></ul><p>We now have two independent logical agents:</p><p><strong>city_finder</strong></p><p>Responsible for identifying the birth city and country.</p><p><strong>travel_planner</strong></p><p>Responsible for generating the travel itinerary.</p><p>Both agents use the same underlying Foundry chat client, but their instructions establish different roles and responsibilities.</p><h3>Build the sequential workflow</h3><p>This is the most important part of our implementation.</p><pre>workflow = SequentialBuilder(<br>    participants=[<br>        city_finder,<br>        travel_planner<br>    ],<br>    chain_only_agent_responses=True<br>).build()</pre><p>Let’s break this down.</p><p><strong>SequentialBuilder</strong></p><p>This is the orchestration component that creates the sequential execution pipeline.</p><p><strong>participants</strong></p><p>This parameter defines the agents participating in the workflow.</p><p>The order is important.</p><pre>participants=[<br>    city_finder,<br>    travel_planner<br>]</pre><p>This means:</p><ol><li>Execute city_finder.</li><li>Pass its response to travel_planner.</li><li>Return the final workflow output.</li></ol><p><strong>chain_only_agent_responses=True</strong></p><p>This is particularly interesting.</p><p>By default, sequential orchestration passes the previous agent’s full conversation context to the next agent.</p><p>This includes the input messages and the previous agent’s response messages.</p><p>However, setting:</p><pre>chain_only_agent_responses=True</pre><p>configures the workflow to pass only the previous agent’s response messages to the next agent.</p><p>In our example:</p><ul><li>The first agent receives the original user input: Sachin Tendulkar.</li><li>The first agent generates the city and country.</li><li>The second agent receives the first agent’s response rather than the entire preceding conversation.</li></ul><p>Conceptually:</p><pre>Original User Input<br>        |<br>        v<br>   City Finder<br>        |<br>        v<br>Agent 1 Response<br>        |<br>        v<br>  Travel Planner<br>        |<br>        v<br> Final Itinerary</pre><p>Why does this matter?</p><p>There are several advantages:</p><ol><li><strong>Context isolation:</strong> The downstream agent receives the output of its predecessor rather than the entire preceding conversation.</li><li><strong>Reduced context noise:</strong> Irrelevant conversational history is not automatically propagated.</li><li><strong>Task specialization:</strong> Each agent focuses on the output generated by the previous agent.</li><li><strong>Better pipeline design:</strong> This approach is useful for transformation-oriented workflows.</li></ol><p>Each agent can focus on transforming the output produced by the previous agent.</p><p>This is one of the key concepts to understand when implementing sequential orchestration.</p><h3>Execute the workflow asynchronously</h3><p>Let’s now execute the workflow.</p><pre>async def main():</pre><pre>    workflow = SequentialBuilder(<br>        participants=[city_finder, travel_planner],<br>        chain_only_agent_responses=True<br>    ).build()</pre><pre>    events = await workflow.run(&quot;Sachin Tendulkar&quot;)</pre><pre>    outputs = events.get_outputs()</pre><pre>    if outputs:</pre><pre>        print(&quot;===== Final Response =====&quot;)</pre><pre>        final: AgentResponse = outputs[0]</pre><pre>        for msg in final.messages:</pre><pre>            name = msg.author_name or &quot;assistant&quot;</pre><pre>            print(f&quot;[{name}]\n{msg.text}&quot;)<br></pre><pre>if __name__ == &quot;__main__&quot;:<br>    asyncio.run(main())</pre><p>Let’s understand the execution flow.</p><p><strong>workflow.run()</strong></p><pre>events = await workflow.run(&quot;Sachin Tendulkar&quot;)</pre><p>This initiates the sequential workflow with the user input.</p><p>The framework coordinates the execution of the participating agents according to the sequence defined in SequentialBuilder.</p><p><strong>get_outputs()</strong></p><pre>outputs = events.get_outputs()</pre><p>This retrieves the workflow’s final output.</p><p>In this implementation, the final participant, travel_planner, produces the default workflow output.</p><p><strong>AgentResponse</strong></p><pre>final: AgentResponse = outputs[0]</pre><p>We retrieve the final agent response.</p><p><strong>Iterating through messages</strong></p><pre>for msg in final.messages:</pre><pre>    name = msg.author_name or &quot;assistant&quot;</pre><pre>    print(f&quot;[{name}]\n{msg.text}&quot;)</pre><p>This allows us to inspect the messages available in the final response and print the associated author name and message content.</p><p>Finally:</p><pre>asyncio.run(main())</pre><p>This executes the asynchronous Python entry point.</p><p>And that’s it!</p><p>We have successfully implemented a multi-agent sequential workflow without manually managing the agent-to-agent execution sequence.</p><h3>Understanding the Expected Execution Flow</h3><p>When we execute the application with:</p><pre>events = await workflow.run(&quot;Sachin Tendulkar&quot;)</pre><p>The logical execution sequence is:</p><p><strong>Stage 1: User Input</strong></p><pre>Sachin Tendulkar</pre><p><strong>Stage 2: City Finder</strong></p><p>The first agent identifies the birthplace.</p><p>Illustrative intermediate response:</p><pre>{<br>    &quot;city&quot;: &quot;Mumbai&quot;,<br>    &quot;country&quot;: &quot;India&quot;<br>}</pre><p><strong>Stage 3: Context Propagation</strong></p><p>The sequential orchestration passes the previous agent’s response to the next agent.</p><p><strong>Stage 4: Travel Planner</strong></p><p>The second agent uses the geographical information to generate a one-night, two-day budget-friendly itinerary.</p><p><strong>Stage 5: Final Output</strong></p><p>The workflow returns the final travel itinerary.</p><p>An illustrative response might contain:</p><ul><li>Day 1 sightseeing recommendations.</li><li>Budget accommodation suggestions.</li><li>Local transportation options.</li><li>Restaurant recommendations.</li><li>Day 2 activities.</li><li>Approximate travel expenses.</li></ul><p>The exact itinerary is generated by the model and can vary between executions.</p><p>An important point: the framework orchestrates the agents, but it does not automatically provide real-time hotel availability, restaurant reservations, or verified travel prices. Those capabilities would require suitable external tools or APIs.</p><h3>Why Is Sequential Orchestration Important?</h3><p>Let’s understand why this approach is useful beyond our cricket-player example.</p><h3>A. Separation of concerns</h3><p>Each agent has a specific responsibility.</p><p>The City Finder does not need to understand travel planning.</p><p>The Travel Planner does not need to understand cricket-player research.</p><p>This makes the overall architecture modular.</p><h3>B. Reusability</h3><p>Suppose tomorrow we want to build another application that generates travel itineraries based on a city.</p><p>We can reuse the existing Travel Planner agent without rebuilding its core functionality.</p><p>We can simply connect it to another agent that identifies cities through a different business process.</p><h3>C. Maintainability</h3><p>If the travel-planning logic changes, we only need to update the instructions or capabilities of the Travel Planner.</p><p>We do not need to modify the City Finder.</p><h3>D. Extensibility</h3><p>We can introduce additional agents without fundamentally changing the architecture.</p><p>For example:</p><pre>City Finder<br>     |<br>     v<br>Weather Agent<br>     |<br>     v<br>Travel Planner<br>     |<br>     v<br>Budget Calculator<br>     |<br>     v<br>Final Travel Itinerary</pre><p>We can progressively introduce additional capabilities into the workflow.</p><h3>E. Workflow-level coordination</h3><p>The framework manages the execution sequence and message propagation.</p><p>Developers can focus on designing the agents and defining the business workflow instead of manually implementing every agent-to-agent interaction.</p><h3>When Should You Use Sequential Orchestration?</h3><p>Sequential orchestration is particularly useful when one agent’s output is a prerequisite for another agent’s execution.</p><p>Here are some practical enterprise scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*UZvRX3KYl4X1CECcPoP4iQ.png" /></figure><p>These are architectural examples. Real-world implementations would need appropriate data validation, access controls, domain-specific safeguards, and human review where necessary.</p><p>The most important takeaway is that <strong>building an AI agent is only one part of an agentic application. Designing how multiple agents collaborate, exchange context, and execute business processes is where orchestration becomes critical.</strong></p><p>The future of enterprise AI is not just about building smarter individual agents. It is about building intelligent systems where specialized agents work together to solve complex business problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68f3961543ae" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/building-multi-agent-ai-workflows-a-practical-guide-to-sequential-orchestration-in-microsoft-68f3961543ae">Building Multi-Agent AI Workflows : A Practical Guide to Sequential Orchestration in Microsoft…</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Prompt: In Banking, an AI cannot guess. ❌]]></title>
            <link>https://medium.com/@atanu.gupta/beyond-the-prompt-in-banking-an-ai-cannot-guess-9c8eb026eb97?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c8eb026eb97</guid>
            <category><![CDATA[context-engineering]]></category>
            <category><![CDATA[finance-and-banking]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Tue, 13 Oct 2026 05:40:40 GMT</pubDate>
            <atom:updated>2026-10-13T05:40:40.035Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of Generative AI, a popular myth persists: if your AI agent makes a mistake, you just need a better prompt. We’ve all seen the advice — add <em>“You are an expert financial advisor”</em> or <em>“Take a deep breath and think step-by-step”</em> to your instructions, and magically, the outputs will improve.</p><p>But in retail banking and corporate finance, that advice isn’t just ineffective — it’s a regulatory liability.</p><p><strong>In banking, an AI cannot guess. ❌</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SmhOizGepQL46qMtEgsCAQ.jpeg" /></figure><p>If a customer asks, <em>“What is my account balance?”</em> the answer must be 100% exact. If they ask for a mortgage calculation, the agent cannot hallucinate a number. “Close enough” might work for creative copywriting or marketing brainstorms, but it fails instantly when facing an internal audit board or compliance framework.</p><p>This stark reality is why the financial sector is quietly moving past the hype of <strong>Prompt Engineering</strong> and heavily investing in <strong>Context Engineering</strong>.</p><h3><strong>The Golden Retriever Guarding the Sandwich</strong></h3><p>To understand why this shift is happening, we have to look at what Large Language Models (LLMs) actually are. They are probabilistic language engines. They excel at predicting the next most likely word in a sentence based on patterns. What they are <em>not</em> are calculators, mainframes, or relational databases.</p><p>Telling an LLM, <em>“You are a certified accountant, please do not make up math,”</em> is like asking a golden retriever 🐶to guard a sandwich 🥪🌭. It understands the words you are saying, but its fundamental nature makes it incredibly difficult to resist doing what it does best: generating creative text.</p><p>If you ask a raw LLM to calculate a compound interest rate via a prompt, it will often output a number that looks beautifully formatted and entirely plausible. The only problem? The math is completely fabricated.</p><h3><strong>Enter Context Engineering</strong></h3><p>Where prompt engineering tries to <em>convince</em> a model to behave deterministically through instructions, <strong>context engineering</strong> wraps the model in a hard-coded system architecture that forces it to be accurate.</p><p>Instead of treating the LLM as the brain that computes the answer, context engineering demotes the LLM to a highly skilled translator. The actual heavy lifting of data retrieval, verification, and arithmetic is handled by traditional, rigid code.</p><p>A modern banking AI pipeline follows a strict, non-negotiable loop:</p><ul><li><strong>Intent Extraction (The LLM’s job):</strong> The user asks, <em>“Can I afford a $400k home loan on my current salary?”</em> The LLM reads the natural language and maps it to a specific, hard-coded intent code: CALCULATE_MORTGAGE_ELIGIBILITY.</li><li><strong>Deterministic Execution (The Code’s job):</strong> Safe, traditional software APIs intercept that intent. The system fetches the customer’s actual credit score, current debt-to-income ratio, and live interest rates from the core banking mainframe. Traditional database logic calculates the exact number.</li><li><strong>Context Assembly (Context Engineering):</strong> The engineering system packages these exact, verified numbers into a hyper-locked, temporary context window. It hands this package back to the LLM with strict boundaries.</li><li><strong>Polite Translation:</strong> The LLM reads the verified numbers from its context window and formats them into a conversational sentence: <em>“Based on your current monthly savings, a $400,000 mortgage would result in a payment of…”</em></li></ul><p>The AI isn’t allowed to think, guess, or remember past data. It simply reads the specific “truth” injected into its immediate context and translates it.</p><h3><strong>The Bottom Line</strong></h3><p>When the financial health of your customers — and your regulatory standing — is on the line, you cannot leave accuracy up to the mood of a probabilistic model.</p><p>Success isn’t about how well you talk to the AI; it’s about how well you build the architecture around it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c8eb026eb97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Passion for AI Is More Important Than AI Itself… Isn’t it ℹ️]]></title>
            <link>https://medium.com/@atanu.gupta/passion-for-ai-is-more-important-than-ai-itself-isnt-it-%E2%84%B9%EF%B8%8F-51ff671528c3?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/51ff671528c3</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 03:46:36 GMT</pubDate>
            <atom:updated>2026-09-03T03:46:36.402Z</atom:updated>
            <content:encoded><![CDATA[<p>We are living through one of the fastest technology cycles in history.</p><p>A model that was state-of-the-art six months ago may no longer be the obvious choice today. A framework that everyone was talking about yesterday can suddenly be replaced by something better. RAG evolves into Agentic RAG. Prompt engineering gives way to context engineering. AI assistants evolve into autonomous agents.</p><p>And tomorrow, something else will replace them.</p><p>So, what really matters?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9awxHGUwPYNdblLsddXd7g.png" /></figure><h3><strong>Passion for AI.</strong></h3><p>Not just the ability to use AI — but the curiosity to understand it, question it, experiment with it, and continuously learn what is happening underneath the abstractions.</p><h3>AI knowledge has a shelf life</h3><p>Consider how quickly the AI stack has evolved.</p><p>We moved from:</p><p><strong>LLMs → Prompt Engineering → RAG → Agentic RAG → Tool Calling → Multi-Agent Systems → Agentic Workflows</strong></p><p>At the infrastructure layer, we moved from simply hosting models to thinking about:</p><p><strong>Inference optimization → GPU utilization → Model routing → Quantization → Embedding strategies → Vector search → Semantic caching → Model observability</strong></p><p>And this evolution isn’t slowing down.</p><p>If your expertise is limited to <em>“I know how to call this API”</em>, your knowledge has a relatively short half-life.</p><p>But if you understand <strong>why</strong> the API works, <strong>what problem it solves</strong>, and <strong>what underlying principle it represents</strong>, you can adapt when the API disappears.</p><p>That’s the difference between <strong>tool knowledge and foundational knowledge</strong>.</p><h3>Curiosity creates technological resilience</h3><p>Take RAG as an example.</p><p>Someone can learn:</p><blockquote><em>Upload documents → create embeddings → store them in a vector database → retrieve chunks → send them to an LLM.</em></blockquote><p>That’s useful.</p><p>But someone curious about the underlying mechanics starts asking different questions:</p><p>Why did this chunk get retrieved?</p><p>Why was another relevant chunk missed?</p><p>Is cosine similarity actually the right metric?</p><p>Would hybrid search perform better?</p><p>Should I use a reranker?</p><p>Is the embedding model appropriate for my domain?</p><p>What happens when the query contains entities that weren’t represented well in the embedding space?</p><p>Could query expansion improve recall?</p><p>Suddenly, you’re no longer <em>implementing RAG</em>.</p><p>You’re <strong>engineering an information retrieval system around an LLM</strong>.</p><p>That shift — from <em>using technology</em> to <em>understanding technology</em> — is where real expertise develops.</p><h3>Don’t just consume AI. Deconstruct it.</h3><p>There is a huge difference between <strong>AI users</strong> and <strong>AI explorers</strong>.</p><p>An AI user asks:</p><blockquote><em>“Which framework should I use?”</em></blockquote><p>An AI explorer asks:</p><blockquote><em>“Why do I need a framework here?”</em></blockquote><p>An AI user asks:</p><blockquote><em>“Which vector database is best?”</em></blockquote><p>An AI explorer asks:</p><blockquote><em>“Do I actually need a vector database for this retrieval problem?”</em></blockquote><p>An AI user asks:</p><blockquote><em>“Which LLM gives the best results?”</em></blockquote><p>An AI explorer asks:</p><blockquote><em>“What exactly does ‘best’ mean for my workload — accuracy, latency, reasoning quality, context utilization, cost, or reliability?”</em></blockquote><p>That mindset produces better architectures.</p><h3>The technology will change. Your curiosity shouldn’t.</h3><p>Today’s AI landscape may look completely different two years from now.</p><p>Some frameworks will disappear.</p><p>Some models will become irrelevant.</p><p>Some architectural patterns will become commoditized.</p><p>New abstractions will emerge.</p><p><strong>But engineers who remain curious will keep adapting.</strong></p><p>Because they aren’t dependent on a particular model, framework, vendor or API.</p><p>They understand the <strong>fundamentals behind the abstractions</strong>.</p><p>And that leads to the real takeaway:</p><blockquote><strong><em>AI knowledge has a shelf life.<br>AI curiosity doesn’t.</em></strong></blockquote><p>The biggest competitive advantage in the AI era may not be knowing the most about AI today.</p><p>It may simply be having enough <strong>passion to keep learning tomorrow.</strong></p><p><strong>Technology will keep changing.<br>Curiosity is what keeps you ahead of it. 😊</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51ff671528c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Bottleneck Nobody Is Talking About ]]></title>
            <link>https://medium.com/@atanu.gupta/the-ai-bottleneck-nobody-is-talking-about-7198a19d0f25?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/7198a19d0f25</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[legacy-systems]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 07:00:07 GMT</pubDate>
            <atom:updated>2026-07-04T07:00:07.273Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone seems to be asking the same question today: <em>“How do we build more AI agents?”</em></p><p>But I believe we’re overlooking a far more critical one:</p><p><strong>Can our enterprise actually sustain them?😊</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3heysJVp7pnTkjsvUSuQsw.png" /></figure><p><strong>Imagine a typical Monday morning in the near future.</strong></p><p>Your organization has successfully deployed 1,000 AI agents across departments. Every employee is supported by a personal assistant. Finance runs reconciliation agents, HR manages recruitment through automation, IT handles support tickets autonomously, and sales teams rely on intelligent agents to manage opportunities and customer interactions.</p><p>Sounds amazing, right? 🚀</p><p>At 9:00 AM, these agents begin their work.</p><p>Within seconds, thousands of automated processes are triggered simultaneously. CRM systems are queried for customer histories, ERP platforms are accessed for inventory data, procurement agents evaluate supplier pricing, and HR systems validate employee records. Finance agents initiate payment checks, while IT agents generate service tickets and sales agents update pipelines.</p><p>Individually, each action is valid and expected.</p><p>Collectively?</p><p>It’s like 1,000 interns all shouting, <em>“Hey system, quick question!”</em> at the exact same time. 😬</p><p>Over the past few years, much of the conversation around AI has focused on scaling models — improving latency, refining prompts, building vector databases, and orchestrating multi-agent systems.</p><p>All important. All impressive. 👏</p><p>But here’s the twist…</p><p>The next major constraint is not the intelligence of AI systems — it is the capacity of enterprise infrastructure.</p><p>Most enterprise applications were built with human interaction patterns in mind. Humans access systems intermittently. They pause, deliberate, and operate sequentially.</p><p>AI agents?</p><p>They don’t pause.<br>They don’t deliberate.<br>They definitely don’t take coffee breaks ☕.</p><p>They operate 24/7, execute tasks instantly, and scale exponentially.</p><p>What begins as a handful of agents can quickly grow into thousands, each generating requests at machine speed.</p><p>Suddenly, your systems aren’t supporting employees anymore…</p><p>They’re supporting an entire digital workforce that never sleeps. 😴❌</p><p>This shift introduces a new architectural challenge: <strong>AI concurrency</strong>.</p><p>As the number of agents increases, previously manageable constraints become critical bottlenecks.</p><p>API rate limits? Hit.<br>Database connection pools? Exhausted.<br>Legacy systems? Crying quietly in the corner. 😢</p><p>Network throughput, caching strategies, and message queue performance all come under pressure.</p><p>And here’s the ironic part:</p><p>Your AI platform might be perfectly fine…</p><p>While your enterprise systems are having a full-blown meltdown. 🔥</p><p>This is where the role of the <strong>AI Architect</strong> evolves.</p><p>Designing intelligent agents is only part of the responsibility.</p><p>The real challenge?</p><p>Designing an enterprise ecosystem that can survive them. 😄</p><p>This means focusing on architectural resilience and system orchestration:</p><ul><li>AI gateways to manage and regulate traffic 🚦</li><li>Intelligent rate limiting (because chaos needs boundaries)</li><li>Request prioritization (not all agents are equally urgent!)</li><li>Asynchronous, event-driven architectures</li><li>Response caching and read-optimized data stores</li><li>Digital twins to offload heavy workloads</li><li>Strong governance and observability (because “what just happened?” is not a strategy)</li></ul><p>In essence, we are no longer just building AI systems.</p><p>We are building enterprises that must <strong>absorb AI at scale</strong>.</p><p>The organizations that succeed in this new landscape won’t necessarily be the ones with the smartest models.</p><p>They’ll be the ones with the smartest architecture. 🧠🏗️</p><p>Because when thousands of autonomous agents start working simultaneously, the defining question will shift.</p><p>It won’t be:</p><p><em>“Which LLM are you using?”</em></p><p>It will be:</p><p><strong>“Can your enterprise infrastructure handle what your AI just unleashed?”</strong></p><h3>Interesting Perspective 💡</h3><p>The future of enterprise AI architecture will not be defined solely by the intelligence of its agents…</p><p>…but by the resilience and scalability of the systems that support them.</p><p>The real bottleneck is not the AI itself.</p><p>It’s the enterprise environment trying to keep up. 😅</p><p>So before asking:</p><p><em>“How many AI agents can we deploy?”</em></p><p>Maybe we should first ask:</p><p><strong>“How many AI-driven interactions can our enterprise realistically survive?”</strong></p><p>Because that, in my view, is the question every AI Architect should be thinking about today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7198a19d0f25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A2A Protocol: Why AI Agents Need to Talk to Each Other (And Why It Matters More Than MCP)]]></title>
            <link>https://medium.com/@atanu.gupta/a2a-protocol-why-ai-agents-need-to-talk-to-each-other-and-why-it-matters-more-than-mcp-ee12ab95fda5?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee12ab95fda5</guid>
            <category><![CDATA[a2a-protocol]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 05:50:30 GMT</pubDate>
            <atom:updated>2026-06-27T05:50:30.424Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“The future isn’t one super-intelligent AI agent. The future is thousands of specialized AI agents collaborating securely across organizations.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uNNrGOS05Gx3DUeRTGRvJg.jpeg" /></figure><p>For the last one year, everyone has been talking about <strong>MCP (Model Context Protocol)</strong>.</p><p>The internet is flooded with examples of connecting ChatGPT to databases, giving Claude access to GitHub, or allowing an LLM to query SharePoint.</p><p>That’s great.</p><p>But here’s something many people are missing.</p><p><strong>MCP solves how an AI agent talks to tools.</strong></p><p><strong>A2A solves how AI agents talk to other AI agents.</strong></p><p>And that difference is going to define the next generation of enterprise AI systems.</p><h3>Why Single AI Agents Won’t Scale</h3><p>When AI agents first appeared, most people imagined one intelligent assistant capable of doing everything.</p><p>Reality turned out to be very different.</p><p>Think about your own organization.</p><p>One employee doesn’t handle everything.</p><p>You have HR.</p><p>Finance.</p><p>Legal.</p><p>Sales.</p><p>IT.</p><p>Security.</p><p>Each department has specialists.</p><p>AI is evolving exactly the same way.</p><p>Instead of creating one giant AI agent that knows everything, companies are building many specialized agents.</p><ul><li>HR Agent</li><li>Finance Agent</li><li>Procurement Agent</li><li>Security Agent</li><li>Coding Agent</li><li>Database Agent</li><li>Customer Support Agent</li></ul><p>Each one is optimized for a specific job.</p><p>But then a new challenge appears.</p><p><strong>How do these agents collaborate?</strong></p><h3>Imagine a Real Enterprise Scenario</h3><p>Suppose an employee asks:</p><blockquote><strong>“I’m joining the London office next month. Can you arrange everything?”</strong></blockquote><p>That single request actually involves multiple departments.</p><p>The HR Agent verifies the transfer.</p><p>↓</p><p>The IT Agent provisions a laptop.</p><p>↓</p><p>The Identity Agent creates accounts.</p><p>↓</p><p>The Facilities Agent allocates a desk.</p><p>↓</p><p>The Finance Agent updates payroll.</p><p>↓</p><p>The Travel Agent books flights.</p><p>↓</p><p>The Procurement Agent orders equipment.</p><p>None of these agents should contain the logic of every other department.</p><p>Instead…</p><p>Each specialized agent performs its own responsibility and communicates with the next one.</p><p>This is exactly where <strong>Agent-to-Agent (A2A) Protocol</strong> comes in.</p><h3>What Exactly is A2A?</h3><p>A2A stands for <strong>Agent-to-Agent Protocol</strong>.</p><p>It is an open standard that defines how autonomous AI agents discover, communicate, collaborate and exchange tasks securely.</p><p>Instead of every framework inventing its own communication mechanism, A2A gives everyone a common language.</p><p>Think of it as:</p><blockquote><strong>HTTP for AI agents.</strong></blockquote><p>Just as browsers, APIs and websites all speak HTTP regardless of programming language…</p><p>A2A enables AI agents to collaborate regardless of which framework they were built with.</p><h3>Why Google Introduced A2A</h3><p>As enterprise AI adoption accelerated, Google recognized a growing problem.</p><p>Every vendor was building AI agents differently.</p><p>Imagine this future:</p><ul><li>Microsoft Agent Framework agents</li><li>CrewAI agents</li><li>LangGraph agents</li><li>AutoGen agents</li><li>n8n agents</li><li>Copilot Studio agents</li></ul><p>If every framework communicated differently…</p><p>Enterprise AI would become a compatibility nightmare.</p><p>So in April 2025, Google introduced the <strong>Agent-to-Agent Protocol (A2A)</strong>.</p><p>The initiative quickly gained support from major technology companies including Microsoft, Salesforce, SAP, Atlassian, ServiceNow and many others.</p><p>Soon after, the protocol moved under the <strong>Linux Foundation</strong>, making it an open, vendor-neutral community project.</p><p>That’s probably the best decision they could have made.</p><p>No single company owns the future of AI agent communication.</p><h3>The Biggest Advantage</h3><p>Imagine this architecture.</p><p>Your organization already has:</p><ul><li>Microsoft Copilot Studio</li><li>Azure AI Foundry Agents</li><li>CrewAI for research</li><li>LangGraph orchestration</li><li>n8n automation</li><li>Internal Python agents</li></ul><p>Without A2A…</p><p>Each pair of agents would require custom integrations.</p><p>The architecture quickly becomes a tangled web of APIs.</p><p>With A2A…</p><p>Every agent simply speaks the same protocol.</p><p>It doesn’t matter who built it.</p><p>Or where it runs.</p><p>Or what programming language it uses.</p><p>This is exactly why A2A is platform agnostic and vendor neutral.</p><h3>A Real-Life Example</h3><p>Imagine an insurance company processing a claim.</p><p>A customer uploads accident photos.</p><p>The Vision Agent analyses the damage.</p><p>↓</p><p>The Fraud Detection Agent evaluates suspicious patterns.</p><p>↓</p><p>The Policy Agent verifies coverage.</p><p>↓</p><p>The Pricing Agent estimates repair costs.</p><p>↓</p><p>The Legal Agent validates compliance.</p><p>↓</p><p>The Payment Agent initiates reimbursement.</p><p>Every agent is an expert.</p><p>None of them needs to understand the internal logic of another.</p><p>They simply exchange structured tasks through A2A.</p><p>This is much cleaner than building one massive “super agent.”</p><h3>Another Example: Healthcare</h3><p>A patient submits medical reports.</p><p>The Imaging Agent detects abnormalities.</p><p>↓</p><p>The Medical Knowledge Agent retrieves treatment guidelines.</p><p>↓</p><p>The Appointment Agent schedules specialists.</p><p>↓</p><p>The Insurance Agent validates coverage.</p><p>↓</p><p>The Pharmacy Agent checks medicine availability.</p><p>Again…</p><p>Multiple specialized AI agents.</p><p>One coordinated workflow.</p><h3>What Does A2A Actually Use?</h3><p>One nice aspect of A2A is that it doesn’t reinvent networking.</p><p>It builds on technologies every software engineer already knows.</p><ul><li>HTTP / HTTPS</li><li>JSON-RPC</li><li>Server-Sent Events (SSE)</li><li>REST concepts</li><li>Secure authentication</li></ul><p>In other words…</p><p>If you’ve already built APIs, you’ve already seen most of the technologies A2A relies on.</p><p>The protocol simply standardizes how AI agents package requests, exchange capabilities, stream responses, and manage conversations.</p><h3>A Simple Conversation Between Agents</h3><p>Imagine a Planner Agent receives this request:</p><blockquote><strong>“Generate monthly sales insights.”</strong></blockquote><p>Instead of doing everything itself…</p><p>The Planner Agent sends a JSON-RPC request over HTTPS to an Analytics Agent.</p><p>The Analytics Agent processes the data.</p><p>Rather than waiting until everything finishes…</p><p>It streams partial progress back using Server-Sent Events.</p><p>Once complete…</p><p>The Planner Agent receives structured results and prepares the final business report.</p><p>Exactly like modern distributed microservices.</p><p>Except now the participants are intelligent AI agents.</p><h3>MCP vs A2A — The Difference Everyone Should Remember</h3><p>This is where many people get confused.</p><p>Think of it like this.</p><h3>MCP answers:</h3><p><strong>“How does my AI agent connect to external tools and data?”</strong></p><p>Examples:</p><ul><li>SQL Database</li><li>SharePoint</li><li>GitHub</li><li>Salesforce</li><li>Azure Storage</li><li>APIs</li></ul><p>MCP gives your AI context.</p><h3><strong>A2A answers:</strong></h3><p><strong>“How does one AI agent collaborate with another AI agent?”</strong></p><p>Examples:</p><p>Planner Agent</p><p>↓</p><p>Finance Agent</p><p>↓</p><p>Security Agent</p><p>↓</p><p>HR Agent</p><p>↓</p><p>Legal Agent</p><p>↓</p><p>Reporting Agent</p><p>A2A enables collaboration.</p><p>An easy way to remember it is:</p><blockquote><strong><em>MCP connects Agents to Tools.</em></strong><em><br></em><strong><em>A2A connects Agents to Agents.</em></strong></blockquote><p>One provides context.</p><p>The other enables collaboration.</p><p>They’re complementary, not competing technologies.</p><h3>Why Enterprises Should Care</h3><p>Today’s AI assistants are impressive.</p><p>Tomorrow’s enterprise AI platforms will be networks of autonomous agents.</p><p>Organizations won’t deploy one AI.</p><p>They’ll deploy hundreds.</p><p>Each responsible for a specific business capability.</p><p>That future only works if every agent can discover, trust, communicate, delegate work, and exchange results securely.</p><p>That’s exactly the problem A2A is solving.</p><p>Just as HTTP standardized communication for the web, A2A has the potential to become the standard communication layer for enterprise AI agents.</p><p>And I believe we’re only at the beginning of that journey.</p><h3>Final Thoughts</h3><p>If MCP was the protocol that allowed AI to access the world’s information…</p><p>A2A may become the protocol that allows AI systems to work together.</p><p>The future of AI isn’t about building one incredibly smart agent.</p><p>It’s about building teams of intelligent agents that collaborate as effectively as the best human teams.</p><p>And that’s exactly why A2A is one of the most important protocols to watch over the next few years.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee12ab95fda5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Real AI Debate Nobody Is Having]]></title>
            <link>https://medium.com/@atanu.gupta/the-real-ai-debate-nobody-is-having-de6c878f4add?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/de6c878f4add</guid>
            <category><![CDATA[tech-jobs]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[robots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Thu, 18 Jun 2026 05:01:48 GMT</pubDate>
            <atom:updated>2026-06-18T05:01:48.862Z</atom:updated>
            <content:encoded><![CDATA[<p>For the last few years, the world has been obsessed with a single question:</p><p><strong>“Will AI replace humans?”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Q26eEP11YZYTqpyLyXL2g.png" /></figure><p>It’s a fascinating question, but increasingly, I believe it’s the wrong one.</p><p>The uncomfortable truth is that AI is already capable of far more than most people realize. Every month, models become smarter, faster, and more capable of reasoning, coding, researching, creating content, analyzing data, and even making complex decisions. In many domains, the technology is no longer the limitation.</p><p>The limitation is economics.</p><p>Today, many organizations are experimenting with AI but deploying it cautiously because running intelligent systems at scale is expensive. Every prompt, every inference, every agent workflow, and every multimodal interaction comes with a cloud bill attached. In many cases, the cost of replacing a human with AI is still higher than simply keeping the human in the process.</p><p>Ironically, millions of jobs are not being protected by a lack of AI capability.</p><p>They are being protected by Azure invoices, AWS bills, and GPU shortages.</p><p>Think about it.</p><p>If a company can hire a team of people for less than the cost of operating thousands of AI agents around the clock, the business decision is obvious. <strong>But what happens when that equation changes?</strong></p><p>History gives us a clue.</p><p>Computing was once prohibitively expensive. Storage was expensive. Internet bandwidth was expensive. Cloud infrastructure was expensive.</p><p>Then costs fell.</p><p>What was once considered premium technology became a commodity. As costs dropped, adoption exploded. Entire industries transformed not because the technology suddenly became better, but because it became affordable.</p><p>AI is following the same trajectory.</p><p>Model optimization, specialized AI chips, better architectures, open-source innovation, and fierce competition among AI providers are driving costs down at an astonishing pace. What costs dollars today may cost cents tomorrow.</p><p>And when that happens, the conversation inside boardrooms will change.</p><p>Executives won’t ask:</p><p><em>“Can AI do this job?”</em></p><p>They will ask:</p><p><em>“Why does this process require three meetings, four approvals, six email chains, and two weeks of waiting if AI can complete it in minutes?”</em></p><p>That is when the real disruption begins.</p><p>But there is another side to this story.</p><p>The future is not simply humans versus machines.</p><p>When intelligence becomes available on demand — cheap, abundant, and accessible — human value shifts. Throughout history, whenever a resource became abundant, society adapted and redefined what was scarce.</p><p>If intelligence becomes abundant, then uniquely human qualities become more valuable:</p><ul><li>Judgment over information</li><li>Creativity over repetition</li><li>Leadership over execution</li><li>Trust over automation</li><li>Vision over process</li><li>Adaptability over routine</li></ul><p>The winners of the AI era may not be those who compete against AI.</p><p>They may be those who learn how to orchestrate it.</p><p>In a world where intelligence can be rented by the minute, knowing the answer becomes less important than knowing which questions to ask.</p><p>So perhaps the real debate isn’t whether AI will replace humans.</p><p>The real question is:</p><p><strong>What will humans become when intelligence is available on demand at the cost of a cup of tea?</strong></p><p>That question is far more interesting — and far more important — than anything we’ve been debating so far.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de6c878f4add" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an AI Workflow that replaces Models, Studios, and Reshoots ]]></title>
            <link>https://medium.com/@atanu.gupta/how-i-built-an-ai-workflow-that-replaces-models-studios-and-reshoots-2a3c962519b9?source=rss-8564e6b1ab92------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a3c962519b9</guid>
            <category><![CDATA[n8n-workflow]]></category>
            <category><![CDATA[n8n]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Atanu Gupta]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 08:53:56 GMT</pubDate>
            <atom:updated>2026-01-19T08:53:56.612Z</atom:updated>
            <content:encoded><![CDATA[<p>What if a single T-shirt image could magically turn into a <strong>realistic 360-degree product experience</strong> — with a model wearing it, rotating smoothly, showing every angle — <strong>without hiring a model, booking a studio, or doing a single reshoot</strong>?</p><p>That’s exactly what I built.</p><p>This blog is the story of how a simple user-uploaded T-shirt image travels through an <strong>AI-powered n8n workflow</strong> and comes out as a <strong>fully generated 360° rotating fashion video</strong>, ready for e-commerce, marketing, or social media.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FE96AkFjw4a4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE96AkFjw4a4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FE96AkFjw4a4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9bfad7b8824d22ddcad069f955575bcf/href">https://medium.com/media/9bfad7b8824d22ddcad069f955575bcf/href</a></iframe><h3>The Problem with Traditional Fashion Shoots</h3><p>Let’s be honest — fashion photography hasn’t evolved much compared to how fast digital commerce has.</p><p><strong>The traditional process looks like this:</strong></p><ul><li>📅 Schedule models</li><li>📸 Book studios</li><li>🎨 Coordinate designers and stylists</li><li>🔁 Repeat the entire process for every color, fit, or minor change</li><li>💸 Spend weeks and thousands of dollars per SKU</li></ul><p>And still…</p><ul><li>You only get <strong>static images</strong></li><li>Limited viewing angles</li><li>Inconsistent results across collections</li></ul><p>In a world where buyers expect immersive experiences, <strong>flat images simply don’t cut it anymore</strong>.</p><h3>The Idea: Let AI Do the Heavy Lifting</h3><p>I asked a simple question:</p><blockquote>What if the product image itself was enough?</blockquote><p>No humans. No reshoots. No delays.</p><p>Just:</p><ol><li>Upload a T-shirt image</li><li>AI places it on a realistic model</li><li>AI generates a <strong>360° rotating video</strong></li><li>User gets a complete product view — automatically</li></ol><p>That idea became a fully working <strong>n8n-driven AI pipeline</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BnMjTIxBvpGw02-BQYH8lw.png" /></figure><h3>The Workflow: What Actually Happens Behind the Scenes</h3><p>Here’s the high-level flow — simple for the user, sophisticated under the hood:</p><h3>🧩 Step 1: User Uploads a T-Shirt Image</h3><p>The journey begins with a form submission. The user uploads a flat product image — nothing fancy.</p><p>The workflow:</p><ul><li>Extracts the file</li><li>Converts it to Base64</li><li>Prepares it for AI consumption</li></ul><h3>🧠 Step 2: Context-Aware Prompt Engineering</h3><p>This is where things get interesting.</p><p>The workflow dynamically:</p><ul><li>Detects <strong>gender selection</strong></li><li>Applies a <strong>custom “magic prompt”</strong></li><li>Ensures the model wears <strong>the exact same T-shirt design</strong></li></ul><p>No generic prompts.<br>No copy-paste descriptions.<br>The AI prompt is <strong>context-aware and deterministic</strong>.</p><h3>👕 Step 3: AI Generates a Model Wearing the T-Shirt</h3><p>Using an image generation API: <strong><em>Google Gemini Flash Image LLM</em></strong></p><ul><li>A realistic fashion model is generated</li><li>The uploaded T-shirt is preserved in detail</li><li>Fabric, print, and fit are maintained</li></ul><p>This isn’t a mockup — it looks like a real photoshoot.</p><h3>🎥 Step 4: From Image to 360° Rotating Video</h3><p>Next, the workflow: <strong><em>Google Veo LLM</em></strong></p><ul><li>Converts the generated image into a <strong>video prompt</strong></li><li>Calls a video generation model</li><li>Polls asynchronously until the video is ready</li><li>Downloads the final output</li></ul><p>The result?<br> ➡️ A smooth <strong>360-degree rotating view of the T-shirt on a model</strong></p><h3>Why This Is a Big Deal (Really)</h3><p>This isn’t just a cool demo — it fundamentally changes how fashion content can be created.</p><h3>🚀 Business Impact</h3><ul><li><strong><em>Zero photoshoots</em></strong></li><li><strong><em>Zero scheduling</em></strong></li><li><strong><em>Zero reshoots</em></strong></li><li><strong><em>Infinite scalability</em></strong></li></ul><p>A brand can now:</p><ul><li>Launch faster</li><li>Experiment freely</li><li>Visualize every variant instantly</li></ul><h3>🛒 E-Commerce Advantage</h3><ul><li>Customers see how the T-shirt looks <strong>in motion</strong></li><li>Better understanding of fit and drape</li><li>Higher confidence → higher conversion rates</li></ul><p>Static images tell.<br>360° videos <strong>sell</strong>.</p><h3>🤖 AI as a Creative Workforce</h3><p>This workflow quietly replaces:</p><ul><li>Models</li><li>Studios</li><li>Designers (for revisions)</li><li>Manual post-production</li></ul><p>AI becomes:</p><ul><li>The model</li><li>The photographer</li><li>The videographer</li><li>The editor</li></ul><p>All orchestrated by automation.</p><h3>Why n8n Was the Secret Weapon</h3><p>The real power here isn’t just AI — it’s <strong>AI orchestration</strong>.</p><p>n8n allowed me to:</p><ul><li>Chain multiple AI services together</li><li>Handle async polling cleanly</li><li>Branch logic intelligently</li><li>Keep everything transparent and modifiable</li></ul><p>This isn’t a black box.<br>It’s an <strong>auditable, extensible, production-ready pipeline</strong>.</p><h3>What This Means for the Future of Fashion Tech</h3><p>We’re moving from:</p><ul><li><strong>Photoshoots → Pipelines</strong></li><li><strong>Creative teams → AI workflows</strong></li><li><strong>Weeks → Minutes</strong></li></ul><p>Soon, brands won’t ask:</p><blockquote><em>“When can we schedule the shoot?”</em></blockquote><p>They’ll ask:</p><blockquote><em>“Which prompt do we want today?”</em></blockquote><h3>Final Thoughts</h3><p>This project started as an experiment — but it ended up being a glimpse into the future of fashion visualization.</p><p>A future where:</p><ul><li>Creativity scales infinitely</li><li>Costs collapse</li><li>Speed becomes a competitive weapon</li></ul><p>And it all starts with <strong>one image</strong>.</p><p>If you’re thinking about AI in retail, fashion, or e-commerce — this is the direction things are heading.</p><p>And honestly?</p><p>We’re just getting started. 👕✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a3c962519b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>