@langchain/langgraph-api 0.0.42 → 0.0.44
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/CHANGELOG.md +25 -0
- package/dist/experimental/embed.mjs +11 -0
- package/package.json +6 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @langchain/langgraph-api
|
|
2
|
+
|
|
3
|
+
## 0.0.44
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2f26f2f: Expose get/delete thread endpoint to embed server
|
|
8
|
+
- Updated dependencies [2f26f2f]
|
|
9
|
+
- @langchain/langgraph-ui@0.0.44
|
|
10
|
+
|
|
11
|
+
## 0.0.43
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- ce0a39a: Fix invalid package.json dependencies
|
|
16
|
+
- Updated dependencies [ce0a39a]
|
|
17
|
+
- @langchain/langgraph-ui@0.0.43
|
|
18
|
+
|
|
19
|
+
## 0.0.42
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 972b66a: Support gen UI components namespaced with a hyphen
|
|
24
|
+
- Updated dependencies [972b66a]
|
|
25
|
+
- @langchain/langgraph-ui@0.0.42
|
|
@@ -66,6 +66,17 @@ export function createEmbedServer(options) {
|
|
|
66
66
|
await options.threads.put(threadId, payload);
|
|
67
67
|
return jsonExtra(c, { thread_id: threadId });
|
|
68
68
|
});
|
|
69
|
+
api.get("/threads/:thread_id", zValidator("param", z.object({ thread_id: z.string().uuid() })), async (c) => {
|
|
70
|
+
// Get Thread
|
|
71
|
+
const { thread_id } = c.req.valid("param");
|
|
72
|
+
const thread = await options.threads.get(thread_id);
|
|
73
|
+
return jsonExtra(c, thread);
|
|
74
|
+
});
|
|
75
|
+
api.delete("/threads/:thread_id", zValidator("param", z.object({ thread_id: z.string().uuid() })), async (c) => {
|
|
76
|
+
const { thread_id } = c.req.valid("param");
|
|
77
|
+
await options.threads.delete(thread_id);
|
|
78
|
+
return new Response(null, { status: 204 });
|
|
79
|
+
});
|
|
69
80
|
api.get("/threads/:thread_id/state", zValidator("param", z.object({ thread_id: z.string().uuid() })), zValidator("query", z.object({ subgraphs: schemas.coercedBoolean.optional() })), async (c) => {
|
|
70
81
|
// Get Latest Thread State
|
|
71
82
|
const { thread_id } = c.req.valid("param");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@babel/code-frame": "^7.26.2",
|
|
53
53
|
"@hono/node-server": "^1.12.0",
|
|
54
54
|
"@hono/zod-validator": "^0.2.2",
|
|
55
|
-
"@langchain/langgraph-ui": "
|
|
55
|
+
"@langchain/langgraph-ui": "0.0.44",
|
|
56
56
|
"@types/json-schema": "^7.0.15",
|
|
57
57
|
"@typescript/vfs": "^1.6.0",
|
|
58
58
|
"dedent": "^1.5.3",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@langchain/core": "^0.3.59",
|
|
87
|
-
"@langchain/langgraph": "
|
|
88
|
-
"@langchain/langgraph-checkpoint": "
|
|
89
|
-
"@langchain/langgraph-sdk": "
|
|
87
|
+
"@langchain/langgraph": "0.3.7",
|
|
88
|
+
"@langchain/langgraph-checkpoint": "0.0.18",
|
|
89
|
+
"@langchain/langgraph-sdk": "0.0.91",
|
|
90
90
|
"@types/babel__code-frame": "^7.0.6",
|
|
91
91
|
"@types/node": "^18.15.11",
|
|
92
92
|
"@types/react": "^19.0.8",
|
|
@@ -100,4 +100,4 @@
|
|
|
100
100
|
"vitest": "^3.1.2",
|
|
101
101
|
"wait-port": "^1.1.0"
|
|
102
102
|
}
|
|
103
|
-
}
|
|
103
|
+
}
|