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.60.tar.gz (268.5 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.60-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.60.tar.gz
Algorithm Hash digest
SHA256 2307cc70aef23a6374c11be7aab7b0e97fb696ee8346a9b6c495282f32aa426c
MD5 859a2c1203d5580c8ea3a46ce9aef933
BLAKE2b-256 b99883366d44370776503bd475e09cdd0f3139fd17816a41c26f922875187d44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.60-py3-none-any.whl
Algorithm Hash digest
SHA256 a6aac95a1bfd9a54e09f9af9fcf11374134a132bed9c3350399ac8df9d1fd909
MD5 5389b44d5727b9901b0a60f0174c664f
BLAKE2b-256 e1843370ad6c4e7b99a216495ca8ef32acb7f579da945c675566426061a15eb9

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