@langchain/langgraph 0.1.3 → 0.1.4-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.
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BinaryOperatorAggregate = void 0;
4
4
  const errors_js_1 = require("../errors.cjs");
5
- const index_js_1 = require("./index.cjs");
5
+ const base_js_1 = require("./base.cjs");
6
6
  /**
7
7
  * Stores the result of applying a binary operator to the current value and each new value.
8
8
  */
9
- class BinaryOperatorAggregate extends index_js_1.BaseChannel {
9
+ class BinaryOperatorAggregate extends base_js_1.BaseChannel {
10
10
  constructor(operator, initialValueFactory) {
11
11
  super();
12
12
  Object.defineProperty(this, "lc_graph_name", {
@@ -1,4 +1,4 @@
1
- import { BaseChannel } from "./index.js";
1
+ import { BaseChannel } from "./base.js";
2
2
  export type BinaryOperator<ValueType, UpdateType> = (a: ValueType, b: UpdateType) => ValueType;
3
3
  /**
4
4
  * Stores the result of applying a binary operator to the current value and each new value.
@@ -1,5 +1,5 @@
1
1
  import { EmptyChannelError } from "../errors.js";
2
- import { BaseChannel } from "./index.js";
2
+ import { BaseChannel } from "./base.js";
3
3
  /**
4
4
  * Stores the result of applying a binary operator to the current value and each new value.
5
5
  */
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.empty = exports.createCheckpoint = exports.BaseChannel = void 0;
3
+ exports.BinaryOperatorAggregate = exports.empty = exports.createCheckpoint = exports.BaseChannel = void 0;
4
4
  var base_js_1 = require("./base.cjs");
5
5
  Object.defineProperty(exports, "BaseChannel", { enumerable: true, get: function () { return base_js_1.BaseChannel; } });
6
6
  Object.defineProperty(exports, "createCheckpoint", { enumerable: true, get: function () { return base_js_1.createCheckpoint; } });
7
7
  Object.defineProperty(exports, "empty", { enumerable: true, get: function () { return base_js_1.emptyChannels; } });
8
+ var binop_js_1 = require("./binop.cjs");
9
+ Object.defineProperty(exports, "BinaryOperatorAggregate", { enumerable: true, get: function () { return binop_js_1.BinaryOperatorAggregate; } });
@@ -1 +1,2 @@
1
1
  export { BaseChannel, createCheckpoint, emptyChannels as empty, } from "./base.js";
2
+ export { type BinaryOperator, BinaryOperatorAggregate } from "./binop.js";
@@ -1 +1,2 @@
1
1
  export { BaseChannel, createCheckpoint, emptyChannels as empty, } from "./base.js";
2
+ export { BinaryOperatorAggregate } from "./binop.js";
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.Graph = exports.START = exports.END = exports.Annotation = void 0;
3
+ exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.Graph = exports.START = exports.END = exports.AnnotationRoot = exports.Annotation = void 0;
4
4
  var annotation_js_1 = require("./annotation.cjs");
5
5
  Object.defineProperty(exports, "Annotation", { enumerable: true, get: function () { return annotation_js_1.Annotation; } });
6
+ Object.defineProperty(exports, "AnnotationRoot", { enumerable: true, get: function () { return annotation_js_1.AnnotationRoot; } });
6
7
  var graph_js_1 = require("./graph.cjs");
7
8
  Object.defineProperty(exports, "END", { enumerable: true, get: function () { return graph_js_1.END; } });
8
9
  Object.defineProperty(exports, "START", { enumerable: true, get: function () { return graph_js_1.START; } });
@@ -1,4 +1,4 @@
1
- export { Annotation, type StateType, type UpdateType } from "./annotation.js";
1
+ export { Annotation, type StateType, type UpdateType, AnnotationRoot, } from "./annotation.js";
2
2
  export { END, START, Graph, type CompiledGraph } from "./graph.js";
3
3
  export { type StateGraphArgs, StateGraph, type CompiledStateGraph, } from "./state.js";
4
4
  export { MessageGraph, messagesStateReducer } from "./message.js";
@@ -1,4 +1,4 @@
1
- export { Annotation } from "./annotation.js";
1
+ export { Annotation, AnnotationRoot, } from "./annotation.js";
2
2
  export { END, START, Graph } from "./graph.js";
3
3
  export { StateGraph, } from "./state.js";
4
4
  export { MessageGraph, messagesStateReducer } from "./message.js";
@@ -5,5 +5,5 @@ import { BaseMessage } from "@langchain/core/messages";
5
5
  * instances.
6
6
  */
7
7
  export declare const MessagesAnnotation: import("./annotation.js").AnnotationRoot<{
8
- messages: import("../channels/binop.js").BinaryOperatorAggregate<BaseMessage[], BaseMessage[]>;
8
+ messages: import("../web.js").BinaryOperatorAggregate<BaseMessage[], BaseMessage[]>;
9
9
  }>;
package/dist/web.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.Send = exports.EmptyChannelError = exports.InvalidUpdateError = exports.GraphValueError = exports.GraphRecursionError = exports.Annotation = exports.messagesStateReducer = exports.MessageGraph = exports.StateGraph = exports.START = exports.Graph = exports.END = void 0;
3
+ exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.EmptyChannelError = exports.InvalidUpdateError = exports.GraphValueError = exports.GraphRecursionError = exports.AnnotationRoot = 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; } });
@@ -9,11 +9,15 @@ Object.defineProperty(exports, "StateGraph", { enumerable: true, get: function (
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
11
  Object.defineProperty(exports, "Annotation", { enumerable: true, get: function () { return index_js_1.Annotation; } });
12
+ Object.defineProperty(exports, "AnnotationRoot", { enumerable: true, get: function () { return index_js_1.AnnotationRoot; } });
12
13
  var errors_js_1 = require("./errors.cjs");
13
14
  Object.defineProperty(exports, "GraphRecursionError", { enumerable: true, get: function () { return errors_js_1.GraphRecursionError; } });
14
15
  Object.defineProperty(exports, "GraphValueError", { enumerable: true, get: function () { return errors_js_1.GraphValueError; } });
15
16
  Object.defineProperty(exports, "InvalidUpdateError", { enumerable: true, get: function () { return errors_js_1.InvalidUpdateError; } });
16
17
  Object.defineProperty(exports, "EmptyChannelError", { enumerable: true, get: function () { return errors_js_1.EmptyChannelError; } });
18
+ var index_js_2 = require("./channels/index.cjs");
19
+ Object.defineProperty(exports, "BaseChannel", { enumerable: true, get: function () { return index_js_2.BaseChannel; } });
20
+ Object.defineProperty(exports, "BinaryOperatorAggregate", { enumerable: true, get: function () { return index_js_2.BinaryOperatorAggregate; } });
17
21
  var constants_js_1 = require("./constants.cjs");
18
22
  Object.defineProperty(exports, "Send", { enumerable: true, get: function () { return constants_js_1.Send; } });
19
23
  var langgraph_checkpoint_1 = require("@langchain/langgraph-checkpoint");
package/dist/web.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, Annotation, type StateType, type UpdateType, type CompiledGraph, } from "./graph/index.js";
1
+ export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, Annotation, AnnotationRoot, type StateType, type UpdateType, type CompiledGraph, } from "./graph/index.js";
2
2
  export { GraphRecursionError, GraphValueError, InvalidUpdateError, EmptyChannelError, } from "./errors.js";
3
+ export { BaseChannel, type BinaryOperator, BinaryOperatorAggregate, } from "./channels/index.js";
3
4
  export { type RetryPolicy } from "./pregel/utils.js";
4
5
  export { Send } from "./constants.js";
5
6
  export { MemorySaver, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, } from "@langchain/langgraph-checkpoint";
package/dist/web.js CHANGED
@@ -1,4 +1,5 @@
1
- export { END, Graph, START, StateGraph, MessageGraph, messagesStateReducer, Annotation, } from "./graph/index.js";
1
+ export { END, Graph, START, StateGraph, MessageGraph, messagesStateReducer, Annotation, AnnotationRoot, } from "./graph/index.js";
2
2
  export { GraphRecursionError, GraphValueError, InvalidUpdateError, EmptyChannelError, } from "./errors.js";
3
+ export { BaseChannel, BinaryOperatorAggregate, } from "./channels/index.js";
3
4
  export { Send } from "./constants.js";
4
5
  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.1.3",
3
+ "version": "0.1.4-rc.1",
4
4
  "description": "LangGraph",
5
5
  "type": "module",
6
6
  "engines": {