@langchain/langgraph 0.2.40 → 0.2.42
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 +237 -154
- package/dist/channels/any_value.cjs +10 -10
- package/dist/channels/any_value.d.ts +1 -1
- package/dist/channels/any_value.js +10 -10
- package/dist/channels/ephemeral_value.cjs +10 -9
- package/dist/channels/ephemeral_value.d.ts +1 -1
- package/dist/channels/ephemeral_value.js +10 -9
- package/dist/channels/last_value.cjs +8 -7
- package/dist/channels/last_value.d.ts +1 -1
- package/dist/channels/last_value.js +8 -7
- package/dist/constants.cjs +33 -6
- package/dist/constants.d.ts +17 -2
- package/dist/constants.js +32 -5
- package/dist/errors.d.ts +3 -3
- package/dist/func/index.cjs +272 -0
- package/dist/func/index.d.ts +310 -0
- package/dist/func/index.js +267 -0
- package/dist/func/types.cjs +15 -0
- package/dist/func/types.d.ts +59 -0
- package/dist/func/types.js +11 -0
- package/dist/graph/graph.cjs +31 -35
- package/dist/graph/graph.d.ts +1 -5
- package/dist/graph/graph.js +1 -5
- package/dist/graph/index.cjs +1 -3
- package/dist/graph/index.d.ts +1 -1
- package/dist/graph/index.js +1 -1
- package/dist/graph/message.d.ts +1 -1
- package/dist/graph/state.cjs +17 -17
- package/dist/graph/state.d.ts +2 -1
- package/dist/graph/state.js +2 -2
- package/dist/index.cjs +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/interrupt.cjs +21 -34
- package/dist/interrupt.d.ts +1 -1
- package/dist/interrupt.js +22 -35
- package/dist/prebuilt/agent_executor.cjs +3 -3
- package/dist/prebuilt/agent_executor.d.ts +1 -1
- package/dist/prebuilt/agent_executor.js +1 -1
- package/dist/prebuilt/chat_agent_executor.cjs +3 -3
- package/dist/prebuilt/chat_agent_executor.d.ts +1 -1
- package/dist/prebuilt/chat_agent_executor.js +1 -1
- package/dist/prebuilt/react_agent_executor.cjs +79 -12
- package/dist/prebuilt/react_agent_executor.d.ts +35 -4
- package/dist/prebuilt/react_agent_executor.js +79 -13
- package/dist/prebuilt/tool_node.cjs +1 -2
- package/dist/prebuilt/tool_node.d.ts +1 -1
- package/dist/prebuilt/tool_node.js +1 -2
- package/dist/pregel/algo.cjs +121 -12
- package/dist/pregel/algo.d.ts +8 -6
- package/dist/pregel/algo.js +122 -13
- package/dist/pregel/call.cjs +77 -0
- package/dist/pregel/call.d.ts +15 -0
- package/dist/pregel/call.js +71 -0
- package/dist/pregel/index.cjs +59 -96
- package/dist/pregel/index.d.ts +1 -10
- package/dist/pregel/index.js +61 -98
- package/dist/pregel/io.cjs +6 -1
- package/dist/pregel/io.js +7 -2
- package/dist/pregel/loop.cjs +109 -75
- package/dist/pregel/loop.d.ts +17 -23
- package/dist/pregel/loop.js +110 -75
- package/dist/pregel/messages.d.ts +1 -1
- package/dist/pregel/retry.cjs +22 -50
- package/dist/pregel/retry.d.ts +6 -6
- package/dist/pregel/retry.js +22 -50
- package/dist/pregel/runner.cjs +275 -0
- package/dist/pregel/runner.d.ts +64 -0
- package/dist/pregel/runner.js +271 -0
- package/dist/pregel/stream.cjs +71 -0
- package/dist/pregel/stream.d.ts +17 -0
- package/dist/pregel/stream.js +67 -0
- package/dist/pregel/types.cjs +54 -0
- package/dist/pregel/types.d.ts +78 -6
- package/dist/pregel/types.js +51 -1
- package/dist/pregel/utils/config.cjs +26 -1
- package/dist/pregel/utils/config.d.ts +14 -0
- package/dist/pregel/utils/config.js +22 -0
- package/dist/pregel/write.d.ts +1 -1
- package/dist/utils.cjs +15 -1
- package/dist/utils.d.ts +3 -1
- package/dist/utils.js +12 -0
- package/dist/web.cjs +7 -5
- package/dist/web.d.ts +4 -4
- package/dist/web.js +3 -3
- package/package.json +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureLangGraphConfig = void 0;
|
|
3
|
+
exports.getConfig = exports.getWriter = exports.getStore = exports.ensureLangGraphConfig = void 0;
|
|
4
4
|
const singletons_1 = require("@langchain/core/singletons");
|
|
5
5
|
const COPIABLE_KEYS = ["tags", "metadata", "callbacks", "configurable"];
|
|
6
6
|
const CONFIG_KEYS = [
|
|
@@ -18,6 +18,7 @@ const CONFIG_KEYS = [
|
|
|
18
18
|
"writer",
|
|
19
19
|
"interruptBefore",
|
|
20
20
|
"interruptAfter",
|
|
21
|
+
"signal",
|
|
21
22
|
];
|
|
22
23
|
const DEFAULT_RECURSION_LIMIT = 25;
|
|
23
24
|
function ensureLangGraphConfig(...configs) {
|
|
@@ -81,3 +82,27 @@ function ensureLangGraphConfig(...configs) {
|
|
|
81
82
|
return empty;
|
|
82
83
|
}
|
|
83
84
|
exports.ensureLangGraphConfig = ensureLangGraphConfig;
|
|
85
|
+
/**
|
|
86
|
+
* A helper utility function that returns the {@link BaseStore} that was set when the graph was initialized
|
|
87
|
+
*
|
|
88
|
+
* @returns a reference to the {@link BaseStore} that was set when the graph was initialized
|
|
89
|
+
*/
|
|
90
|
+
function getStore() {
|
|
91
|
+
const config = singletons_1.AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
92
|
+
return config?.store;
|
|
93
|
+
}
|
|
94
|
+
exports.getStore = getStore;
|
|
95
|
+
/**
|
|
96
|
+
* A helper utility function that returns the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
97
|
+
*
|
|
98
|
+
* @returns a reference to the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
99
|
+
*/
|
|
100
|
+
function getWriter() {
|
|
101
|
+
const config = singletons_1.AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
102
|
+
return config?.configurable?.writer;
|
|
103
|
+
}
|
|
104
|
+
exports.getWriter = getWriter;
|
|
105
|
+
function getConfig() {
|
|
106
|
+
return singletons_1.AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
107
|
+
}
|
|
108
|
+
exports.getConfig = getConfig;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
import { RunnableConfig } from "@langchain/core/runnables";
|
|
2
|
+
import { BaseStore } from "@langchain/langgraph-checkpoint";
|
|
2
3
|
import { LangGraphRunnableConfig } from "../runnable_types.js";
|
|
3
4
|
export declare function ensureLangGraphConfig(...configs: (LangGraphRunnableConfig | undefined)[]): RunnableConfig;
|
|
5
|
+
/**
|
|
6
|
+
* A helper utility function that returns the {@link BaseStore} that was set when the graph was initialized
|
|
7
|
+
*
|
|
8
|
+
* @returns a reference to the {@link BaseStore} that was set when the graph was initialized
|
|
9
|
+
*/
|
|
10
|
+
export declare function getStore(): BaseStore | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* A helper utility function that returns the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
13
|
+
*
|
|
14
|
+
* @returns a reference to the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
15
|
+
*/
|
|
16
|
+
export declare function getWriter(): ((chunk: unknown) => void) | undefined;
|
|
17
|
+
export declare function getConfig(): LangGraphRunnableConfig;
|
|
@@ -15,6 +15,7 @@ const CONFIG_KEYS = [
|
|
|
15
15
|
"writer",
|
|
16
16
|
"interruptBefore",
|
|
17
17
|
"interruptAfter",
|
|
18
|
+
"signal",
|
|
18
19
|
];
|
|
19
20
|
const DEFAULT_RECURSION_LIMIT = 25;
|
|
20
21
|
export function ensureLangGraphConfig(...configs) {
|
|
@@ -77,3 +78,24 @@ export function ensureLangGraphConfig(...configs) {
|
|
|
77
78
|
}
|
|
78
79
|
return empty;
|
|
79
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* A helper utility function that returns the {@link BaseStore} that was set when the graph was initialized
|
|
83
|
+
*
|
|
84
|
+
* @returns a reference to the {@link BaseStore} that was set when the graph was initialized
|
|
85
|
+
*/
|
|
86
|
+
export function getStore() {
|
|
87
|
+
const config = AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
88
|
+
return config?.store;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A helper utility function that returns the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
92
|
+
*
|
|
93
|
+
* @returns a reference to the {@link LangGraphRunnableConfig#writer} if "custom" stream mode is enabled, otherwise undefined
|
|
94
|
+
*/
|
|
95
|
+
export function getWriter() {
|
|
96
|
+
const config = AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
97
|
+
return config?.configurable?.writer;
|
|
98
|
+
}
|
|
99
|
+
export function getConfig() {
|
|
100
|
+
return AsyncLocalStorageProviderSingleton.getRunnableConfig();
|
|
101
|
+
}
|
package/dist/pregel/write.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const PASSTHROUGH: {
|
|
|
11
11
|
* Mapping of write channels to Runnables that return the value to be written,
|
|
12
12
|
* or None to skip writing.
|
|
13
13
|
*/
|
|
14
|
-
export declare class ChannelWrite<RunInput = any> extends RunnableCallable {
|
|
14
|
+
export declare class ChannelWrite<RunInput = any> extends RunnableCallable<RunInput, RunInput> {
|
|
15
15
|
writes: Array<ChannelWriteEntry | ChannelWriteTupleEntry | Send>;
|
|
16
16
|
constructor(writes: Array<ChannelWriteEntry | ChannelWriteTupleEntry | Send>, tags?: string[]);
|
|
17
17
|
_write(input: unknown, config: RunnableConfig): Promise<unknown>;
|
package/dist/utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.patchConfigurable = exports.gatherIteratorSync = exports.gatherIterator = exports.prefixGenerator = exports.RunnableCallable = void 0;
|
|
3
|
+
exports.isGeneratorFunction = exports.isAsyncGeneratorFunction = exports.patchConfigurable = exports.gatherIteratorSync = exports.gatherIterator = exports.prefixGenerator = exports.RunnableCallable = void 0;
|
|
4
4
|
const runnables_1 = require("@langchain/core/runnables");
|
|
5
5
|
const singletons_1 = require("@langchain/core/singletons");
|
|
6
6
|
const config_js_1 = require("./pregel/utils/config.cjs");
|
|
@@ -141,3 +141,17 @@ patch) {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
exports.patchConfigurable = patchConfigurable;
|
|
144
|
+
function isAsyncGeneratorFunction(val) {
|
|
145
|
+
return (val != null &&
|
|
146
|
+
typeof val === "function" &&
|
|
147
|
+
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
148
|
+
val instanceof Object.getPrototypeOf(async function* () { }).constructor);
|
|
149
|
+
}
|
|
150
|
+
exports.isAsyncGeneratorFunction = isAsyncGeneratorFunction;
|
|
151
|
+
function isGeneratorFunction(val) {
|
|
152
|
+
return (val != null &&
|
|
153
|
+
typeof val === "function" &&
|
|
154
|
+
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
155
|
+
val instanceof Object.getPrototypeOf(function* () { }).constructor);
|
|
156
|
+
}
|
|
157
|
+
exports.isGeneratorFunction = isGeneratorFunction;
|
package/dist/utils.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class RunnableCallable<I = unknown, O = unknown> extends Runnable
|
|
|
16
16
|
recurse: boolean;
|
|
17
17
|
constructor(fields: RunnableCallableArgs);
|
|
18
18
|
protected _tracedInvoke(input: I, config?: Partial<RunnableConfig>, runManager?: CallbackManagerForChainRun): Promise<O>;
|
|
19
|
-
invoke(input:
|
|
19
|
+
invoke(input: I, options?: Partial<RunnableConfig> | undefined): Promise<O>;
|
|
20
20
|
}
|
|
21
21
|
export declare function prefixGenerator<T, Prefix extends string>(generator: Generator<T>, prefix: Prefix): Generator<[Prefix, T]>;
|
|
22
22
|
export declare function prefixGenerator<T>(generator: Generator<T>, prefix?: undefined): Generator<T>;
|
|
@@ -24,3 +24,5 @@ export declare function prefixGenerator<T, Prefix extends string | undefined = u
|
|
|
24
24
|
export declare function gatherIterator<T>(i: AsyncIterable<T> | Promise<AsyncIterable<T>> | Iterable<T> | Promise<Iterable<T>>): Promise<Array<T>>;
|
|
25
25
|
export declare function gatherIteratorSync<T>(i: Iterable<T>): Array<T>;
|
|
26
26
|
export declare function patchConfigurable(config: RunnableConfig | undefined, patch: Record<string, any>): RunnableConfig;
|
|
27
|
+
export declare function isAsyncGeneratorFunction(val: unknown): val is AsyncGeneratorFunction;
|
|
28
|
+
export declare function isGeneratorFunction(val: unknown): val is GeneratorFunction;
|
package/dist/utils.js
CHANGED
|
@@ -133,3 +133,15 @@ patch) {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
+
export function isAsyncGeneratorFunction(val) {
|
|
137
|
+
return (val != null &&
|
|
138
|
+
typeof val === "function" &&
|
|
139
|
+
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
140
|
+
val instanceof Object.getPrototypeOf(async function* () { }).constructor);
|
|
141
|
+
}
|
|
142
|
+
export function isGeneratorFunction(val) {
|
|
143
|
+
return (val != null &&
|
|
144
|
+
typeof val === "function" &&
|
|
145
|
+
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
146
|
+
val instanceof Object.getPrototypeOf(function* () { }).constructor);
|
|
147
|
+
}
|
package/dist/web.cjs
CHANGED
|
@@ -14,15 +14,14 @@ 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.MessagesAnnotation = exports.InMemoryStore = exports.AsyncBatchedStore = exports.BaseStore = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.
|
|
17
|
+
exports.MessagesAnnotation = exports.task = exports.entrypoint = exports.InMemoryStore = exports.AsyncBatchedStore = exports.BaseStore = exports.BaseCheckpointSaver = exports.emptyCheckpoint = exports.copyCheckpoint = exports.MemorySaver = exports.END = exports.START = exports.isCommand = exports.Command = exports.Send = exports.BinaryOperatorAggregate = exports.BaseChannel = exports.Annotation = exports.addMessages = exports.messagesStateReducer = exports.MessageGraph = exports.CompiledStateGraph = exports.StateGraph = exports.Graph = void 0;
|
|
18
18
|
var index_js_1 = require("./graph/index.cjs");
|
|
19
|
-
Object.defineProperty(exports, "END", { enumerable: true, get: function () { return index_js_1.END; } });
|
|
20
19
|
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return index_js_1.Graph; } });
|
|
21
|
-
Object.defineProperty(exports, "START", { enumerable: true, get: function () { return index_js_1.START; } });
|
|
22
20
|
Object.defineProperty(exports, "StateGraph", { enumerable: true, get: function () { return index_js_1.StateGraph; } });
|
|
23
21
|
Object.defineProperty(exports, "CompiledStateGraph", { enumerable: true, get: function () { return index_js_1.CompiledStateGraph; } });
|
|
24
22
|
Object.defineProperty(exports, "MessageGraph", { enumerable: true, get: function () { return index_js_1.MessageGraph; } });
|
|
25
23
|
Object.defineProperty(exports, "messagesStateReducer", { enumerable: true, get: function () { return index_js_1.messagesStateReducer; } });
|
|
24
|
+
Object.defineProperty(exports, "addMessages", { enumerable: true, get: function () { return index_js_1.messagesStateReducer; } });
|
|
26
25
|
Object.defineProperty(exports, "Annotation", { enumerable: true, get: function () { return index_js_1.Annotation; } });
|
|
27
26
|
__exportStar(require("./errors.cjs"), exports);
|
|
28
27
|
var index_js_2 = require("./channels/index.cjs");
|
|
@@ -32,8 +31,8 @@ var constants_js_1 = require("./constants.cjs");
|
|
|
32
31
|
Object.defineProperty(exports, "Send", { enumerable: true, get: function () { return constants_js_1.Send; } });
|
|
33
32
|
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return constants_js_1.Command; } });
|
|
34
33
|
Object.defineProperty(exports, "isCommand", { enumerable: true, get: function () { return constants_js_1.isCommand; } });
|
|
35
|
-
|
|
36
|
-
Object.defineProperty(exports, "
|
|
34
|
+
Object.defineProperty(exports, "START", { enumerable: true, get: function () { return constants_js_1.START; } });
|
|
35
|
+
Object.defineProperty(exports, "END", { enumerable: true, get: function () { return constants_js_1.END; } });
|
|
37
36
|
var langgraph_checkpoint_1 = require("@langchain/langgraph-checkpoint");
|
|
38
37
|
Object.defineProperty(exports, "MemorySaver", { enumerable: true, get: function () { return langgraph_checkpoint_1.MemorySaver; } });
|
|
39
38
|
Object.defineProperty(exports, "copyCheckpoint", { enumerable: true, get: function () { return langgraph_checkpoint_1.copyCheckpoint; } });
|
|
@@ -43,5 +42,8 @@ Object.defineProperty(exports, "BaseStore", { enumerable: true, get: function ()
|
|
|
43
42
|
Object.defineProperty(exports, "AsyncBatchedStore", { enumerable: true, get: function () { return langgraph_checkpoint_1.AsyncBatchedStore; } });
|
|
44
43
|
Object.defineProperty(exports, "InMemoryStore", { enumerable: true, get: function () { return langgraph_checkpoint_1.InMemoryStore; } });
|
|
45
44
|
__exportStar(require("./managed/index.cjs"), exports);
|
|
45
|
+
var index_js_3 = require("./func/index.cjs");
|
|
46
|
+
Object.defineProperty(exports, "entrypoint", { enumerable: true, get: function () { return index_js_3.entrypoint; } });
|
|
47
|
+
Object.defineProperty(exports, "task", { enumerable: true, get: function () { return index_js_3.task; } });
|
|
46
48
|
var messages_annotation_js_1 = require("./graph/messages_annotation.cjs");
|
|
47
49
|
Object.defineProperty(exports, "MessagesAnnotation", { enumerable: true, get: function () { return messages_annotation_js_1.MessagesAnnotation; } });
|
package/dist/web.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { StateSnapshot } from "./pregel/types.js";
|
|
1
|
+
export { Graph, type StateGraphArgs, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, type Messages, Annotation, type StateType, type UpdateType, type NodeType, type StateDefinition, type SingleReducer, type CompiledGraph, } from "./graph/index.js";
|
|
2
|
+
export type { StateSnapshot, StreamMode, PregelParams, PregelOptions, } from "./pregel/types.js";
|
|
3
3
|
export * from "./errors.js";
|
|
4
4
|
export { BaseChannel, type BinaryOperator, BinaryOperatorAggregate, type AnyValue, type WaitForNames, type DynamicBarrierValue, type LastValue, type NamedBarrierValue, type Topic, } from "./channels/index.js";
|
|
5
5
|
export { type AnnotationRoot as _INTERNAL_ANNOTATION_ROOT } from "./graph/index.js";
|
|
6
6
|
export { type RetryPolicy } from "./pregel/utils/index.js";
|
|
7
|
-
export { Send, Command, type CommandParams, isCommand, type Interrupt, } from "./constants.js";
|
|
8
|
-
export { interrupt } from "./interrupt.js";
|
|
7
|
+
export { Send, Command, type CommandParams, isCommand, START, END, type Interrupt, } from "./constants.js";
|
|
9
8
|
export { MemorySaver, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, type Item, type GetOperation, type SearchOperation, type PutOperation, type Operation, type OperationResults, BaseStore, AsyncBatchedStore, InMemoryStore, type NameSpacePath, type NamespaceMatchType, type MatchCondition, type ListNamespacesOperation, } from "@langchain/langgraph-checkpoint";
|
|
10
9
|
export * from "./managed/index.js";
|
|
10
|
+
export { entrypoint, type EntrypointOptions, task, type TaskOptions, } from "./func/index.js";
|
|
11
11
|
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
|
12
12
|
export { type LangGraphRunnableConfig } from "./pregel/runnable_types.js";
|
package/dist/web.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Graph, StateGraph, CompiledStateGraph, MessageGraph, messagesStateReducer, messagesStateReducer as addMessages, Annotation, } from "./graph/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
3
|
export { BaseChannel, BinaryOperatorAggregate, } from "./channels/index.js";
|
|
4
|
-
export { Send, Command, isCommand, } from "./constants.js";
|
|
5
|
-
export { interrupt } from "./interrupt.js";
|
|
4
|
+
export { Send, Command, isCommand, START, END, } from "./constants.js";
|
|
6
5
|
export { MemorySaver, copyCheckpoint, emptyCheckpoint, BaseCheckpointSaver, BaseStore, AsyncBatchedStore, InMemoryStore, } from "@langchain/langgraph-checkpoint";
|
|
7
6
|
export * from "./managed/index.js";
|
|
7
|
+
export { entrypoint, task, } from "./func/index.js";
|
|
8
8
|
export { MessagesAnnotation } from "./graph/messages_annotation.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.42",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "LangChain",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@langchain/langgraph-checkpoint": "~0.0.
|
|
34
|
+
"@langchain/langgraph-checkpoint": "~0.0.14",
|
|
35
35
|
"@langchain/langgraph-sdk": "~0.0.32",
|
|
36
36
|
"uuid": "^10.0.0",
|
|
37
37
|
"zod": "^3.23.8"
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "^29.5.0",
|
|
44
|
-
"@langchain/anthropic": "^0.3.
|
|
45
|
-
"@langchain/community": "^0.3.
|
|
46
|
-
"@langchain/core": "^0.3.
|
|
44
|
+
"@langchain/anthropic": "^0.3.12",
|
|
45
|
+
"@langchain/community": "^0.3.27",
|
|
46
|
+
"@langchain/core": "^0.3.36",
|
|
47
47
|
"@langchain/langgraph-checkpoint-postgres": "workspace:*",
|
|
48
48
|
"@langchain/langgraph-checkpoint-sqlite": "workspace:*",
|
|
49
|
-
"@langchain/openai": "^0.
|
|
49
|
+
"@langchain/openai": "^0.4.0",
|
|
50
50
|
"@langchain/scripts": ">=0.1.3 <0.2.0",
|
|
51
51
|
"@swc/core": "^1.3.90",
|
|
52
52
|
"@swc/jest": "^0.2.29",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"eslint-plugin-prettier": "^4.2.1",
|
|
69
69
|
"jest": "^29.5.0",
|
|
70
70
|
"jest-environment-node": "^29.6.4",
|
|
71
|
-
"langchain": "^0.3.
|
|
71
|
+
"langchain": "^0.3.13",
|
|
72
72
|
"pg": "^8.13.0",
|
|
73
73
|
"prettier": "^2.8.3",
|
|
74
74
|
"release-it": "^17.6.0",
|
|
75
|
-
"rollup": "^4.29.
|
|
75
|
+
"rollup": "^4.29.2",
|
|
76
76
|
"ts-jest": "^29.1.0",
|
|
77
77
|
"tsx": "^4.7.0",
|
|
78
78
|
"typescript": "^4.9.5 || ^5.4.5",
|