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.41.tar.gz
(316.6 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.41.tar.gz.
File metadata
- Download URL: ag_ui_langgraph-0.0.41.tar.gz
- Upload date:
- Size: 316.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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 |
3ea1fcb49b147d9532b0a90f2a5554d6ffd0d9365590fa2557ba16a881aeeb7a
|
|
| MD5 |
ca123195faa62b53254ca17ece46c806
|
|
| BLAKE2b-256 |
7e2ae94bf83b81a540c59718bb8f848641bd5afa2ebc17b191b00010a0b86837
|
File details
Details for the file ag_ui_langgraph-0.0.41-py3-none-any.whl.
File metadata
- Download URL: ag_ui_langgraph-0.0.41-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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 |
ff5f4c3d03305ff51329543ff61bd686a3e0b5c3c4ea071b3575f328d13936ae
|
|
| MD5 |
0ead715865451ef6b3d9a23eb2c300b8
|
|
| BLAKE2b-256 |
44dd61220366e161d8f3eabe598bb955bd07254f518e5163ebd63de4769c850c
|