@langchain/langgraph 0.2.0-rc.3 → 0.2.0-rc.4

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 CHANGED
@@ -24,7 +24,7 @@ LangGraph is inspired by [Pregel](https://research.google/pubs/pub37252/) and [A
24
24
  ## Installation
25
25
 
26
26
  ```bash
27
- npm install @langchain/langgraph
27
+ npm install @langchain/langgraph @langchain/core
28
28
  ```
29
29
 
30
30
  ## Example
package/dist/_types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export { type AnyValue, type WaitForNames, type DynamicBarrierValue, type LastValue, type NamedBarrierValue, type Topic, } from "./channels/index.js";
2
- export { type AnnotationRoot, type StateType, type UpdateType, type NodeType, } from "./graph/index.js";
2
+ export { type AnnotationRoot, } from "./graph/index.js";
@@ -139,7 +139,7 @@ getNextVersion) {
139
139
  }
140
140
  catch (e) {
141
141
  if (e.name === errors_js_1.InvalidUpdateError.unminifiable_name) {
142
- throw new errors_js_1.InvalidUpdateError(`Invalid update for channel ${chan} with values ${JSON.stringify(vals)}`);
142
+ throw new errors_js_1.InvalidUpdateError(`Invalid update for channel ${chan} with values ${JSON.stringify(vals)}: ${e.message}`);
143
143
  }
144
144
  else {
145
145
  throw e;
@@ -132,7 +132,7 @@ getNextVersion) {
132
132
  }
133
133
  catch (e) {
134
134
  if (e.name === InvalidUpdateError.unminifiable_name) {
135
- throw new InvalidUpdateError(`Invalid update for channel ${chan} with values ${JSON.stringify(vals)}`);
135
+ throw new InvalidUpdateError(`Invalid update for channel ${chan} with values ${JSON.stringify(vals)}: ${e.message}`);
136
136
  }
137
137
  else {
138
138
  throw e;
package/dist/web.d.ts CHANGED
@@ -1,4 +1,4 @@
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";
1
+ export { END, Graph, type StateGraphArgs, START, StateGraph, type CompiledStateGraph, MessageGraph, messagesStateReducer, type Messages, Annotation, type StateType, type UpdateType, type NodeType, type StateDefinition, type SingleReducer, type CompiledGraph, } from "./graph/index.js";
2
2
  export * from "./errors.js";
3
3
  export { BaseChannel, type BinaryOperator, BinaryOperatorAggregate, } from "./channels/index.js";
4
4
  export { type RetryPolicy } from "./pregel/utils.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph",
3
- "version": "0.2.0-rc.3",
3
+ "version": "0.2.0-rc.4",
4
4
  "description": "LangGraph",
5
5
  "type": "module",
6
6
  "engines": {