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.36.tar.gz
(302.5 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.36.tar.gz.
File metadata
- Download URL: ag_ui_langgraph-0.0.36.tar.gz
- Upload date:
- Size: 302.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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 |
5419e7d9ad23beefbae7c06001a1380d72468886df8878a63379385f85c678fd
|
|
| MD5 |
480de83a0d756de218bbabca88c60d43
|
|
| BLAKE2b-256 |
b7a7e989dcd18357ff16d20ec9656b8a58dceff34056a38b81ff910422de88bb
|
File details
Details for the file ag_ui_langgraph-0.0.36-py3-none-any.whl.
File metadata
- Download URL: ag_ui_langgraph-0.0.36-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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 |
ed0b39e0b54e6dc60dec1f64e048a2fef593728dde490e69ebbbbb6e6ae2ca0b
|
|
| MD5 |
02caca339035d9deb8843f921ddfce76
|
|
| BLAKE2b-256 |
cb4635191021e38c6a08bd0746d6c8990c8a82c3d5b7e05ba21e71345df9871f
|