@langchain/langgraph 0.0.33 → 0.0.34
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 +1 -1
- package/dist/channels/base.cjs +1 -0
- package/dist/channels/base.js +1 -0
- package/dist/channels/ephemeral_value.cjs +1 -1
- package/dist/channels/ephemeral_value.js +1 -1
- package/dist/checkpoint/base.cjs +2 -0
- package/dist/checkpoint/base.d.ts +6 -0
- package/dist/checkpoint/base.js +2 -0
- package/dist/constants.cjs +80 -1
- package/dist/constants.d.ts +57 -0
- package/dist/constants.js +76 -0
- package/dist/graph/annotation.cjs +51 -0
- package/dist/graph/annotation.d.ts +41 -0
- package/dist/graph/annotation.js +45 -0
- package/dist/graph/graph.cjs +19 -4
- package/dist/graph/graph.d.ts +5 -4
- package/dist/graph/graph.js +20 -5
- package/dist/graph/index.cjs +3 -1
- package/dist/graph/index.d.ts +1 -0
- package/dist/graph/index.js +1 -0
- package/dist/graph/message.d.ts +1 -1
- package/dist/graph/state.cjs +24 -39
- package/dist/graph/state.d.ts +4 -29
- package/dist/graph/state.js +22 -36
- package/dist/pregel/index.cjs +111 -16
- package/dist/pregel/index.d.ts +7 -2
- package/dist/pregel/index.js +110 -16
- package/dist/pregel/io.cjs +31 -28
- package/dist/pregel/io.d.ts +1 -1
- package/dist/pregel/io.js +31 -28
- package/dist/pregel/read.cjs +4 -1
- package/dist/pregel/read.js +4 -1
- package/dist/pregel/write.cjs +60 -24
- package/dist/pregel/write.d.ts +11 -6
- package/dist/pregel/write.js +61 -25
- package/dist/web.cjs +4 -1
- package/dist/web.d.ts +2 -1
- package/dist/web.js +2 -1
- package/package.json +3 -2
package/dist/web.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmptyChannelError = exports.InvalidUpdateError = exports.GraphValueError = exports.GraphRecursionError = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
|
|
3
|
+
exports.Send = exports.EmptyChannelError = exports.InvalidUpdateError = exports.GraphValueError = exports.GraphRecursionError = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.Annotation = exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
|
|
4
4
|
var index_js_1 = require("./graph/index.cjs");
|
|
5
5
|
Object.defineProperty(exports, "END", { enumerable: true, get: function () { return index_js_1.END; } });
|
|
6
6
|
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return index_js_1.Graph; } });
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "START", { enumerable: true, get: function () { r
|
|
|
8
8
|
Object.defineProperty(exports, "StateGraph", { enumerable: true, get: function () { return index_js_1.StateGraph; } });
|
|
9
9
|
Object.defineProperty(exports, "MessageGraph", { enumerable: true, get: function () { return index_js_1.MessageGraph; } });
|
|
10
10
|
Object.defineProperty(exports, "messagesStateReducer", { enumerable: true, get: function () { return index_js_1.messagesStateReducer; } });
|
|
11
|
+
Object.defineProperty(exports, "Annotation", { enumerable: true, get: function () { return index_js_1.Annotation; } });
|
|
11
12
|
var memory_js_1 = require("./checkpoint/memory.cjs");
|
|
12
13
|
Object.defineProperty(exports, "MemorySaver", { enumerable: true, get: function () { return memory_js_1.MemorySaver; } });
|
|
13
14
|
var base_js_1 = require("./checkpoint/base.cjs");
|
|
@@ -19,3 +20,5 @@ Object.defineProperty(exports, "GraphRecursionError", { enumerable: true, get: f
|
|
|
19
20
|
Object.defineProperty(exports, "GraphValueError", { enumerable: true, get: function () { return errors_js_1.GraphValueError; } });
|
|
20
21
|
Object.defineProperty(exports, "InvalidUpdateError", { enumerable: true, get: function () { return errors_js_1.InvalidUpdateError; } });
|
|
21
22
|
Object.defineProperty(exports, "EmptyChannelError", { enumerable: true, get: function () { return errors_js_1.EmptyChannelError; } });
|
|
23
|
+
var constants_js_1 = require("./constants.cjs");
|
|
24
|
+
Object.defineProperty(exports, "Send", { enumerable: true, get: function () { return constants_js_1.Send; } });
|
package/dist/web.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, } from "./graph/index.js";
|
|
1
|
+
export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, Annotation, type StateType, type UpdateType, } from "./graph/index.js";
|
|
2
2
|
export { MemorySaver } from "./checkpoint/memory.js";
|
|
3
3
|
export { type Checkpoint, type CheckpointMetadata, type CheckpointTuple, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, } from "./checkpoint/base.js";
|
|
4
4
|
export { GraphRecursionError, GraphValueError, InvalidUpdateError, EmptyChannelError, } from "./errors.js";
|
|
5
5
|
export { type SerializerProtocol } from "./serde/base.js";
|
|
6
|
+
export { Send } from "./constants.js";
|
package/dist/web.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { END, Graph, START, StateGraph, MessageGraph, messagesStateReducer, } from "./graph/index.js";
|
|
1
|
+
export { END, Graph, START, StateGraph, MessageGraph, messagesStateReducer, Annotation, } from "./graph/index.js";
|
|
2
2
|
export { MemorySaver } from "./checkpoint/memory.js";
|
|
3
3
|
export { copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, } from "./checkpoint/base.js";
|
|
4
4
|
export { GraphRecursionError, GraphValueError, InvalidUpdateError, EmptyChannelError, } from "./errors.js";
|
|
5
|
+
export { Send } from "./constants.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@jest/globals": "^29.5.0",
|
|
39
39
|
"@langchain/anthropic": "^0.2.12",
|
|
40
|
-
"@langchain/community": "^0.2.
|
|
40
|
+
"@langchain/community": "^0.2.25",
|
|
41
41
|
"@langchain/openai": "^0.2.4",
|
|
42
42
|
"@langchain/scripts": "^0.0.19",
|
|
43
43
|
"@swc/core": "^1.3.90",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
57
57
|
"eslint-config-prettier": "^8.6.0",
|
|
58
58
|
"eslint-plugin-import": "^2.29.1",
|
|
59
|
+
"eslint-plugin-jest": "^28.8.0",
|
|
59
60
|
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
60
61
|
"eslint-plugin-prettier": "^4.2.1",
|
|
61
62
|
"jest": "^29.5.0",
|