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.45.tar.gz (257.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.45-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brim_ag_ui_langgraph-0.0.45.tar.gz
  • Upload date:
  • Size: 257.1 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.45.tar.gz
Algorithm Hash digest
SHA256 a5e4f9ab274443915799a80666a563afe17158098f78112cc65b57f31bbf1f3e
MD5 a3c8ac28e96b9aad27ab10e481a30803
BLAKE2b-256 6195a4471b8ff399663e2afa021a11666a63a2e8a2ec88754b8762240ec1b2cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: brim_ag_ui_langgraph-0.0.45-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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.45-py3-none-any.whl
Algorithm Hash digest
SHA256 63af40c783f3725253b7ea9a3cc7f042368d5a1a1bb66bca4aed0c60a9901688
MD5 c56ff8d282b488e8a57a5357b8f72eeb
BLAKE2b-256 1eca3f95fd0adaaee60f5cd083196642755c36c30938f530f59cc44e56d9dac6

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