@ag-ui/langgraph
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@ag-ui/langgraph

Implementation of the AG-UI protocol for LangGraph.

Connects LangGraph graphs to frontend applications via the AG-UI protocol. Supports both local TypeScript graphs and remote LangGraph Cloud deployments with full state management and interrupt handling.

Installation

npm install @ag-ui/langgraph
pnpm add @ag-ui/langgraph
yarn add @ag-ui/langgraph

Usage

import { LangGraphAgent } from "@ag-ui/langgraph";

// Create an AG-UI compatible agent
const agent = new LangGraphAgent({
  graphId: "my-graph",
  deploymentUrl: "https://your-langgraph-deployment.com",
  langsmithApiKey: "your-api-key",
});

// Run with streaming
const result = await agent.runAgent({
  messages: [{ role: "user", content: "Start the workflow" }],
});

Features

  • Cloud & local support – Works with LangGraph Cloud and local graph instances
  • State management – Bidirectional state synchronization with graph nodes
  • Interrupt handling – Human-in-the-loop workflow support
  • Step tracking – Real-time node execution progress

To run the example server in the dojo

cd typescript-sdk/integrations/langgraph/examples
langgraph dev

Readme

Keywords

none

Package Sidebar

Install

npm i @ag-ui/langgraph

Weekly Downloads

14,458

Version

0.0.7

License

none

Unpacked Size

154 kB

Total Files

9

Last publish

Collaborators

  • _mme
  • copilotkit