Implementation of the AG-UI protocol for LangGraph. Brim Fork Version
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
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 brim_ag_ui_langgraph-0.0.46.tar.gz.
File metadata
- Download URL: brim_ag_ui_langgraph-0.0.46.tar.gz
- Upload date:
- Size: 257.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
413c0c831ecb175022761d7363c73c7f9b333f38b1e52743f174ef1f537dd81f
|
|
| MD5 |
31b624301c33b4f83dd875d739e4cce6
|
|
| BLAKE2b-256 |
ab5bd233f599f1a549bd81daf796f7b57077b70b2807612ceadca46c4a508926
|
File details
Details for the file brim_ag_ui_langgraph-0.0.46-py3-none-any.whl.
File metadata
- Download URL: brim_ag_ui_langgraph-0.0.46-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc3caeeac6cd4461edd344f781ad97955aff2ee9c1bbbe03ad92de7d1f61eaa
|
|
| MD5 |
3a7ddb9cc17f1b88eb5ac623ceef6fdf
|
|
| BLAKE2b-256 |
67155ea212b58046ca693b9a21cdbdcc82d9969265cd407a26f1b850946c1b7b
|