@langchain/langgraph-api 0.0.44 → 0.0.46
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 +10 -0
- package/dist/stream.mjs +6 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @langchain/langgraph-api
|
|
2
2
|
|
|
3
|
+
## 0.0.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d172de3: Fix apply namespace to messages-tuple stream mode
|
|
8
|
+
- Updated dependencies [d172de3]
|
|
9
|
+
- @langchain/langgraph-ui@0.0.46
|
|
10
|
+
|
|
11
|
+
## 0.0.45
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 603daa6: Embed should properly handle `payload.checkpoint` and `payload.checkpoint_id`
|
|
16
|
+
- Updated dependencies [603daa6]
|
|
17
|
+
- @langchain/langgraph-ui@0.0.45
|
|
18
|
+
|
|
3
19
|
## 0.0.44
|
|
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 {
|
package/dist/stream.mjs
CHANGED
|
@@ -141,7 +141,12 @@ export async function* streamState(run, options) {
|
|
|
141
141
|
}
|
|
142
142
|
if (mode === "messages") {
|
|
143
143
|
if (userStreamMode.includes("messages-tuple")) {
|
|
144
|
-
|
|
144
|
+
if (kwargs.subgraphs && ns?.length) {
|
|
145
|
+
yield { event: `messages|${ns.join("|")}`, data };
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
yield { event: "messages", data };
|
|
149
|
+
}
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
else if (userStreamMode.includes(mode)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
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.46",
|
|
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.8",
|
|
88
88
|
"@langchain/langgraph-checkpoint": "0.0.18",
|
|
89
|
-
"@langchain/langgraph-sdk": "0.0.
|
|
89
|
+
"@langchain/langgraph-sdk": "0.0.93",
|
|
90
90
|
"@types/babel__code-frame": "^7.0.6",
|
|
91
91
|
"@types/node": "^18.15.11",
|
|
92
92
|
"@types/react": "^19.0.8",
|