Skip to main content

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

Metadata

Release files for brim-ag-ui-langgraph 0.0.61

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brim-ag-ui-langgraph 0.0.61
File Size Uploaded
brim_ag_ui_langgraph-0.0.61.tar.gz 270.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for brim-ag-ui-langgraph 0.0.61
File Interpreter ABI Platform
brim_ag_ui_langgraph-0.0.61-py3-none-any.whl Python 3 none any Details

Total release size: 308.1 kB

Release files / brim_ag_ui_langgraph-0.0.61.tar.gz

Download URL brim_ag_ui_langgraph-0.0.61.tar.gz
Size 270.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6d6b71c39dfbb58f43a163d701912e5f63331dd046225e8711377be54c91981c
BLAKE2b-256 checksum
How to use checksums
cbddda2619fda0f2dda4c6b06341f3b7f04a8a1b1aef6288321a5ea6f45fc173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release files / brim_ag_ui_langgraph-0.0.61-py3-none-any.whl

Download URL brim_ag_ui_langgraph-0.0.61-py3-none-any.whl
Size 37.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83392b40714de83ebb24378701ee753d9b1f39bb76be12e1e831ea5fd255cd06
BLAKE2b-256 checksum
How to use checksums
d94694bd2efa31e2c71720957b1e8346be49a311323c040431b71d6d9db079c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.7

Release history Release notifications | RSS feed

This release

0.0.61 This release

2 release files

0.0.58

2 release files

0.0.57

2 release files

0.0.56

2 release files

0.0.55

2 release files

0.0.54

2 release files

0.0.53

2 release files

0.0.52

2 release files

0.0.51

2 release files

0.0.50

2 release files

0.0.49

2 release files

0.0.48

2 release files

0.0.47

2 release files

0.0.46

2 release files

0.0.45

2 release files

0.0.44

2 release files

0.0.43

2 release files

0.0.42

2 release files

0.0.41

2 release files

0.0.40

2 release files

0.0.39

2 release files

0.0.38

2 release files

0.0.37

2 release files

0.0.36

2 release files

0.0.35

2 release files

0.0.34

2 release files

0.0.33

2 release files

0.0.32

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page