Skip to content

5enxia/langgraph-a2a-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangGraph A2A Server

A2A (Agent-to-Agent) Protocol server implementation for LangGraph agents.

Overview

This library provides a wrapper for LangGraph agents to be exposed via the A2A protocol, enabling seamless agent-to-agent communication and integration.

Installation

pip install langgraph-a2a-server

Or with uv:

uv add langgraph-a2a-server

Usage

from langgraph_a2a_server import A2AServer
from your_langgraph_app import your_graph

# Create an A2A server with your LangGraph agent
server = A2AServer(
    graph=your_graph,
    name="My LangGraph Agent",
    description="An intelligent agent built with LangGraph",
    host="127.0.0.1",
    port=9000,
)

# Start the server
server.serve()

Features

  • Easy integration with existing LangGraph applications

Examples

simple_agent.py (no llm)

uv run --extra examples examples/simple_agent.py

langchain_agent.py (with llm)

uv run --extra examples examples/langchain_agent.py

tools_agent.py (with tools, no llm)

uv run --extra examples examples/tools_agent.py

License

MIT

About

A2A (Agent-to-Agent) Protocol server implementation for LangGraph agents.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages