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.37.tar.gz (246.1 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.37-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.37.tar.gz
Algorithm Hash digest
SHA256 28a97ffc492d8476b083759f844dac084a45bbdb8f894f741ad10001284afc8a
MD5 1d1e5f332755a0aa33f1285eb8262c66
BLAKE2b-256 822fd84066cebe6e67b2a3cb3e44fcb3bf1fe2ff4ad52e26b7f07f4939831a5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.37-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd686a70c08f2d9d61e455aa681f76cd24a7872a4fe96c84b108e4e34b2c227
MD5 486e130ebb9745c6b7491b5da3536b46
BLAKE2b-256 aa78fd32ef38a372ff2909477fd7bc91bed7f1fcc3dad974f78810e2de1ea28c

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