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.33.tar.gz
(240.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.33.tar.gz.
File metadata
- Download URL: ag_ui_langgraph-0.0.33.tar.gz
- Upload date:
- Size: 240.5 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 |
8f6c9b9a47be24a2b08f161b74ef98e5e69107cdcc4e7ba651c0e54fb3b3994f
|
|
| MD5 |
209096d2ea7c91701605f0f191b4a42e
|
|
| BLAKE2b-256 |
cd5c02486d7c7c8b6dc485df2b9bc0d8f91548394c8179cdcefc16c136f58ea5
|
File details
Details for the file ag_ui_langgraph-0.0.33-py3-none-any.whl.
File metadata
- Download URL: ag_ui_langgraph-0.0.33-py3-none-any.whl
- Upload date:
- Size: 21.4 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 |
3fa8c5c46659d6d3730d91d698afc93541b949fb5f8e8f88abd367b1e154ad50
|
|
| MD5 |
f03afc4b91bf1916c0c8f672ab7321cd
|
|
| BLAKE2b-256 |
5c64260186e4ec94f186ee55ac5d4998f79c967492a08de577bc92689af1a3d0
|