@langchain/langgraph-api 0.0.43 → 0.0.45
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 +16 -0
- package/dist/experimental/embed.mjs +21 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @langchain/langgraph-api
|
|
2
2
|
|
|
3
|
+
## 0.0.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 603daa6: Embed should properly handle `payload.checkpoint` and `payload.checkpoint_id`
|
|
8
|
+
- Updated dependencies [603daa6]
|
|
9
|
+
- @langchain/langgraph-ui@0.0.45
|
|
10
|
+
|
|
11
|
+
## 0.0.44
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 2f26f2f: Expose get/delete thread endpoint to embed server
|
|
16
|
+
- Updated dependencies [2f26f2f]
|
|
17
|
+
- @langchain/langgraph-ui@0.0.44
|
|
18
|
+
|
|
3
19
|
## 0.0.43
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -22,6 +22,16 @@ function createStubRun(threadId, payload) {
|
|
|
22
22
|
run_id: runId,
|
|
23
23
|
thread_id: threadId,
|
|
24
24
|
graph_id: payload.assistant_id,
|
|
25
|
+
...(payload.checkpoint_id
|
|
26
|
+
? { checkpoint_id: payload.checkpoint_id }
|
|
27
|
+
: null),
|
|
28
|
+
...payload.checkpoint,
|
|
29
|
+
...(payload.langsmith_tracer
|
|
30
|
+
? {
|
|
31
|
+
langsmith_project: payload.langsmith_tracer.project_name,
|
|
32
|
+
langsmith_example_id: payload.langsmith_tracer.example_id,
|
|
33
|
+
}
|
|
34
|
+
: null),
|
|
25
35
|
},
|
|
26
36
|
}, { metadata: payload.metadata ?? {} });
|
|
27
37
|
return {
|
|
@@ -66,6 +76,17 @@ export function createEmbedServer(options) {
|
|
|
66
76
|
await options.threads.put(threadId, payload);
|
|
67
77
|
return jsonExtra(c, { thread_id: threadId });
|
|
68
78
|
});
|
|
79
|
+
api.get("/threads/:thread_id", zValidator("param", z.object({ thread_id: z.string().uuid() })), async (c) => {
|
|
80
|
+
// Get Thread
|
|
81
|
+
const { thread_id } = c.req.valid("param");
|
|
82
|
+
const thread = await options.threads.get(thread_id);
|
|
83
|
+
return jsonExtra(c, thread);
|
|
84
|
+
});
|
|
85
|
+
api.delete("/threads/:thread_id", zValidator("param", z.object({ thread_id: z.string().uuid() })), async (c) => {
|
|
86
|
+
const { thread_id } = c.req.valid("param");
|
|
87
|
+
await options.threads.delete(thread_id);
|
|
88
|
+
return new Response(null, { status: 204 });
|
|
89
|
+
});
|
|
69
90
|
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
91
|
// Get Latest Thread State
|
|
71
92
|
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.45",
|
|
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": "0.0.
|
|
55
|
+
"@langchain/langgraph-ui": "0.0.45",
|
|
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": "0.3.
|
|
87
|
+
"@langchain/langgraph": "0.3.7",
|
|
88
88
|
"@langchain/langgraph-checkpoint": "0.0.18",
|
|
89
|
-
"@langchain/langgraph-sdk": "0.0.
|
|
89
|
+
"@langchain/langgraph-sdk": "0.0.92",
|
|
90
90
|
"@types/babel__code-frame": "^7.0.6",
|
|
91
91
|
"@types/node": "^18.15.11",
|
|
92
92
|
"@types/react": "^19.0.8",
|