@langchain/langgraph 0.4.8 → 1.0.0-alpha.0
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/CHANGELOG.md +7 -2
- package/README.md +1 -2
- package/dist/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/channels/any_value.d.cts +26 -0
- package/dist/channels/any_value.d.cts.map +1 -0
- package/dist/channels/any_value.d.ts +16 -9
- package/dist/channels/any_value.d.ts.map +1 -0
- package/dist/channels/base.cjs +97 -133
- package/dist/channels/base.cjs.map +1 -0
- package/dist/channels/base.d.cts +73 -0
- package/dist/channels/base.d.cts.map +1 -0
- package/dist/channels/base.d.ts +73 -74
- package/dist/channels/base.d.ts.map +1 -0
- package/dist/channels/base.js +94 -127
- package/dist/channels/base.js.map +1 -1
- package/dist/channels/binop.cjs +47 -77
- package/dist/channels/binop.cjs.map +1 -0
- package/dist/channels/binop.d.cts +22 -0
- package/dist/channels/binop.d.cts.map +1 -0
- package/dist/channels/binop.d.ts +17 -12
- package/dist/channels/binop.d.ts.map +1 -0
- package/dist/channels/binop.js +45 -71
- package/dist/channels/binop.js.map +1 -1
- package/dist/channels/dynamic_barrier_value.d.cts +43 -0
- package/dist/channels/dynamic_barrier_value.d.cts.map +1 -0
- package/dist/channels/dynamic_barrier_value.d.ts +20 -34
- package/dist/channels/dynamic_barrier_value.d.ts.map +1 -0
- package/dist/channels/ephemeral_value.cjs +46 -70
- package/dist/channels/ephemeral_value.cjs.map +1 -0
- package/dist/channels/ephemeral_value.d.cts +23 -0
- package/dist/channels/ephemeral_value.d.cts.map +1 -0
- package/dist/channels/ephemeral_value.d.ts +18 -11
- package/dist/channels/ephemeral_value.d.ts.map +1 -0
- package/dist/channels/ephemeral_value.js +45 -65
- package/dist/channels/ephemeral_value.js.map +1 -1
- package/dist/channels/index.cjs +2 -10
- package/dist/channels/index.js +4 -3
- package/dist/channels/last_value.cjs +91 -140
- package/dist/channels/last_value.cjs.map +1 -0
- package/dist/channels/last_value.d.cts +30 -0
- package/dist/channels/last_value.d.cts.map +1 -0
- package/dist/channels/last_value.d.ts +15 -23
- package/dist/channels/last_value.d.ts.map +1 -0
- package/dist/channels/last_value.js +88 -133
- package/dist/channels/last_value.js.map +1 -1
- package/dist/channels/named_barrier_value.cjs +114 -170
- package/dist/channels/named_barrier_value.cjs.map +1 -0
- package/dist/channels/named_barrier_value.d.cts +33 -0
- package/dist/channels/named_barrier_value.d.cts.map +1 -0
- package/dist/channels/named_barrier_value.d.ts +19 -29
- package/dist/channels/named_barrier_value.d.ts.map +1 -0
- package/dist/channels/named_barrier_value.js +112 -163
- package/dist/channels/named_barrier_value.js.map +1 -1
- package/dist/channels/topic.cjs +63 -96
- package/dist/channels/topic.cjs.map +1 -0
- package/dist/channels/topic.d.cts +26 -0
- package/dist/channels/topic.d.cts.map +1 -0
- package/dist/channels/topic.d.ts +21 -18
- package/dist/channels/topic.d.ts.map +1 -0
- package/dist/channels/topic.js +61 -90
- package/dist/channels/topic.js.map +1 -1
- package/dist/constants.cjs +373 -452
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.d.cts +284 -0
- package/dist/constants.d.cts.map +1 -0
- package/dist/constants.d.ts +112 -148
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +333 -444
- package/dist/constants.js.map +1 -1
- package/dist/errors.cjs +150 -179
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.cts +80 -0
- package/dist/errors.d.cts.map +1 -0
- package/dist/errors.d.ts +55 -46
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +139 -165
- package/dist/errors.js.map +1 -1
- package/dist/func/index.cjs +289 -290
- package/dist/func/index.cjs.map +1 -0
- package/dist/func/index.d.cts +289 -0
- package/dist/func/index.d.cts.map +1 -0
- package/dist/func/index.d.ts +81 -71
- package/dist/func/index.d.ts.map +1 -0
- package/dist/func/index.js +285 -284
- package/dist/func/index.js.map +1 -1
- package/dist/func/types.d.cts +64 -0
- package/dist/func/types.d.cts.map +1 -0
- package/dist/func/types.d.ts +24 -19
- package/dist/func/types.d.ts.map +1 -0
- package/dist/graph/annotation.cjs +96 -120
- package/dist/graph/annotation.cjs.map +1 -0
- package/dist/graph/annotation.d.cts +116 -0
- package/dist/graph/annotation.d.cts.map +1 -0
- package/dist/graph/annotation.d.ts +33 -34
- package/dist/graph/annotation.d.ts.map +1 -0
- package/dist/graph/annotation.js +91 -112
- package/dist/graph/annotation.js.map +1 -1
- package/dist/graph/graph.cjs +419 -723
- package/dist/graph/graph.cjs.map +1 -0
- package/dist/graph/graph.d.cts +131 -0
- package/dist/graph/graph.d.cts.map +1 -0
- package/dist/graph/graph.d.ts +122 -91
- package/dist/graph/graph.d.ts.map +1 -0
- package/dist/graph/graph.js +412 -713
- package/dist/graph/graph.js.map +1 -1
- package/dist/graph/index.cjs +4 -17
- package/dist/graph/index.js +6 -5
- package/dist/graph/message.cjs +59 -104
- package/dist/graph/message.cjs.map +1 -0
- package/dist/graph/message.d.cts +19 -0
- package/dist/graph/message.d.cts.map +1 -0
- package/dist/graph/message.d.ts +11 -10
- package/dist/graph/message.d.ts.map +1 -0
- package/dist/graph/message.js +56 -98
- package/dist/graph/message.js.map +1 -1
- package/dist/graph/messages_annotation.cjs +106 -106
- package/dist/graph/messages_annotation.cjs.map +1 -0
- package/dist/graph/messages_annotation.d.cts +111 -0
- package/dist/graph/messages_annotation.d.cts.map +1 -0
- package/dist/graph/messages_annotation.d.ts +18 -9
- package/dist/graph/messages_annotation.d.ts.map +1 -0
- package/dist/graph/messages_annotation.js +100 -100
- package/dist/graph/messages_annotation.js.map +1 -1
- package/dist/graph/state.cjs +476 -777
- package/dist/graph/state.cjs.map +1 -0
- package/dist/graph/state.d.cts +216 -0
- package/dist/graph/state.d.cts.map +1 -0
- package/dist/graph/state.d.ts +129 -134
- package/dist/graph/state.d.ts.map +1 -0
- package/dist/graph/state.js +470 -768
- package/dist/graph/state.js.map +1 -1
- package/dist/graph/zod/index.cjs +10 -21
- package/dist/graph/zod/index.d.cts +3 -0
- package/dist/graph/zod/index.d.ts +3 -3
- package/dist/graph/zod/index.js +4 -4
- package/dist/graph/zod/meta.cjs +142 -177
- package/dist/graph/zod/meta.cjs.map +1 -0
- package/dist/graph/zod/meta.d.cts +116 -0
- package/dist/graph/zod/meta.d.cts.map +1 -0
- package/dist/graph/zod/meta.d.ts +99 -97
- package/dist/graph/zod/meta.d.ts.map +1 -0
- package/dist/graph/zod/meta.js +136 -170
- package/dist/graph/zod/meta.js.map +1 -1
- package/dist/graph/zod/plugin.cjs +36 -39
- package/dist/graph/zod/plugin.cjs.map +1 -0
- package/dist/graph/zod/plugin.js +34 -35
- package/dist/graph/zod/plugin.js.map +1 -1
- package/dist/graph/zod/schema.cjs +82 -110
- package/dist/graph/zod/schema.cjs.map +1 -0
- package/dist/graph/zod/schema.d.cts +38 -0
- package/dist/graph/zod/schema.d.cts.map +1 -0
- package/dist/graph/zod/schema.d.ts +12 -6
- package/dist/graph/zod/schema.d.ts.map +1 -0
- package/dist/graph/zod/schema.js +77 -103
- package/dist/graph/zod/schema.js.map +1 -1
- package/dist/graph/zod/zod-registry.cjs +41 -47
- package/dist/graph/zod/zod-registry.cjs.map +1 -0
- package/dist/graph/zod/zod-registry.d.cts +51 -0
- package/dist/graph/zod/zod-registry.d.cts.map +1 -0
- package/dist/graph/zod/zod-registry.d.ts +34 -26
- package/dist/graph/zod/zod-registry.d.ts.map +1 -0
- package/dist/graph/zod/zod-registry.js +37 -41
- package/dist/graph/zod/zod-registry.js.map +1 -1
- package/dist/hash.cjs +205 -267
- package/dist/hash.cjs.map +1 -0
- package/dist/hash.js +205 -265
- package/dist/hash.js.map +1 -1
- package/dist/index.cjs +110 -33
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -5
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/interrupt.cjs +79 -85
- package/dist/interrupt.cjs.map +1 -0
- package/dist/interrupt.d.cts +49 -0
- package/dist/interrupt.d.cts.map +1 -0
- package/dist/interrupt.d.ts +6 -1
- package/dist/interrupt.d.ts.map +1 -0
- package/dist/interrupt.js +76 -80
- package/dist/interrupt.js.map +1 -1
- package/dist/prebuilt/agentName.cjs +139 -172
- package/dist/prebuilt/agentName.cjs.map +1 -0
- package/dist/prebuilt/agentName.d.cts +42 -0
- package/dist/prebuilt/agentName.d.cts.map +1 -0
- package/dist/prebuilt/agentName.d.ts +13 -21
- package/dist/prebuilt/agentName.d.ts.map +1 -0
- package/dist/prebuilt/agentName.js +139 -168
- package/dist/prebuilt/agentName.js.map +1 -1
- package/dist/prebuilt/agent_executor.cjs +42 -80
- package/dist/prebuilt/agent_executor.cjs.map +1 -0
- package/dist/prebuilt/agent_executor.d.cts +57 -0
- package/dist/prebuilt/agent_executor.d.cts.map +1 -0
- package/dist/prebuilt/agent_executor.d.ts +46 -37
- package/dist/prebuilt/agent_executor.d.ts.map +1 -0
- package/dist/prebuilt/agent_executor.js +40 -75
- package/dist/prebuilt/agent_executor.js.map +1 -1
- package/dist/prebuilt/chat_agent_executor.cjs +66 -128
- package/dist/prebuilt/chat_agent_executor.cjs.map +1 -0
- package/dist/prebuilt/chat_agent_executor.d.cts +23 -0
- package/dist/prebuilt/chat_agent_executor.d.cts.map +1 -0
- package/dist/prebuilt/chat_agent_executor.d.ts +18 -10
- package/dist/prebuilt/chat_agent_executor.d.ts.map +1 -0
- package/dist/prebuilt/chat_agent_executor.js +63 -123
- package/dist/prebuilt/chat_agent_executor.js.map +1 -1
- package/dist/prebuilt/index.cjs +15 -18
- package/dist/prebuilt/index.d.cts +8 -0
- package/dist/prebuilt/index.d.ts +8 -8
- package/dist/prebuilt/index.js +8 -7
- package/dist/prebuilt/interrupt.d.cts +73 -0
- package/dist/prebuilt/interrupt.d.cts.map +1 -0
- package/dist/prebuilt/interrupt.d.ts +32 -15
- package/dist/prebuilt/interrupt.d.ts.map +1 -0
- package/dist/prebuilt/react_agent_executor.cjs +317 -473
- package/dist/prebuilt/react_agent_executor.cjs.map +1 -0
- package/dist/prebuilt/react_agent_executor.d.cts +229 -0
- package/dist/prebuilt/react_agent_executor.d.cts.map +1 -0
- package/dist/prebuilt/react_agent_executor.d.ts +171 -143
- package/dist/prebuilt/react_agent_executor.d.ts.map +1 -0
- package/dist/prebuilt/react_agent_executor.js +315 -465
- package/dist/prebuilt/react_agent_executor.js.map +1 -1
- package/dist/prebuilt/tool_executor.cjs +45 -67
- package/dist/prebuilt/tool_executor.cjs.map +1 -0
- package/dist/prebuilt/tool_executor.d.cts +42 -0
- package/dist/prebuilt/tool_executor.d.cts.map +1 -0
- package/dist/prebuilt/tool_executor.d.ts +30 -24
- package/dist/prebuilt/tool_executor.d.ts.map +1 -0
- package/dist/prebuilt/tool_executor.js +44 -63
- package/dist/prebuilt/tool_executor.js.map +1 -1
- package/dist/prebuilt/tool_node.cjs +213 -275
- package/dist/prebuilt/tool_node.cjs.map +1 -0
- package/dist/prebuilt/tool_node.d.cts +151 -0
- package/dist/prebuilt/tool_node.d.cts.map +1 -0
- package/dist/prebuilt/tool_node.d.ts +30 -17
- package/dist/prebuilt/tool_node.d.ts.map +1 -0
- package/dist/prebuilt/tool_node.js +209 -268
- package/dist/prebuilt/tool_node.js.map +1 -1
- package/dist/pregel/algo.cjs +521 -692
- package/dist/pregel/algo.cjs.map +1 -0
- package/dist/pregel/algo.d.cts +13 -0
- package/dist/pregel/algo.d.cts.map +1 -0
- package/dist/pregel/algo.d.ts +8 -38
- package/dist/pregel/algo.d.ts.map +1 -0
- package/dist/pregel/algo.js +516 -683
- package/dist/pregel/algo.js.map +1 -1
- package/dist/pregel/call.cjs +46 -42
- package/dist/pregel/call.cjs.map +1 -0
- package/dist/pregel/call.js +43 -37
- package/dist/pregel/call.js.map +1 -1
- package/dist/pregel/debug.cjs +153 -223
- package/dist/pregel/debug.cjs.map +1 -0
- package/dist/pregel/debug.js +152 -215
- package/dist/pregel/debug.js.map +1 -1
- package/dist/pregel/index.cjs +1134 -1604
- package/dist/pregel/index.cjs.map +1 -0
- package/dist/pregel/index.d.cts +534 -0
- package/dist/pregel/index.d.cts.map +1 -0
- package/dist/pregel/index.d.ts +458 -422
- package/dist/pregel/index.d.ts.map +1 -0
- package/dist/pregel/index.js +1125 -1592
- package/dist/pregel/index.js.map +1 -1
- package/dist/pregel/io.cjs +127 -234
- package/dist/pregel/io.cjs.map +1 -0
- package/dist/pregel/io.js +122 -225
- package/dist/pregel/io.js.map +1 -1
- package/dist/pregel/loop.cjs +539 -954
- package/dist/pregel/loop.cjs.map +1 -0
- package/dist/pregel/loop.js +536 -948
- package/dist/pregel/loop.js.map +1 -1
- package/dist/pregel/messages.cjs +104 -196
- package/dist/pregel/messages.cjs.map +1 -0
- package/dist/pregel/messages.js +102 -191
- package/dist/pregel/messages.js.map +1 -1
- package/dist/pregel/read.cjs +150 -280
- package/dist/pregel/read.cjs.map +1 -0
- package/dist/pregel/read.d.cts +51 -0
- package/dist/pregel/read.d.cts.map +1 -0
- package/dist/pregel/read.d.ts +48 -46
- package/dist/pregel/read.d.ts.map +1 -0
- package/dist/pregel/read.js +147 -274
- package/dist/pregel/read.js.map +1 -1
- package/dist/pregel/remote.cjs +339 -458
- package/dist/pregel/remote.cjs.map +1 -0
- package/dist/pregel/remote.d.cts +121 -0
- package/dist/pregel/remote.d.cts.map +1 -0
- package/dist/pregel/remote.d.ts +79 -69
- package/dist/pregel/remote.d.ts.map +1 -0
- package/dist/pregel/remote.js +337 -453
- package/dist/pregel/remote.js.map +1 -1
- package/dist/pregel/retry.cjs +87 -138
- package/dist/pregel/retry.cjs.map +1 -0
- package/dist/pregel/retry.js +83 -130
- package/dist/pregel/retry.js.map +1 -1
- package/dist/pregel/runnable_types.d.cts +25 -0
- package/dist/pregel/runnable_types.d.cts.map +1 -0
- package/dist/pregel/runnable_types.d.ts +22 -16
- package/dist/pregel/runnable_types.d.ts.map +1 -0
- package/dist/pregel/runner.cjs +222 -315
- package/dist/pregel/runner.cjs.map +1 -0
- package/dist/pregel/runner.js +219 -308
- package/dist/pregel/runner.js.map +1 -1
- package/dist/pregel/stream.cjs +89 -130
- package/dist/pregel/stream.cjs.map +1 -0
- package/dist/pregel/stream.js +87 -125
- package/dist/pregel/stream.js.map +1 -1
- package/dist/pregel/types.cjs +25 -62
- package/dist/pregel/types.cjs.map +1 -0
- package/dist/pregel/types.d.cts +437 -0
- package/dist/pregel/types.d.cts.map +1 -0
- package/dist/pregel/types.d.ts +377 -431
- package/dist/pregel/types.d.ts.map +1 -0
- package/dist/pregel/types.js +23 -57
- package/dist/pregel/types.js.map +1 -1
- package/dist/pregel/utils/config.cjs +100 -147
- package/dist/pregel/utils/config.cjs.map +1 -0
- package/dist/pregel/utils/config.d.cts +36 -0
- package/dist/pregel/utils/config.d.cts.map +1 -0
- package/dist/pregel/utils/config.d.ts +12 -9
- package/dist/pregel/utils/config.d.ts.map +1 -0
- package/dist/pregel/utils/config.js +98 -143
- package/dist/pregel/utils/config.js.map +1 -1
- package/dist/pregel/utils/index.cjs +87 -125
- package/dist/pregel/utils/index.cjs.map +1 -0
- package/dist/pregel/utils/index.d.cts +51 -0
- package/dist/pregel/utils/index.d.cts.map +1 -0
- package/dist/pregel/utils/index.d.ts +45 -61
- package/dist/pregel/utils/index.d.ts.map +1 -0
- package/dist/pregel/utils/index.js +86 -120
- package/dist/pregel/utils/index.js.map +1 -1
- package/dist/pregel/utils/subgraph.cjs +15 -26
- package/dist/pregel/utils/subgraph.cjs.map +1 -0
- package/dist/pregel/utils/subgraph.js +12 -21
- package/dist/pregel/utils/subgraph.js.map +1 -1
- package/dist/pregel/validate.cjs +42 -92
- package/dist/pregel/validate.cjs.map +1 -0
- package/dist/pregel/validate.js +39 -84
- package/dist/pregel/validate.js.map +1 -1
- package/dist/pregel/write.cjs +87 -137
- package/dist/pregel/write.cjs.map +1 -0
- package/dist/pregel/write.d.cts +35 -0
- package/dist/pregel/write.d.cts.map +1 -0
- package/dist/pregel/write.d.ts +27 -23
- package/dist/pregel/write.d.ts.map +1 -0
- package/dist/pregel/write.js +83 -131
- package/dist/pregel/write.js.map +1 -1
- package/dist/remote.cjs +3 -6
- package/dist/remote.d.cts +2 -0
- package/dist/remote.d.ts +2 -1
- package/dist/remote.js +3 -2
- package/dist/setup/async_local_storage.cjs +10 -7
- package/dist/setup/async_local_storage.cjs.map +1 -0
- package/dist/setup/async_local_storage.js +7 -2
- package/dist/setup/async_local_storage.js.map +1 -1
- package/dist/ui/index.cjs +4 -0
- package/dist/ui/index.d.cts +5 -0
- package/dist/ui/index.d.ts +5 -0
- package/dist/ui/index.js +3 -0
- package/dist/ui/stream.cjs +145 -0
- package/dist/ui/stream.cjs.map +1 -0
- package/dist/ui/stream.d.cts +25 -0
- package/dist/ui/stream.d.cts.map +1 -0
- package/dist/ui/stream.d.ts +25 -0
- package/dist/ui/stream.d.ts.map +1 -0
- package/dist/ui/stream.js +143 -0
- package/dist/ui/stream.js.map +1 -0
- package/dist/ui/types.infer.d.cts +53 -0
- package/dist/ui/types.infer.d.cts.map +1 -0
- package/dist/ui/types.infer.d.ts +53 -0
- package/dist/ui/types.infer.d.ts.map +1 -0
- package/dist/ui/types.message.d.cts +95 -0
- package/dist/ui/types.message.d.cts.map +1 -0
- package/dist/ui/types.message.d.ts +95 -0
- package/dist/ui/types.message.d.ts.map +1 -0
- package/dist/ui/types.schema.d.cts +228 -0
- package/dist/ui/types.schema.d.cts.map +1 -0
- package/dist/ui/types.schema.d.ts +228 -0
- package/dist/ui/types.schema.d.ts.map +1 -0
- package/dist/utils.cjs +77 -147
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +32 -0
- package/dist/utils.d.cts.map +1 -0
- package/dist/utils.d.ts +29 -25
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +73 -140
- package/dist/utils.js.map +1 -1
- package/dist/web.cjs +97 -55
- package/dist/web.d.cts +23 -0
- package/dist/web.d.ts +23 -14
- package/dist/web.js +15 -8
- package/package.json +83 -86
- package/dist/channels/any_value.cjs +0 -65
- package/dist/channels/any_value.js +0 -61
- package/dist/channels/any_value.js.map +0 -1
- package/dist/channels/dynamic_barrier_value.cjs +0 -212
- package/dist/channels/dynamic_barrier_value.js +0 -207
- package/dist/channels/dynamic_barrier_value.js.map +0 -1
- package/dist/channels/index.d.ts +0 -7
- package/dist/channels/index.js.map +0 -1
- package/dist/func/types.cjs +0 -15
- package/dist/func/types.js +0 -12
- package/dist/func/types.js.map +0 -1
- package/dist/graph/index.d.ts +0 -4
- package/dist/graph/index.js.map +0 -1
- package/dist/graph/message.test.cjs +0 -196
- package/dist/graph/message.test.d.ts +0 -1
- package/dist/graph/message.test.js +0 -194
- package/dist/graph/message.test.js.map +0 -1
- package/dist/graph/zod/index.js.map +0 -1
- package/dist/graph/zod/plugin.d.ts +0 -28
- package/dist/hash.d.ts +0 -2
- package/dist/prebuilt/index.js.map +0 -1
- package/dist/prebuilt/interrupt.cjs +0 -3
- package/dist/prebuilt/interrupt.js +0 -2
- package/dist/prebuilt/interrupt.js.map +0 -1
- package/dist/pregel/call.d.ts +0 -16
- package/dist/pregel/debug.d.ts +0 -41
- package/dist/pregel/debug.test.cjs +0 -258
- package/dist/pregel/debug.test.d.ts +0 -1
- package/dist/pregel/debug.test.js +0 -256
- package/dist/pregel/debug.test.js.map +0 -1
- package/dist/pregel/io.d.ts +0 -30
- package/dist/pregel/io.mapCommand.test.cjs +0 -150
- package/dist/pregel/io.mapCommand.test.d.ts +0 -1
- package/dist/pregel/io.mapCommand.test.js +0 -148
- package/dist/pregel/io.mapCommand.test.js.map +0 -1
- package/dist/pregel/loop.d.ts +0 -147
- package/dist/pregel/messages.d.ts +0 -30
- package/dist/pregel/messages.test.cjs +0 -369
- package/dist/pregel/messages.test.d.ts +0 -1
- package/dist/pregel/messages.test.js +0 -367
- package/dist/pregel/messages.test.js.map +0 -1
- package/dist/pregel/read.test.cjs +0 -194
- package/dist/pregel/read.test.d.ts +0 -1
- package/dist/pregel/read.test.js +0 -192
- package/dist/pregel/read.test.js.map +0 -1
- package/dist/pregel/retry.d.ts +0 -17
- package/dist/pregel/runnable_types.cjs +0 -3
- package/dist/pregel/runnable_types.js +0 -2
- package/dist/pregel/runnable_types.js.map +0 -1
- package/dist/pregel/runner.d.ts +0 -79
- package/dist/pregel/runner.test.cjs +0 -66
- package/dist/pregel/runner.test.d.ts +0 -1
- package/dist/pregel/runner.test.js +0 -64
- package/dist/pregel/runner.test.js.map +0 -1
- package/dist/pregel/stream.d.ts +0 -40
- package/dist/pregel/utils/config.test.cjs +0 -214
- package/dist/pregel/utils/config.test.d.ts +0 -1
- package/dist/pregel/utils/config.test.js +0 -212
- package/dist/pregel/utils/config.test.js.map +0 -1
- package/dist/pregel/utils/subgraph.d.ts +0 -4
- package/dist/pregel/utils/subgraph.test.cjs +0 -83
- package/dist/pregel/utils/subgraph.test.d.ts +0 -1
- package/dist/pregel/utils/subgraph.test.js +0 -81
- package/dist/pregel/utils/subgraph.test.js.map +0 -1
- package/dist/pregel/validate.d.ts +0 -16
- package/dist/pregel/validate.test.cjs +0 -220
- package/dist/pregel/validate.test.d.ts +0 -1
- package/dist/pregel/validate.test.js +0 -218
- package/dist/pregel/validate.test.js.map +0 -1
- package/dist/pregel/write.test.cjs +0 -181
- package/dist/pregel/write.test.d.ts +0 -1
- package/dist/pregel/write.test.js +0 -179
- package/dist/pregel/write.test.js.map +0 -1
- package/dist/remote.js.map +0 -1
- package/dist/setup/async_local_storage.d.ts +0 -1
- package/dist/web.js.map +0 -1
- package/index.cjs +0 -1
- package/index.d.cts +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/prebuilt.cjs +0 -1
- package/prebuilt.d.cts +0 -1
- package/prebuilt.d.ts +0 -1
- package/prebuilt.js +0 -1
- package/pregel.cjs +0 -1
- package/pregel.d.cts +0 -1
- package/pregel.d.ts +0 -1
- package/pregel.js +0 -1
- package/remote.cjs +0 -1
- package/remote.d.cts +0 -1
- package/remote.d.ts +0 -1
- package/remote.js +0 -1
- package/web.cjs +0 -1
- package/web.d.cts +0 -1
- package/web.d.ts +0 -1
- package/web.js +0 -1
- package/zod/schema.cjs +0 -1
- package/zod/schema.d.cts +0 -1
- package/zod/schema.d.ts +0 -1
- package/zod/schema.js +0 -1
- package/zod.cjs +0 -1
- package/zod.d.cts +0 -1
- package/zod.d.ts +0 -1
- package/zod.js +0 -1
package/dist/web.cjs
CHANGED
|
@@ -1,55 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Object.defineProperty(exports,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Object.defineProperty(exports,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Object.defineProperty(exports,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
1
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_errors = require('./errors.cjs');
|
|
3
|
+
const require_base = require('./channels/base.cjs');
|
|
4
|
+
const require_binop = require('./channels/binop.cjs');
|
|
5
|
+
const require_annotation = require('./graph/annotation.cjs');
|
|
6
|
+
const require_constants = require('./constants.cjs');
|
|
7
|
+
require('./channels/index.cjs');
|
|
8
|
+
const require_graph = require('./graph/graph.cjs');
|
|
9
|
+
const require_state = require('./graph/state.cjs');
|
|
10
|
+
const require_message = require('./graph/message.cjs');
|
|
11
|
+
require('./graph/index.cjs');
|
|
12
|
+
const require_index$2 = require('./func/index.cjs');
|
|
13
|
+
const require_messages_annotation = require('./graph/messages_annotation.cjs');
|
|
14
|
+
const __langchain_langgraph_checkpoint = require_rolldown_runtime.__toESM(require("@langchain/langgraph-checkpoint"));
|
|
15
|
+
|
|
16
|
+
exports.Annotation = require_annotation.Annotation;
|
|
17
|
+
Object.defineProperty(exports, 'AsyncBatchedStore', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return __langchain_langgraph_checkpoint.AsyncBatchedStore;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
exports.BaseChannel = require_base.BaseChannel;
|
|
24
|
+
Object.defineProperty(exports, 'BaseCheckpointSaver', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return __langchain_langgraph_checkpoint.BaseCheckpointSaver;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
exports.BaseLangGraphError = require_errors.BaseLangGraphError;
|
|
31
|
+
Object.defineProperty(exports, 'BaseStore', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return __langchain_langgraph_checkpoint.BaseStore;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.BinaryOperatorAggregate = require_binop.BinaryOperatorAggregate;
|
|
38
|
+
exports.Command = require_constants.Command;
|
|
39
|
+
exports.CompiledStateGraph = require_state.CompiledStateGraph;
|
|
40
|
+
exports.END = require_constants.END;
|
|
41
|
+
exports.EmptyChannelError = require_errors.EmptyChannelError;
|
|
42
|
+
exports.EmptyInputError = require_errors.EmptyInputError;
|
|
43
|
+
exports.Graph = require_graph.Graph;
|
|
44
|
+
exports.GraphBubbleUp = require_errors.GraphBubbleUp;
|
|
45
|
+
exports.GraphInterrupt = require_errors.GraphInterrupt;
|
|
46
|
+
exports.GraphRecursionError = require_errors.GraphRecursionError;
|
|
47
|
+
exports.GraphValueError = require_errors.GraphValueError;
|
|
48
|
+
exports.INTERRUPT = require_constants.INTERRUPT;
|
|
49
|
+
Object.defineProperty(exports, 'InMemoryStore', {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
get: function () {
|
|
52
|
+
return __langchain_langgraph_checkpoint.InMemoryStore;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
exports.InvalidUpdateError = require_errors.InvalidUpdateError;
|
|
56
|
+
Object.defineProperty(exports, 'MemorySaver', {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () {
|
|
59
|
+
return __langchain_langgraph_checkpoint.MemorySaver;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
exports.MessageGraph = require_message.MessageGraph;
|
|
63
|
+
exports.MessagesAnnotation = require_messages_annotation.MessagesAnnotation;
|
|
64
|
+
exports.MessagesZodMeta = require_messages_annotation.MessagesZodMeta;
|
|
65
|
+
exports.MessagesZodState = require_messages_annotation.MessagesZodState;
|
|
66
|
+
exports.MultipleSubgraphsError = require_errors.MultipleSubgraphsError;
|
|
67
|
+
exports.NodeInterrupt = require_errors.NodeInterrupt;
|
|
68
|
+
exports.ParentCommand = require_errors.ParentCommand;
|
|
69
|
+
exports.REMOVE_ALL_MESSAGES = require_message.REMOVE_ALL_MESSAGES;
|
|
70
|
+
exports.RemoteException = require_errors.RemoteException;
|
|
71
|
+
exports.START = require_constants.START;
|
|
72
|
+
exports.Send = require_constants.Send;
|
|
73
|
+
exports.StateGraph = require_state.StateGraph;
|
|
74
|
+
exports.UnreachableNodeError = require_errors.UnreachableNodeError;
|
|
75
|
+
exports.addMessages = require_message.messagesStateReducer;
|
|
76
|
+
Object.defineProperty(exports, 'copyCheckpoint', {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return __langchain_langgraph_checkpoint.copyCheckpoint;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, 'emptyCheckpoint', {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () {
|
|
85
|
+
return __langchain_langgraph_checkpoint.emptyCheckpoint;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
exports.entrypoint = require_index$2.entrypoint;
|
|
89
|
+
exports.getSubgraphsSeenSet = require_errors.getSubgraphsSeenSet;
|
|
90
|
+
exports.isCommand = require_constants.isCommand;
|
|
91
|
+
exports.isGraphBubbleUp = require_errors.isGraphBubbleUp;
|
|
92
|
+
exports.isGraphInterrupt = require_errors.isGraphInterrupt;
|
|
93
|
+
exports.isInterrupted = require_constants.isInterrupted;
|
|
94
|
+
exports.isParentCommand = require_errors.isParentCommand;
|
|
95
|
+
exports.messagesStateReducer = require_message.messagesStateReducer;
|
|
96
|
+
exports.task = require_index$2.task;
|
|
97
|
+
exports.typedNode = require_state.typedNode;
|
package/dist/web.d.cts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseChannel } from "./channels/base.cjs";
|
|
2
|
+
import { LangGraphRunnableConfig, Runtime } from "./pregel/runnable_types.cjs";
|
|
3
|
+
import { BinaryOperator, BinaryOperatorAggregate } from "./channels/binop.cjs";
|
|
4
|
+
import { LastValue } from "./channels/last_value.cjs";
|
|
5
|
+
import { Annotation, AnnotationRoot, NodeType, SingleReducer, StateDefinition, StateType, UpdateType } from "./graph/annotation.cjs";
|
|
6
|
+
import { RetryPolicy } from "./pregel/utils/index.cjs";
|
|
7
|
+
import { PregelNode } from "./pregel/read.cjs";
|
|
8
|
+
import { Command, CommandParams, END, INTERRUPT, Interrupt, START, Send, isCommand, isInterrupted } from "./constants.cjs";
|
|
9
|
+
import { GetStateOptions, MultipleChannelSubscriptionOptions, PregelOptions, PregelParams, SingleChannelSubscriptionOptions, StateSnapshot, StreamMode, StreamOutputMap } from "./pregel/types.cjs";
|
|
10
|
+
import { Pregel } from "./pregel/index.cjs";
|
|
11
|
+
import { CompiledGraph, Graph } from "./graph/graph.cjs";
|
|
12
|
+
import { CompiledStateGraph, StateGraph, StateGraphArgs, typedNode } from "./graph/state.cjs";
|
|
13
|
+
import { MessageGraph, Messages, REMOVE_ALL_MESSAGES, messagesStateReducer } from "./graph/message.cjs";
|
|
14
|
+
import { BaseLangGraphError, BaseLangGraphErrorFields, EmptyChannelError, EmptyInputError, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, InvalidUpdateError, MultipleSubgraphsError, NodeInterrupt, ParentCommand, RemoteException, UnreachableNodeError, getSubgraphsSeenSet, isGraphBubbleUp, isGraphInterrupt, isParentCommand } from "./errors.cjs";
|
|
15
|
+
import { AnyValue } from "./channels/any_value.cjs";
|
|
16
|
+
import { DynamicBarrierValue, WaitForNames } from "./channels/dynamic_barrier_value.cjs";
|
|
17
|
+
import { NamedBarrierValue } from "./channels/named_barrier_value.cjs";
|
|
18
|
+
import { Topic } from "./channels/topic.cjs";
|
|
19
|
+
import { EphemeralValue } from "./channels/ephemeral_value.cjs";
|
|
20
|
+
import { EntrypointOptions, TaskOptions, entrypoint, task } from "./func/index.cjs";
|
|
21
|
+
import { MessagesAnnotation, MessagesZodMeta, MessagesZodState } from "./graph/messages_annotation.cjs";
|
|
22
|
+
import { AsyncBatchedStore, BaseCheckpointSaver, BaseStore, Checkpoint, CheckpointMetadata, CheckpointTuple, GetOperation, InMemoryStore, Item, ListNamespacesOperation, MatchCondition, MemorySaver, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PutOperation, SearchOperation, copyCheckpoint, emptyCheckpoint } from "@langchain/langgraph-checkpoint";
|
|
23
|
+
export { Annotation, type AnnotationRoot, type AnyValue, AsyncBatchedStore, BaseChannel, BaseCheckpointSaver, BaseLangGraphError, BaseLangGraphErrorFields, BaseStore, type BinaryOperator, BinaryOperatorAggregate, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, Command, type CommandParams, type CompiledGraph, CompiledStateGraph, type DynamicBarrierValue, END, EmptyChannelError, EmptyInputError, type EntrypointOptions, type EphemeralValue, type GetOperation, type GetStateOptions, Graph, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, INTERRUPT, InMemoryStore, type Interrupt, InvalidUpdateError, type Item, type LangGraphRunnableConfig, type LastValue, type ListNamespacesOperation, type MatchCondition, MemorySaver, MessageGraph, type Messages, MessagesAnnotation, MessagesZodMeta, MessagesZodState, type MultipleChannelSubscriptionOptions, MultipleSubgraphsError, type NameSpacePath, type NamedBarrierValue, type NamespaceMatchType, NodeInterrupt, type NodeType, type Operation, type OperationResults, ParentCommand, type Pregel, type PregelNode, type PregelOptions, type PregelParams, type PutOperation, REMOVE_ALL_MESSAGES, RemoteException, type RetryPolicy, type Runtime, START, type SearchOperation, Send, type SingleChannelSubscriptionOptions, type SingleReducer, type StateDefinition, StateGraph, type StateGraphArgs, type StateSnapshot, type StateType, type StreamMode, type StreamOutputMap, type TaskOptions, type Topic, UnreachableNodeError, type UpdateType, type WaitForNames, messagesStateReducer as addMessages, copyCheckpoint, emptyCheckpoint, entrypoint, getSubgraphsSeenSet, isCommand, isGraphBubbleUp, isGraphInterrupt, isInterrupted, isParentCommand, messagesStateReducer, task, typedNode };
|
package/dist/web.d.ts
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { BaseChannel } from "./channels/base.js";
|
|
2
|
+
import { LangGraphRunnableConfig, Runtime } from "./pregel/runnable_types.js";
|
|
3
|
+
import { BinaryOperator, BinaryOperatorAggregate } from "./channels/binop.js";
|
|
4
|
+
import { LastValue } from "./channels/last_value.js";
|
|
5
|
+
import { Annotation, AnnotationRoot, NodeType, SingleReducer, StateDefinition, StateType, UpdateType } from "./graph/annotation.js";
|
|
6
|
+
import { RetryPolicy } from "./pregel/utils/index.js";
|
|
7
|
+
import { PregelNode } from "./pregel/read.js";
|
|
8
|
+
import { Command, CommandParams, END, INTERRUPT, Interrupt, START, Send, isCommand, isInterrupted } from "./constants.js";
|
|
9
|
+
import { GetStateOptions, MultipleChannelSubscriptionOptions, PregelOptions, PregelParams, SingleChannelSubscriptionOptions, StateSnapshot, StreamMode, StreamOutputMap } from "./pregel/types.js";
|
|
10
|
+
import { Pregel } from "./pregel/index.js";
|
|
11
|
+
import { CompiledGraph, Graph } from "./graph/graph.js";
|
|
12
|
+
import { CompiledStateGraph, StateGraph, StateGraphArgs, typedNode } from "./graph/state.js";
|
|
13
|
+
import { MessageGraph, Messages, REMOVE_ALL_MESSAGES, messagesStateReducer } from "./graph/message.js";
|
|
14
|
+
import { BaseLangGraphError, BaseLangGraphErrorFields, EmptyChannelError, EmptyInputError, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, InvalidUpdateError, MultipleSubgraphsError, NodeInterrupt, ParentCommand, RemoteException, UnreachableNodeError, getSubgraphsSeenSet, isGraphBubbleUp, isGraphInterrupt, isParentCommand } from "./errors.js";
|
|
15
|
+
import { AnyValue } from "./channels/any_value.js";
|
|
16
|
+
import { DynamicBarrierValue, WaitForNames } from "./channels/dynamic_barrier_value.js";
|
|
17
|
+
import { NamedBarrierValue } from "./channels/named_barrier_value.js";
|
|
18
|
+
import { Topic } from "./channels/topic.js";
|
|
19
|
+
import { EphemeralValue } from "./channels/ephemeral_value.js";
|
|
20
|
+
import { EntrypointOptions, TaskOptions, entrypoint, task } from "./func/index.js";
|
|
21
|
+
import { MessagesAnnotation, MessagesZodMeta, MessagesZodState } from "./graph/messages_annotation.js";
|
|
22
|
+
import { AsyncBatchedStore, BaseCheckpointSaver, BaseStore, Checkpoint, CheckpointMetadata, CheckpointTuple, GetOperation, InMemoryStore, Item, ListNamespacesOperation, MatchCondition, MemorySaver, NameSpacePath, NamespaceMatchType, Operation, OperationResults, PutOperation, SearchOperation, copyCheckpoint, emptyCheckpoint } from "@langchain/langgraph-checkpoint";
|
|
23
|
+
export { Annotation, type AnnotationRoot, type AnyValue, AsyncBatchedStore, BaseChannel, BaseCheckpointSaver, BaseLangGraphError, BaseLangGraphErrorFields, BaseStore, type BinaryOperator, BinaryOperatorAggregate, type Checkpoint, type CheckpointMetadata, type CheckpointTuple, Command, type CommandParams, type CompiledGraph, CompiledStateGraph, type DynamicBarrierValue, END, EmptyChannelError, EmptyInputError, type EntrypointOptions, type EphemeralValue, type GetOperation, type GetStateOptions, Graph, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, INTERRUPT, InMemoryStore, type Interrupt, InvalidUpdateError, type Item, type LangGraphRunnableConfig, type LastValue, type ListNamespacesOperation, type MatchCondition, MemorySaver, MessageGraph, type Messages, MessagesAnnotation, MessagesZodMeta, MessagesZodState, type MultipleChannelSubscriptionOptions, MultipleSubgraphsError, type NameSpacePath, type NamedBarrierValue, type NamespaceMatchType, NodeInterrupt, type NodeType, type Operation, type OperationResults, ParentCommand, type Pregel, type PregelNode, type PregelOptions, type PregelParams, type PutOperation, REMOVE_ALL_MESSAGES, RemoteException, type RetryPolicy, type Runtime, START, type SearchOperation, Send, type SingleChannelSubscriptionOptions, type SingleReducer, type StateDefinition, StateGraph, type StateGraphArgs, type StateSnapshot, type StateType, type StreamMode, type StreamOutputMap, type TaskOptions, type Topic, UnreachableNodeError, type UpdateType, type WaitForNames, messagesStateReducer as addMessages, copyCheckpoint, emptyCheckpoint, entrypoint, getSubgraphsSeenSet, isCommand, isGraphBubbleUp, isGraphInterrupt, isInterrupted, isParentCommand, messagesStateReducer, task, typedNode };
|
package/dist/web.js
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { BaseLangGraphError, EmptyChannelError, EmptyInputError, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, InvalidUpdateError, MultipleSubgraphsError, NodeInterrupt, ParentCommand, RemoteException, UnreachableNodeError, getSubgraphsSeenSet, isGraphBubbleUp, isGraphInterrupt, isParentCommand } from "./errors.js";
|
|
2
|
+
import { BaseChannel } from "./channels/base.js";
|
|
3
|
+
import { BinaryOperatorAggregate } from "./channels/binop.js";
|
|
4
|
+
import { Annotation } from "./graph/annotation.js";
|
|
5
|
+
import { Command, END, INTERRUPT, START, Send, isCommand, isInterrupted } from "./constants.js";
|
|
6
|
+
import "./channels/index.js";
|
|
7
|
+
import { Graph } from "./graph/graph.js";
|
|
8
|
+
import { CompiledStateGraph, StateGraph, typedNode } from "./graph/state.js";
|
|
9
|
+
import { MessageGraph, REMOVE_ALL_MESSAGES, messagesStateReducer } from "./graph/message.js";
|
|
10
|
+
import "./graph/index.js";
|
|
11
|
+
import { entrypoint, task } from "./func/index.js";
|
|
12
|
+
import { MessagesAnnotation, MessagesZodMeta, MessagesZodState } from "./graph/messages_annotation.js";
|
|
13
|
+
import { AsyncBatchedStore, BaseCheckpointSaver, BaseStore, InMemoryStore, MemorySaver, copyCheckpoint, emptyCheckpoint } from "@langchain/langgraph-checkpoint";
|
|
14
|
+
|
|
15
|
+
export { Annotation, AsyncBatchedStore, BaseChannel, BaseCheckpointSaver, BaseLangGraphError, BaseStore, BinaryOperatorAggregate, Command, CompiledStateGraph, END, EmptyChannelError, EmptyInputError, Graph, GraphBubbleUp, GraphInterrupt, GraphRecursionError, GraphValueError, INTERRUPT, InMemoryStore, InvalidUpdateError, MemorySaver, MessageGraph, MessagesAnnotation, MessagesZodMeta, MessagesZodState, MultipleSubgraphsError, NodeInterrupt, ParentCommand, REMOVE_ALL_MESSAGES, RemoteException, START, Send, StateGraph, UnreachableNodeError, messagesStateReducer as addMessages, copyCheckpoint, emptyCheckpoint, entrypoint, getSubgraphsSeenSet, isCommand, isGraphBubbleUp, isGraphInterrupt, isInterrupted, isParentCommand, messagesStateReducer, task, typedNode };
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18"
|
|
8
8
|
},
|
|
9
|
-
"main": "./index.js",
|
|
10
|
-
"types": "./index.d.ts",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git@github.com:langchain-ai/langgraphjs.git"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "yarn turbo:command build:internal --filter=@langchain/langgraph",
|
|
17
|
-
"build:internal": "yarn
|
|
17
|
+
"build:internal": "yarn workspace @langchain/build compile @langchain/langgraph",
|
|
18
18
|
"clean": "rm -rf dist/ dist-cjs/ .turbo/",
|
|
19
19
|
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
|
|
20
20
|
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
|
|
21
21
|
"lint": "yarn lint:eslint && yarn lint:dpdm",
|
|
22
22
|
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
|
|
23
|
-
"
|
|
23
|
+
"prepublish": "yarn build",
|
|
24
24
|
"test": "vitest run",
|
|
25
25
|
"test:browser": "vitest run --mode browser",
|
|
26
26
|
"test:watch": "vitest watch",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"author": "LangChain",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@langchain/langgraph-checkpoint": "^0.1.
|
|
36
|
-
"@langchain/langgraph-sdk": "~0.0.
|
|
37
|
-
"uuid": "^10.0.0"
|
|
38
|
-
"zod": "^3.25.32"
|
|
35
|
+
"@langchain/langgraph-checkpoint": "^0.1.0",
|
|
36
|
+
"@langchain/langgraph-sdk": "~0.0.111",
|
|
37
|
+
"uuid": "^10.0.0"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"@langchain/core": ">=0.3.58 < 0.4.0",
|
|
40
|
+
"@langchain/core": ">=0.3.58 < 0.4.0 || ^1.0.0-alpha",
|
|
41
|
+
"zod": "^3.25.32 || ^4.1.0",
|
|
42
42
|
"zod-to-json-schema": "^3.x"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@langchain/anthropic": "^0.3.12",
|
|
51
51
|
"@langchain/community": "^0.3.27",
|
|
52
|
-
"@langchain/core": "^0.
|
|
53
|
-
"@langchain/langgraph-checkpoint": "0.1.
|
|
54
|
-
"@langchain/langgraph-checkpoint-postgres": "0.1.
|
|
55
|
-
"@langchain/langgraph-checkpoint-sqlite": "0.2.
|
|
56
|
-
"@langchain/langgraph-sdk": "0.0.
|
|
52
|
+
"@langchain/core": "^1.0.0-alpha",
|
|
53
|
+
"@langchain/langgraph-checkpoint": "0.1.0",
|
|
54
|
+
"@langchain/langgraph-checkpoint-postgres": "0.1.1",
|
|
55
|
+
"@langchain/langgraph-checkpoint-sqlite": "0.2.0",
|
|
56
|
+
"@langchain/langgraph-sdk": "0.0.111",
|
|
57
57
|
"@langchain/openai": "^0.4.0",
|
|
58
58
|
"@langchain/scripts": ">=0.1.3 <0.2.0",
|
|
59
59
|
"@swc/core": "^1.3.90",
|
|
@@ -92,99 +92,96 @@
|
|
|
92
92
|
},
|
|
93
93
|
"exports": {
|
|
94
94
|
".": {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"default": "./index.d.ts"
|
|
95
|
+
"import": {
|
|
96
|
+
"types": "./dist/index.d.ts",
|
|
97
|
+
"default": "./dist/index.js"
|
|
99
98
|
},
|
|
100
|
-
"
|
|
101
|
-
|
|
99
|
+
"require": {
|
|
100
|
+
"types": "./dist/index.d.cts",
|
|
101
|
+
"default": "./dist/index.cjs"
|
|
102
|
+
},
|
|
103
|
+
"input": "./src/index.ts"
|
|
102
104
|
},
|
|
103
105
|
"./web": {
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
106
|
+
"import": {
|
|
107
|
+
"types": "./dist/web.d.ts",
|
|
108
|
+
"default": "./dist/web.js"
|
|
109
|
+
},
|
|
110
|
+
"require": {
|
|
111
|
+
"types": "./dist/web.d.cts",
|
|
112
|
+
"default": "./dist/web.cjs"
|
|
108
113
|
},
|
|
109
|
-
"
|
|
110
|
-
"require": "./web.cjs"
|
|
114
|
+
"input": "./src/web.ts"
|
|
111
115
|
},
|
|
112
116
|
"./pregel": {
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
+
"import": {
|
|
118
|
+
"types": "./dist/pregel/index.d.ts",
|
|
119
|
+
"default": "./dist/pregel/index.js"
|
|
120
|
+
},
|
|
121
|
+
"require": {
|
|
122
|
+
"types": "./dist/pregel/index.d.cts",
|
|
123
|
+
"default": "./dist/pregel/index.cjs"
|
|
117
124
|
},
|
|
118
|
-
"
|
|
119
|
-
"require": "./pregel.cjs"
|
|
125
|
+
"input": "./src/pregel/index.ts"
|
|
120
126
|
},
|
|
121
127
|
"./prebuilt": {
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"default": "./prebuilt.d.ts"
|
|
128
|
+
"import": {
|
|
129
|
+
"types": "./dist/prebuilt/index.d.ts",
|
|
130
|
+
"default": "./dist/prebuilt/index.js"
|
|
126
131
|
},
|
|
127
|
-
"
|
|
128
|
-
|
|
132
|
+
"require": {
|
|
133
|
+
"types": "./dist/prebuilt/index.d.cts",
|
|
134
|
+
"default": "./dist/prebuilt/index.cjs"
|
|
135
|
+
},
|
|
136
|
+
"input": "./src/prebuilt/index.ts"
|
|
129
137
|
},
|
|
130
138
|
"./remote": {
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
|
|
139
|
+
"import": {
|
|
140
|
+
"types": "./dist/remote.d.ts",
|
|
141
|
+
"default": "./dist/remote.js"
|
|
142
|
+
},
|
|
143
|
+
"require": {
|
|
144
|
+
"types": "./dist/remote.d.cts",
|
|
145
|
+
"default": "./dist/remote.cjs"
|
|
135
146
|
},
|
|
136
|
-
"
|
|
137
|
-
"require": "./remote.cjs"
|
|
147
|
+
"input": "./src/remote.ts"
|
|
138
148
|
},
|
|
139
149
|
"./zod": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"default": "./zod.d.ts"
|
|
150
|
+
"import": {
|
|
151
|
+
"types": "./dist/graph/zod/index.d.ts",
|
|
152
|
+
"default": "./dist/graph/zod/index.js"
|
|
144
153
|
},
|
|
145
|
-
"
|
|
146
|
-
|
|
154
|
+
"require": {
|
|
155
|
+
"types": "./dist/graph/zod/index.d.cts",
|
|
156
|
+
"default": "./dist/graph/zod/index.cjs"
|
|
157
|
+
},
|
|
158
|
+
"input": "./src/graph/zod/index.ts"
|
|
147
159
|
},
|
|
148
160
|
"./zod/schema": {
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
|
|
161
|
+
"import": {
|
|
162
|
+
"types": "./dist/graph/zod/schema.d.ts",
|
|
163
|
+
"default": "./dist/graph/zod/schema.js"
|
|
164
|
+
},
|
|
165
|
+
"require": {
|
|
166
|
+
"types": "./dist/graph/zod/schema.d.cts",
|
|
167
|
+
"default": "./dist/graph/zod/schema.cjs"
|
|
168
|
+
},
|
|
169
|
+
"input": "./src/graph/zod/schema.ts"
|
|
170
|
+
},
|
|
171
|
+
"./ui": {
|
|
172
|
+
"import": {
|
|
173
|
+
"types": "./dist/ui/index.d.ts",
|
|
174
|
+
"default": "./dist/ui/index.js"
|
|
175
|
+
},
|
|
176
|
+
"require": {
|
|
177
|
+
"types": "./dist/ui/index.d.cts",
|
|
178
|
+
"default": "./dist/ui/index.cjs"
|
|
153
179
|
},
|
|
154
|
-
"
|
|
155
|
-
"require": "./zod/schema.cjs"
|
|
180
|
+
"input": "./src/ui/index.ts"
|
|
156
181
|
},
|
|
157
182
|
"./package.json": "./package.json"
|
|
158
183
|
},
|
|
159
184
|
"files": [
|
|
160
|
-
"dist/"
|
|
161
|
-
"index.cjs",
|
|
162
|
-
"index.js",
|
|
163
|
-
"index.d.ts",
|
|
164
|
-
"index.d.cts",
|
|
165
|
-
"web.cjs",
|
|
166
|
-
"web.js",
|
|
167
|
-
"web.d.ts",
|
|
168
|
-
"web.d.cts",
|
|
169
|
-
"pregel.cjs",
|
|
170
|
-
"pregel.js",
|
|
171
|
-
"pregel.d.ts",
|
|
172
|
-
"pregel.d.cts",
|
|
173
|
-
"prebuilt.cjs",
|
|
174
|
-
"prebuilt.js",
|
|
175
|
-
"prebuilt.d.ts",
|
|
176
|
-
"prebuilt.d.cts",
|
|
177
|
-
"remote.cjs",
|
|
178
|
-
"remote.js",
|
|
179
|
-
"remote.d.ts",
|
|
180
|
-
"remote.d.cts",
|
|
181
|
-
"zod.cjs",
|
|
182
|
-
"zod.js",
|
|
183
|
-
"zod.d.ts",
|
|
184
|
-
"zod.d.cts",
|
|
185
|
-
"zod/schema.cjs",
|
|
186
|
-
"zod/schema.js",
|
|
187
|
-
"zod/schema.d.ts",
|
|
188
|
-
"zod/schema.d.cts"
|
|
185
|
+
"dist/"
|
|
189
186
|
]
|
|
190
187
|
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AnyValue = void 0;
|
|
4
|
-
const errors_js_1 = require("../errors.cjs");
|
|
5
|
-
const base_js_1 = require("./base.cjs");
|
|
6
|
-
/**
|
|
7
|
-
* Stores the last value received, assumes that if multiple values are received, they are all equal.
|
|
8
|
-
*
|
|
9
|
-
* Note: Unlike 'LastValue' if multiple nodes write to this channel in a single step, the values
|
|
10
|
-
* will be continuously overwritten.
|
|
11
|
-
*
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
class AnyValue extends base_js_1.BaseChannel {
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
Object.defineProperty(this, "lc_graph_name", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: "AnyValue"
|
|
22
|
-
});
|
|
23
|
-
// value is an array so we don't misinterpret an update to undefined as no write
|
|
24
|
-
Object.defineProperty(this, "value", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true,
|
|
27
|
-
writable: true,
|
|
28
|
-
value: []
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
fromCheckpoint(checkpoint) {
|
|
32
|
-
const empty = new AnyValue();
|
|
33
|
-
if (typeof checkpoint !== "undefined") {
|
|
34
|
-
empty.value = [checkpoint];
|
|
35
|
-
}
|
|
36
|
-
return empty;
|
|
37
|
-
}
|
|
38
|
-
update(values) {
|
|
39
|
-
if (values.length === 0) {
|
|
40
|
-
const updated = this.value.length > 0;
|
|
41
|
-
this.value = [];
|
|
42
|
-
return updated;
|
|
43
|
-
}
|
|
44
|
-
// eslint-disable-next-line prefer-destructuring
|
|
45
|
-
this.value = [values[values.length - 1]];
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
get() {
|
|
49
|
-
if (this.value.length === 0) {
|
|
50
|
-
throw new errors_js_1.EmptyChannelError();
|
|
51
|
-
}
|
|
52
|
-
return this.value[0];
|
|
53
|
-
}
|
|
54
|
-
checkpoint() {
|
|
55
|
-
if (this.value.length === 0) {
|
|
56
|
-
throw new errors_js_1.EmptyChannelError();
|
|
57
|
-
}
|
|
58
|
-
return this.value[0];
|
|
59
|
-
}
|
|
60
|
-
isAvailable() {
|
|
61
|
-
return this.value.length !== 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.AnyValue = AnyValue;
|
|
65
|
-
//# sourceMappingURL=any_value.js.map
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { EmptyChannelError } from "../errors.js";
|
|
2
|
-
import { BaseChannel } from "./base.js";
|
|
3
|
-
/**
|
|
4
|
-
* Stores the last value received, assumes that if multiple values are received, they are all equal.
|
|
5
|
-
*
|
|
6
|
-
* Note: Unlike 'LastValue' if multiple nodes write to this channel in a single step, the values
|
|
7
|
-
* will be continuously overwritten.
|
|
8
|
-
*
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export class AnyValue extends BaseChannel {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
Object.defineProperty(this, "lc_graph_name", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true,
|
|
17
|
-
writable: true,
|
|
18
|
-
value: "AnyValue"
|
|
19
|
-
});
|
|
20
|
-
// value is an array so we don't misinterpret an update to undefined as no write
|
|
21
|
-
Object.defineProperty(this, "value", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true,
|
|
25
|
-
value: []
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
fromCheckpoint(checkpoint) {
|
|
29
|
-
const empty = new AnyValue();
|
|
30
|
-
if (typeof checkpoint !== "undefined") {
|
|
31
|
-
empty.value = [checkpoint];
|
|
32
|
-
}
|
|
33
|
-
return empty;
|
|
34
|
-
}
|
|
35
|
-
update(values) {
|
|
36
|
-
if (values.length === 0) {
|
|
37
|
-
const updated = this.value.length > 0;
|
|
38
|
-
this.value = [];
|
|
39
|
-
return updated;
|
|
40
|
-
}
|
|
41
|
-
// eslint-disable-next-line prefer-destructuring
|
|
42
|
-
this.value = [values[values.length - 1]];
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
get() {
|
|
46
|
-
if (this.value.length === 0) {
|
|
47
|
-
throw new EmptyChannelError();
|
|
48
|
-
}
|
|
49
|
-
return this.value[0];
|
|
50
|
-
}
|
|
51
|
-
checkpoint() {
|
|
52
|
-
if (this.value.length === 0) {
|
|
53
|
-
throw new EmptyChannelError();
|
|
54
|
-
}
|
|
55
|
-
return this.value[0];
|
|
56
|
-
}
|
|
57
|
-
isAvailable() {
|
|
58
|
-
return this.value.length !== 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=any_value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"any_value.js","sourceRoot":"","sources":["../../src/channels/any_value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,OAAO,QAAgB,SAAQ,WAAgC;IAMnE;QACE,KAAK,EAAE,CAAC;QANV;;;;mBAAgB,UAAU;WAAC;QAE3B,gFAAgF;QAChF;;;;mBAAsB,EAAE;WAAC;IAIzB,CAAC;IAED,cAAc,CAAC,UAAkB;QAC/B,MAAM,KAAK,GAAG,IAAI,QAAQ,EAAS,CAAC;QACpC,IAAI,OAAO,UAAU,KAAK,WAAW,EAAE,CAAC;YACtC,KAAK,CAAC,KAAK,GAAG,CAAC,UAAU,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,KAAa,CAAC;IACvB,CAAC;IAED,MAAM,CAAC,MAAe;QACpB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;YACtC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YAChB,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,gDAAgD;QAChD,IAAI,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QACzC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,GAAG;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACjC,CAAC;CACF"}
|