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.38.tar.gz (313.2 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.38-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ag_ui_langgraph-0.0.38.tar.gz
  • Upload date:
  • Size: 313.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_langgraph-0.0.38.tar.gz
Algorithm Hash digest
SHA256 719f0730c1934d4818872b7630becbdbb0857316b8380178ba512cce5b354d69
MD5 95569355028f1cdf4c8c4610e7b7d222
BLAKE2b-256 732e3d9b6dfb803a0799cb2d29dd1936f5d2855ee0de2604d2a5739ac9ccbe5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ag_ui_langgraph-0.0.38-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ag_ui_langgraph-0.0.38-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbf5159f919d4d6f9a60fb50810fdc1a3167698fbbcd328d983fa0b9234c2ea
MD5 f3aa69e739660a59d3cc5760d5dc1f78
BLAKE2b-256 cb52eb53ae34a7cfcabbe93667b9bd2fd3b8a2842b10afdcdd39b7087e001e4f

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