@langchain/langgraph 0.2.0-rc.0 → 0.2.0-rc.1
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/_types.cjs +1 -0
- package/_types.d.cts +1 -0
- package/_types.d.ts +1 -0
- package/_types.js +1 -0
- package/dist/_types.cjs +17 -0
- package/dist/_types.d.ts +1 -0
- package/dist/_types.js +16 -0
- package/dist/index.cjs +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/web.cjs +3 -1
- package/dist/web.d.ts +3 -2
- package/dist/web.js +2 -1
- package/package.json +16 -15
- package/checkpoint/sqlite.cjs +0 -1
- package/checkpoint/sqlite.d.cts +0 -1
- package/checkpoint/sqlite.d.ts +0 -1
- package/checkpoint/sqlite.js +0 -1
- package/dist/checkpoint/sqlite.cjs +0 -17
- package/dist/checkpoint/sqlite.d.ts +0 -1
- package/dist/checkpoint/sqlite.js +0 -1
package/_types.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./dist/_types.cjs');
|
package/_types.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/_types.js'
|
package/_types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/_types.js'
|
package/_types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/_types.js'
|
package/dist/_types.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// // Export types for portability, these shouldn't be needed/used directly
|
|
3
|
+
// export {
|
|
4
|
+
// type AnyValue,
|
|
5
|
+
// type WaitForNames,
|
|
6
|
+
// type DynamicBarrierValue,
|
|
7
|
+
// type LastValue,
|
|
8
|
+
// type NamedBarrierValue,
|
|
9
|
+
// type Topic,
|
|
10
|
+
// } from "./channels/index.js";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
// export {
|
|
13
|
+
// type AnnotationRoot,
|
|
14
|
+
// type StateType,
|
|
15
|
+
// type UpdateType,
|
|
16
|
+
// type NodeType,
|
|
17
|
+
// } from "./graph/index.js";
|
package/dist/_types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/_types.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// // Export types for portability, these shouldn't be needed/used directly
|
|
2
|
+
// export {
|
|
3
|
+
// type AnyValue,
|
|
4
|
+
// type WaitForNames,
|
|
5
|
+
// type DynamicBarrierValue,
|
|
6
|
+
// type LastValue,
|
|
7
|
+
// type NamedBarrierValue,
|
|
8
|
+
// type Topic,
|
|
9
|
+
// } from "./channels/index.js";
|
|
10
|
+
export {};
|
|
11
|
+
// export {
|
|
12
|
+
// type AnnotationRoot,
|
|
13
|
+
// type StateType,
|
|
14
|
+
// type UpdateType,
|
|
15
|
+
// type NodeType,
|
|
16
|
+
// } from "./graph/index.js";
|
package/dist/index.cjs
CHANGED
|
@@ -15,10 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MessagesAnnotation = void 0;
|
|
19
18
|
const async_local_storage_js_1 = require("./setup/async_local_storage.cjs");
|
|
20
19
|
// Initialize global async local storage instance for tracing
|
|
21
20
|
(0, async_local_storage_js_1.initializeAsyncLocalStorageSingleton)();
|
|
22
21
|
__exportStar(require("./web.cjs"), exports);
|
|
23
|
-
var messages_annotation_js_1 = require("./graph/messages_annotation.cjs");
|
|
24
|
-
Object.defineProperty(exports, "MessagesAnnotation", { enumerable: true, get: function () { return messages_annotation_js_1.MessagesAnnotation; } });
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,4 +3,3 @@ import { initializeAsyncLocalStorageSingleton } from "./setup/async_local_storag
|
|
|
3
3
|
// Initialize global async local storage instance for tracing
|
|
4
4
|
initializeAsyncLocalStorageSingleton();
|
|
5
5
|
export * from "./web.js";
|
|
6
|
-
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
package/dist/web.cjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.Annotation = exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
|
|
17
|
+
exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.MessagesAnnotation = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.Annotation = exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
|
|
18
18
|
var index_js_1 = require("./graph/index.cjs");
|
|
19
19
|
Object.defineProperty(exports, "END", { enumerable: true, get: function () { return index_js_1.END; } });
|
|
20
20
|
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return index_js_1.Graph; } });
|
|
@@ -29,6 +29,8 @@ Object.defineProperty(exports, "BaseChannel", { enumerable: true, get: function
|
|
|
29
29
|
Object.defineProperty(exports, "BinaryOperatorAggregate", { enumerable: true, get: function () { return index_js_2.BinaryOperatorAggregate; } });
|
|
30
30
|
var constants_js_1 = require("./constants.cjs");
|
|
31
31
|
Object.defineProperty(exports, "Send", { enumerable: true, get: function () { return constants_js_1.Send; } });
|
|
32
|
+
var messages_annotation_js_1 = require("./graph/messages_annotation.cjs");
|
|
33
|
+
Object.defineProperty(exports, "MessagesAnnotation", { enumerable: true, get: function () { return messages_annotation_js_1.MessagesAnnotation; } });
|
|
32
34
|
var langgraph_checkpoint_1 = require("@langchain/langgraph-checkpoint");
|
|
33
35
|
Object.defineProperty(exports, "MemorySaver", { enumerable: true, get: function () { return langgraph_checkpoint_1.MemorySaver; } });
|
|
34
36
|
Object.defineProperty(exports, "copyCheckpoint", { enumerable: true, get: function () { return langgraph_checkpoint_1.copyCheckpoint; } });
|
package/dist/web.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, type Messages, Annotation, type
|
|
1
|
+
export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, type Messages, Annotation, type StateDefinition, type SingleReducer, type CompiledGraph, } from "./graph/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
|
-
export { BaseChannel, type BinaryOperator, BinaryOperatorAggregate
|
|
3
|
+
export { BaseChannel, type BinaryOperator, BinaryOperatorAggregate } from "./channels/index.js";
|
|
4
4
|
export { type RetryPolicy } from "./pregel/utils.js";
|
|
5
5
|
export { Send } from "./constants.js";
|
|
6
|
+
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
|
6
7
|
export { MemorySaver, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, } from "@langchain/langgraph-checkpoint";
|
package/dist/web.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { END, Graph, START, StateGraph, MessageGraph, messagesStateReducer, Annotation, } from "./graph/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
|
-
export { BaseChannel, BinaryOperatorAggregate
|
|
3
|
+
export { BaseChannel, BinaryOperatorAggregate } from "./channels/index.js";
|
|
4
4
|
export { Send } from "./constants.js";
|
|
5
|
+
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
|
5
6
|
export { MemorySaver, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, } from "@langchain/langgraph-checkpoint";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.1",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@langchain/anthropic": "^0.2.12",
|
|
45
45
|
"@langchain/community": "^0.2.31",
|
|
46
46
|
"@langchain/core": "^0.2.31",
|
|
47
|
+
"@langchain/langgraph-checkpoint-sqlite": "workspace:*",
|
|
47
48
|
"@langchain/openai": "^0.2.4",
|
|
48
49
|
"@langchain/scripts": ">=0.1.2 <0.2.0",
|
|
49
50
|
"@swc/core": "^1.3.90",
|
|
@@ -80,6 +81,15 @@
|
|
|
80
81
|
"registry": "https://registry.npmjs.org/"
|
|
81
82
|
},
|
|
82
83
|
"exports": {
|
|
84
|
+
"./_types": {
|
|
85
|
+
"types": {
|
|
86
|
+
"import": "./_types.d.ts",
|
|
87
|
+
"require": "./_types.d.cts",
|
|
88
|
+
"default": "./_types.d.ts"
|
|
89
|
+
},
|
|
90
|
+
"import": "./_types.js",
|
|
91
|
+
"require": "./_types.cjs"
|
|
92
|
+
},
|
|
83
93
|
".": {
|
|
84
94
|
"types": {
|
|
85
95
|
"import": "./index.d.ts",
|
|
@@ -116,19 +126,14 @@
|
|
|
116
126
|
"import": "./prebuilt.js",
|
|
117
127
|
"require": "./prebuilt.cjs"
|
|
118
128
|
},
|
|
119
|
-
"./checkpoint/sqlite": {
|
|
120
|
-
"types": {
|
|
121
|
-
"import": "./checkpoint/sqlite.d.ts",
|
|
122
|
-
"require": "./checkpoint/sqlite.d.cts",
|
|
123
|
-
"default": "./checkpoint/sqlite.d.ts"
|
|
124
|
-
},
|
|
125
|
-
"import": "./checkpoint/sqlite.js",
|
|
126
|
-
"require": "./checkpoint/sqlite.cjs"
|
|
127
|
-
},
|
|
128
129
|
"./package.json": "./package.json"
|
|
129
130
|
},
|
|
130
131
|
"files": [
|
|
131
132
|
"dist/",
|
|
133
|
+
"_types.cjs",
|
|
134
|
+
"_types.js",
|
|
135
|
+
"_types.d.ts",
|
|
136
|
+
"_types.d.cts",
|
|
132
137
|
"index.cjs",
|
|
133
138
|
"index.js",
|
|
134
139
|
"index.d.ts",
|
|
@@ -144,10 +149,6 @@
|
|
|
144
149
|
"prebuilt.cjs",
|
|
145
150
|
"prebuilt.js",
|
|
146
151
|
"prebuilt.d.ts",
|
|
147
|
-
"prebuilt.d.cts"
|
|
148
|
-
"checkpoint/sqlite.cjs",
|
|
149
|
-
"checkpoint/sqlite.js",
|
|
150
|
-
"checkpoint/sqlite.d.ts",
|
|
151
|
-
"checkpoint/sqlite.d.cts"
|
|
152
|
+
"prebuilt.d.cts"
|
|
152
153
|
]
|
|
153
154
|
}
|
package/checkpoint/sqlite.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('../dist/checkpoint/sqlite.cjs');
|
package/checkpoint/sqlite.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../dist/checkpoint/sqlite.js'
|
package/checkpoint/sqlite.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../dist/checkpoint/sqlite.js'
|
package/checkpoint/sqlite.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../dist/checkpoint/sqlite.js'
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@langchain/langgraph-checkpoint-sqlite"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@langchain/langgraph-checkpoint-sqlite";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@langchain/langgraph-checkpoint-sqlite";
|