Skip to main content

A2A Server implementation for LangGraph agents

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langgraph_a2a_server-0.1.6.tar.gz (93.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langgraph_a2a_server-0.1.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file langgraph_a2a_server-0.1.6.tar.gz.

File metadata

File hashes

Hashes for langgraph_a2a_server-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d66c40036666e3b44df6025699f96a4ca05dbb4be4ddce2085391c3747b62d8b
MD5 4950cbae0920bf02d30f69e253f67de2
BLAKE2b-256 e9f286c30ccdaedc41c941b9c34562ec4cba07f14a7e31a7ffa80f1f3842d7e1

See more details on using hashes here.

File details

Details for the file langgraph_a2a_server-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for langgraph_a2a_server-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3accaa1ecc42049aabfe6b6c0cf4b3b292302861ddc2415ef70f2b7faea19146
MD5 e40decc7931689b24b4352e8e16b3f07
BLAKE2b-256 461e424cd8e1535d239262033429a78d6408ebd35c291740ee416a02a47231aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page