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.28.tar.gz (202.9 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.28-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file ag_ui_langgraph-0.0.28.tar.gz.

File metadata

  • Download URL: ag_ui_langgraph-0.0.28.tar.gz
  • Upload date:
  • Size: 202.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for ag_ui_langgraph-0.0.28.tar.gz
Algorithm Hash digest
SHA256 663a7556182c2c24adf1a7417fad8e3c3b3721bda42ca5d8036a7b31b31cb0d2
MD5 e00ad177a6d802c49154214eb3efe9f6
BLAKE2b-256 1c988aadfbac7e7ea0f06911ffe5b684eac683f8b1c4df37d6185fcf17b42be4

See more details on using hashes here.

File details

Details for the file ag_ui_langgraph-0.0.28-py3-none-any.whl.

File metadata

File hashes

Hashes for ag_ui_langgraph-0.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 f44e4da8bead9a03eedd39a91a047512a2bc67371a35a380e11bb59fb783d30b
MD5 fb89e6f6fc56b15d9af9fba0f180ddb0
BLAKE2b-256 07adb102935dabea5ed8adf051301a9b71fcdb70686e7fd47548fcc25e6c0e79

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