Skip to main content

Implementation of the AG-UI protocol for LangGraph.

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


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ag_ui_langgraph-0.0.42a1.tar.gz (450.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ag_ui_langgraph-0.0.42a1-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file ag_ui_langgraph-0.0.42a1.tar.gz.

File metadata

  • Download URL: ag_ui_langgraph-0.0.42a1.tar.gz
  • Upload date:
  • Size: 450.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0

File hashes

Hashes for ag_ui_langgraph-0.0.42a1.tar.gz
Algorithm Hash digest
SHA256 8c4d5c49664aeaebf3c40a680bff8c68139d700a45a36efb7207fbba26dd9a3d
MD5 87a0fc25f6e64569832feb06d5df0b08
BLAKE2b-256 545ba14e2a4078c4d581b71b989d655ea285fe096e43fa592f7ec7f06bd546f4

See more details on using hashes here.

File details

Details for the file ag_ui_langgraph-0.0.42a1-py3-none-any.whl.

File metadata

  • Download URL: ag_ui_langgraph-0.0.42a1-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.9 Darwin/24.1.0

File hashes

Hashes for ag_ui_langgraph-0.0.42a1-py3-none-any.whl
Algorithm Hash digest
SHA256 116af6bf3963cdf35b8b626d70e306efd01deae61aca8300d04c3ecf357710f3
MD5 df787c11ae230cc0f0ad3b5f3a241daf
BLAKE2b-256 ecb20968aa9931cfa5b137640197866a5c10e6dab7f964cb94279908da6f1b64

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