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.58.tar.gz (265.9 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.58-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brim_ag_ui_langgraph-0.0.58.tar.gz
  • Upload date:
  • Size: 265.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brim_ag_ui_langgraph-0.0.58.tar.gz
Algorithm Hash digest
SHA256 3d689f9502e5bfc97bba05a1770b374399cdb0d8604db3cdd3ebb3a87707f070
MD5 182f1b2d2a93758d3b204921bb9acb71
BLAKE2b-256 162082fbbc8cc4e89c21de3388985b51d627fb9bb95bd7397c1cfe72e7e7e3db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brim_ag_ui_langgraph-0.0.58-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brim_ag_ui_langgraph-0.0.58-py3-none-any.whl
Algorithm Hash digest
SHA256 ecc663a48b296a5fdd840f31964c328224a49ef0cf286761dccc3fedef56151b
MD5 53e9736b73a7ca6a2b1fc8a2596c1971
BLAKE2b-256 a8e45d8b5919482c022ef8e8593820cf88163d7e05c65ffa096050ae6916917b

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