Skip to main content

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


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.38.tar.gz (246.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brim_ag_ui_langgraph-0.0.38-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file brim_ag_ui_langgraph-0.0.38.tar.gz.

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.38.tar.gz
Algorithm Hash digest
SHA256 f79d41e8d2c480c21d73a219593e5b36ee1a3ebca1d96502ce67a744b84295bf
MD5 cbb137b1c92d519372e591f4c2c04204
BLAKE2b-256 d2b0c583d9f9122dc06520207f5bbf18457ca0d5008c8c3bf94f7dd29777c199

See more details on using hashes here.

File details

Details for the file brim_ag_ui_langgraph-0.0.38-py3-none-any.whl.

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 e313129978321ffbe944d03ef4ab356a09f0e311ca9e063ec17d77094ced7a69
MD5 081c5357c423ad46f645763b57ae785a
BLAKE2b-256 4cec757584bb984c70eaf24b9187b005c2a4dc0a1e286f18c674bbbc89902d20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page