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.42a0.tar.gz
(450.3 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.42a0.tar.gz.
File metadata
- Download URL: ag_ui_langgraph-0.0.42a0.tar.gz
- Upload date:
- Size: 450.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb47046e4001ed1587b51a58072549c363df0093df88f102acf2028964e233a9
|
|
| MD5 |
4d2e3dc3b583ce7ba1e86aa215a176f7
|
|
| BLAKE2b-256 |
f4f444fced2bfa7d62f28fe39ca7af29aeabe8c3259e19688d4928fc45865016
|
File details
Details for the file ag_ui_langgraph-0.0.42a0-py3-none-any.whl.
File metadata
- Download URL: ag_ui_langgraph-0.0.42a0-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
949d8a4d411c820440a30b70948c7f727387b3acee4e24b7ed4dd4a3b0c6b1e1
|
|
| MD5 |
2734ab0d769b03561ccfc951b0570000
|
|
| BLAKE2b-256 |
1514cf04a0676e5e7c39dc9cd0bfcba9149e4e1ab846559eb3bf3b9f92db2306
|