Agent-to-Agent Communication: Connecting Foundry and LangGraph Agents via A2A

· Source: Microsoft Foundry Blog articles · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure, Robotics & Autonomous Systems · Depth: Intermediate, short

Summary

A tutorial published on Jul 01, 2026, demonstrates Agent-to-Agent (A2A) communication, specifically integrating a Microsoft Foundry agent with a LangGraph agent hosted on Azure Container Apps. This setup addresses the challenge of inter-framework agent discovery and collaboration in multi-agent workflows. The LangGraph agent, built with langgraph==1.2.6 and openai azure-identity, functions as an A2A server, summarizing user input using the gpt-4.1-mini model with API version 2024-12-01-preview. It is containerized using python:3.12-slim and exposed via port 8000 with fastapi==0.138.0 and a2a-sdk[http-server]>=0.3.0,<0.4. The Foundry agent acts as the A2A client, configured through the Microsoft Foundry portal to call the LangGraph agent's endpoint for summarization tasks. The process involves deploying the LangGraph agent to Azure Container Apps and then connecting it as a custom A2A tool within Foundry.

Key takeaway

For AI Engineers building multi-agent systems, if you are integrating agents from different frameworks, you should adopt the A2A protocol to enable seamless communication. This allows your Microsoft Foundry agents to leverage specialized LangGraph agents, like a gpt-4.1-mini summarizer, hosted on Azure Container Apps. Consider implementing authentication and streaming responses for production readiness, and explore connecting multiple A2A agents to build complex workflows.

Key insights

Connecting diverse AI agents across frameworks is achievable via a standardized A2A protocol and server-client architecture.

Principles

Method

Develop a LangGraph agent (e.g., a summarizer using gpt-4.1-mini). Expose the agent as an A2A server using a2a-sdk and Starlette. Containerize and deploy the server to Azure Container Apps. Configure a Microsoft Foundry agent to use the deployed A2A endpoint as a custom tool.

In practice

Topics

Code references

Best for: AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Microsoft Foundry Blog articles.