Metadata-Version: 2.4
Name: langgraph-a2a-server
Version: 0.1.1
Summary: A2A Server implementation for LangGraph agents
Project-URL: Repository, https://github.com/5enxia/langgraph-a2a-server
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: a2a-sdk[http-server]>=0.3.7
Requires-Dist: fastapi>=0.100.0
Requires-Dist: langgraph>=0.2.0
Requires-Dist: starlette>=0.27.0
Requires-Dist: uvicorn>=0.23.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: examples
Requires-Dist: langchain-core>=0.1.0; extra == 'examples'
Requires-Dist: langchain-openai>=0.0.5; extra == 'examples'
Description-Content-Type: text/markdown

# 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

```bash
pip install langgraph-a2a-server
```

Or with uv:

```bash
uv pip install langgraph-a2a-server
```

## Usage

```python
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)

```sh
uv run --extra examples examples/simple_agent.py
```

### langchain_agent.py (with llm)

```sh
uv run --extra examples examples/langchain_agent.py
```

### tools_agent.py (with tools, no llm)

```sh
uv run --extra examples examples/tools_agent.py
```

## License

MIT
