# A2A protocol using LangChain and LangGraph

**URL:** <https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214>\
**Category:** LangGraph\
**Tags:** ambient-agents-with-, python-help\
**Created:** [July 3, 2025, 2:49am UTC](https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214 "2025-07-03T02:49:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khusrav13](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/khusrav13/32/77_2.png) [@Khusrav13](https://forum.langchain.com/u/Khusrav13)\
**Post date:** [July 3, 2025, 2:49am UTC](https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214/1 "2025-07-03T02:49:31Z")

</div>

Hello everyone! I have a quick question:  
**Is it possible to implement the A2A (Agent2Agent) protocol using LangChain and LangGraph?**

I’ve tried searching online but couldn’t find sufficient resources or examples on this. If anyone has experience or insights on this, I’d greatly appreciate your help. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AbdulBasit](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/abdulbasit/32/72_2.png) [@AbdulBasit](https://forum.langchain.com/u/AbdulBasit)\
**Post date:** [July 4, 2025, 12:47pm UTC](https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214/2 "2025-07-04T12:47:47Z")

</div>

**Yes** , it’s _possible_ to implement an A2A protocol using LangChain and LangGraph, but there’s **no official A2A framework or module** built in. It means this is manually wiring up multiple agents in a LangGraph workflow. Each “agent” would be represented as a node with its own logic (LLM, tools, memory, etc.).

You’ll need to:

- Define a **shared state** that includes message queues or routing info.
- Use **conditional edges** to decide which agent receives what and when.
- Ensure **message passing and persistence** is handled using LangGraph’s built-in state management.

This works for basic interaction patterns, but if you’re expecting true A2A features like trust negotiation, protocol compliance, or decentralized reasoning, you’d need to build that yourself. LangGraph doesn’t abstract those out of the box.

---

<div class="post-metadata">

**Author:** ![Khusrav13](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/khusrav13/32/77_2.png) [@Khusrav13](https://forum.langchain.com/u/Khusrav13)\
**Post date:** [July 7, 2025, 8:23am UTC](https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214/3 "2025-07-07T08:23:17Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![ryaneggz](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/ryaneggz/32/345_2.png) [@ryaneggz](https://forum.langchain.com/u/ryaneggz)\
**Post date:** [July 25, 2025, 4:03pm UTC](https://forum.langchain.com/t/a2a-protocol-using-langchain-and-langgraph/214/4 "2025-07-25T16:03:17Z")

</div>

Link to a langgraph a2a repo setup that takes the one next in googles and just makes monorepo

> **[GitHub - enso-labs/a2a-langgraph: 🤖💬🤖 Agent-to-Agent (A2A Protocol) built on top of...](https://github.com/enso-labs/a2a-langgraph)**
>
> 🤖💬🤖 Agent-to-Agent (A2A Protocol) built on top of LangGraph
