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.42a3.tar.gz (456.7 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.42a3-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ag_ui_langgraph-0.0.42a3.tar.gz
  • Upload date:
  • Size: 456.7 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.42a3.tar.gz
Algorithm Hash digest
SHA256 f2b7602248d5db71665990228983d3f8ebd8d5c0fb8eb90cf79aa6a44e338f02
MD5 423969425d39f30e61c02cd240e4cb3d
BLAKE2b-256 720dddf4766a30b07780d9ad4f7d7eea9fae206d6bb2f53fdc8a75d3212aa7f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ag_ui_langgraph-0.0.42a3-py3-none-any.whl
  • Upload date:
  • Size: 41.0 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.42a3-py3-none-any.whl
Algorithm Hash digest
SHA256 49241cfe4d41c86531283e03a28688551c2129d91a30a4b19df20f4a4c0b059c
MD5 7f8572c70349daaed864d1f31f34f83e
BLAKE2b-256 dc87bed87c81948d8e8a78d7e8f493857df0383c96da6cc4454b8a525f56c358

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