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.34.tar.gz (245.3 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.34-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.34.tar.gz
Algorithm Hash digest
SHA256 102b3e3bc4382c789880630a2fa933a1efd96c8df6f534f2e64416a4669bbb43
MD5 8d90df6b38fdcc05a887ebc63b093af1
BLAKE2b-256 654f392db1bd88956363fcabac3a55a800190eb1a76e1cfa748d422c18f761ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for brim_ag_ui_langgraph-0.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 2adb6b79612b494c63afe6711c312a70c03e428e46d7b517fe8d7f7a6435530a
MD5 d611925b513d118b98761ecf0729253d
BLAKE2b-256 5fbbb8a346caa9bbaa4f4b2c85dad97abf64c7178b9ed20e899ab73c4c3b503a

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