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
brim_ag_ui_langgraph-0.0.59.tar.gz
(265.9 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 brim_ag_ui_langgraph-0.0.59.tar.gz.
File metadata
- Download URL: brim_ag_ui_langgraph-0.0.59.tar.gz
- Upload date:
- Size: 265.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde45879bbe7bdd153d678910b772d72adb3a99ed7eab6880edb21f1d7afa36d
|
|
| MD5 |
56124b7844db655c865fc3ec5852ebfa
|
|
| BLAKE2b-256 |
a775dbe0f1db3634ed5fd1c15dca5db318ce2dbde0b09ecfa3649195124d4353
|
File details
Details for the file brim_ag_ui_langgraph-0.0.59-py3-none-any.whl.
File metadata
- Download URL: brim_ag_ui_langgraph-0.0.59-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea45a4b2545d079eaf4c242336b0ce41f15a2866f65796314f7d92a9f58ea2e
|
|
| MD5 |
aa0c3f8d30b75af0b25b1904b7c594d6
|
|
| BLAKE2b-256 |
166161393830afb92ef2025c6cf4f3385e372840205f133602aa62f5c85931e6
|