@ag-ui/langgraph 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/package.json +4 -3
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @ag-ui/langgraph
|
|
2
|
+
|
|
3
|
+
Implementation of the AG-UI protocol for LangGraph.
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @ag-ui/langgraph
|
|
11
|
+
pnpm add @ag-ui/langgraph
|
|
12
|
+
yarn add @ag-ui/langgraph
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { LangGraphAgent } from "@ag-ui/langgraph";
|
|
19
|
+
|
|
20
|
+
// Create an AG-UI compatible agent
|
|
21
|
+
const agent = new LangGraphAgent({
|
|
22
|
+
graphId: "my-graph",
|
|
23
|
+
deploymentUrl: "https://your-langgraph-deployment.com",
|
|
24
|
+
langsmithApiKey: "your-api-key",
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// Run with streaming
|
|
28
|
+
const result = await agent.runAgent({
|
|
29
|
+
messages: [{ role: "user", content: "Start the workflow" }],
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- **Cloud & local support** – Works with LangGraph Cloud and local graph instances
|
|
36
|
+
- **State management** – Bidirectional state synchronization with graph nodes
|
|
37
|
+
- **Interrupt handling** – Human-in-the-loop workflow support
|
|
38
|
+
- **Step tracking** – Real-time node execution progress
|
|
39
|
+
|
|
40
|
+
## To run the example server in the dojo
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
cd typescript-sdk/integrations/langgraph/examples
|
|
44
|
+
langgraph dev
|
|
45
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ag-ui/langgraph",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist/**"
|
|
13
|
+
"dist/**",
|
|
14
|
+
"README.md"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@langchain/core": "^0.3.38",
|
|
17
18
|
"@langchain/langgraph-sdk": "^0.0.78",
|
|
18
19
|
"partial-json": "^0.1.7",
|
|
19
20
|
"rxjs": "7.8.1",
|
|
20
|
-
"@ag-ui/client": "0.0.
|
|
21
|
+
"@ag-ui/client": "0.0.35"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/jest": "^29.5.14",
|