Implementation of the AG-UI protocol for LangGraph.
Project description
ag-ui-langgraph
Implementation of the AG-UI protocol for LangGraph.
Provides a complete Python integration for LangGraph agents with the AG-UI protocol, including FastAPI endpoint creation and comprehensive event streaming.
Installation
pip install ag-ui-langgraph
Usage
from langgraph.graph import StateGraph, MessagesState
from langchain_openai import ChatOpenAI
from ag_ui_langgraph import LangGraphAgent, add_langgraph_fastapi_endpoint
from fastapi import FastAPI
from my_langgraph_workflow import graph
# Add to FastAPI
app = FastAPI()
add_langgraph_fastapi_endpoint(app, graph, "/agent")
Features
- Native LangGraph integration – Direct support for LangGraph workflows and state management
- FastAPI endpoint creation – Automatic HTTP endpoint generation with proper event streaming
- Advanced event handling – Comprehensive support for all AG-UI events including thinking, tool calls, and state updates
- Message translation – Seamless conversion between AG-UI and LangChain message formats
To run the dojo examples
cd python/ag_ui_langgraph/examples
poetry install
poetry run dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ag_ui_langgraph-0.0.34.tar.gz
(258.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ag_ui_langgraph-0.0.34.tar.gz.
File metadata
- Download URL: ag_ui_langgraph-0.0.34.tar.gz
- Upload date:
- Size: 258.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
755323d5256407ce62d6b9af447a9f1250554e7056c5e2115027a4174a736c41
|
|
| MD5 |
20ad3bca23df1fae2b1ab0d0fd52341e
|
|
| BLAKE2b-256 |
115e950cdb65de973660f2634a675b0a614657a5a00258a7eede21d3a9318992
|
File details
Details for the file ag_ui_langgraph-0.0.34-py3-none-any.whl.
File metadata
- Download URL: ag_ui_langgraph-0.0.34-py3-none-any.whl
- Upload date:
- Size: 27.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124dccdae48af124f857b746aa3c0424b2d332b73b06ac426b6d5dcd811ea984
|
|
| MD5 |
28ec2fdba0366d3241cd8a456284a28e
|
|
| BLAKE2b-256 |
f9e5c4eeee50262de83eb10de29b55259244d0a95edceb0d08c63ba0ae175719
|