@langchain/langgraph 0.0.6 → 0.0.8
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/dist/graph/graph.cjs +1 -1
- package/dist/graph/graph.js +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/graph/graph.cjs
CHANGED
|
@@ -189,7 +189,7 @@ class Graph {
|
|
|
189
189
|
throw new Error(`Node \`${node}\` is a dead-end`);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends
|
|
192
|
+
const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends));
|
|
193
193
|
if (allEndsAreDefined) {
|
|
194
194
|
const allEnds = new Set([...this.edges]
|
|
195
195
|
.map(([_, end]) => end)
|
package/dist/graph/graph.js
CHANGED
|
@@ -186,7 +186,7 @@ export class Graph {
|
|
|
186
186
|
throw new Error(`Node \`${node}\` is a dead-end`);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends
|
|
189
|
+
const allEndsAreDefined = Object.values(this.branches).every((branchList) => branchList.every((branch) => branch.ends));
|
|
190
190
|
if (allEndsAreDefined) {
|
|
191
191
|
const allEnds = new Set([...this.edges]
|
|
192
192
|
.map(([_, end]) => end)
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
|
|
3
|
+
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; } });
|
|
7
7
|
Object.defineProperty(exports, "START", { enumerable: true, get: function () { return index_js_1.START; } });
|
|
8
8
|
Object.defineProperty(exports, "StateGraph", { enumerable: true, get: function () { return index_js_1.StateGraph; } });
|
|
9
|
+
Object.defineProperty(exports, "MessageGraph", { enumerable: true, get: function () { return index_js_1.MessageGraph; } });
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { END, Graph, type StateGraphArgs, START, StateGraph, } from "./graph/index.js";
|
|
1
|
+
export { END, Graph, type StateGraphArgs, START, StateGraph, MessageGraph, } from "./graph/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { END, Graph, START, StateGraph, } from "./graph/index.js";
|
|
1
|
+
export { END, Graph, START, StateGraph, MessageGraph, } from "./graph/index.js";
|