@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
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//#region src/ui/stream.ts
|
|
2
|
+
const serialiseAsDict = (obj) => {
|
|
3
|
+
return JSON.parse(JSON.stringify(obj, function(key, value) {
|
|
4
|
+
const rawValue = this[key];
|
|
5
|
+
if (rawValue != null && typeof rawValue === "object" && "toDict" in rawValue && typeof rawValue.toDict === "function") {
|
|
6
|
+
const { type, data } = rawValue.toDict();
|
|
7
|
+
return {
|
|
8
|
+
...data,
|
|
9
|
+
type
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
const serializeError = (error) => {
|
|
16
|
+
if (error instanceof Error) return {
|
|
17
|
+
error: error.name,
|
|
18
|
+
message: error.message
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
error: "Error",
|
|
22
|
+
message: JSON.stringify(error)
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
const isRunnableConfig = (config) => {
|
|
26
|
+
if (typeof config !== "object" || config == null) return false;
|
|
27
|
+
return "configurable" in config && typeof config.configurable === "object" && config.configurable != null;
|
|
28
|
+
};
|
|
29
|
+
const extractCheckpointFromConfig = (config) => {
|
|
30
|
+
if (!isRunnableConfig(config) || !config.configurable.thread_id) return null;
|
|
31
|
+
return {
|
|
32
|
+
thread_id: config.configurable.thread_id,
|
|
33
|
+
checkpoint_ns: config.configurable.checkpoint_ns || "",
|
|
34
|
+
checkpoint_id: config.configurable.checkpoint_id || null,
|
|
35
|
+
checkpoint_map: config.configurable.checkpoint_map || null
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const serializeConfig = (config) => {
|
|
39
|
+
if (isRunnableConfig(config)) {
|
|
40
|
+
const configurable = Object.fromEntries(Object.entries(config.configurable).filter(([key]) => !key.startsWith("__")));
|
|
41
|
+
const newConfig = {
|
|
42
|
+
...config,
|
|
43
|
+
configurable
|
|
44
|
+
};
|
|
45
|
+
delete newConfig.callbacks;
|
|
46
|
+
return newConfig;
|
|
47
|
+
}
|
|
48
|
+
return config;
|
|
49
|
+
};
|
|
50
|
+
function serializeCheckpoint(payload) {
|
|
51
|
+
const result = {
|
|
52
|
+
...payload,
|
|
53
|
+
checkpoint: extractCheckpointFromConfig(payload.config),
|
|
54
|
+
parent_checkpoint: extractCheckpointFromConfig(payload.parentConfig),
|
|
55
|
+
config: serializeConfig(payload.config),
|
|
56
|
+
parent_config: serializeConfig(payload.parentConfig),
|
|
57
|
+
tasks: payload.tasks.map((task) => {
|
|
58
|
+
if (isRunnableConfig(task.state)) {
|
|
59
|
+
const checkpoint = extractCheckpointFromConfig(task.state);
|
|
60
|
+
if (checkpoint != null) {
|
|
61
|
+
const cloneTask = {
|
|
62
|
+
...task,
|
|
63
|
+
checkpoint
|
|
64
|
+
};
|
|
65
|
+
delete cloneTask.state;
|
|
66
|
+
return cloneTask;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return task;
|
|
70
|
+
})
|
|
71
|
+
};
|
|
72
|
+
delete result.parentConfig;
|
|
73
|
+
return result;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Converts a `graph.streamEvents()` output into a LangGraph Platform compatible event stream.
|
|
77
|
+
* @experimental Does not follow semver.
|
|
78
|
+
*
|
|
79
|
+
* @param events
|
|
80
|
+
*/
|
|
81
|
+
async function* toLangGraphEventStream(events) {
|
|
82
|
+
let rootRunId;
|
|
83
|
+
try {
|
|
84
|
+
for await (const event of await events) {
|
|
85
|
+
if (event.event === "on_chain_start" && rootRunId == null) rootRunId = event.run_id;
|
|
86
|
+
if (event.tags?.includes("langsmith:hidden")) continue;
|
|
87
|
+
if (event.event === "on_chain_stream" && event.run_id === rootRunId) {
|
|
88
|
+
if (!Array.isArray(event.data.chunk)) continue;
|
|
89
|
+
const [ns, mode, chunk] = event.data.chunk.length === 3 ? event.data.chunk : [null, ...event.data.chunk];
|
|
90
|
+
let data = chunk;
|
|
91
|
+
if (mode === "debug") {
|
|
92
|
+
const debugChunk = chunk;
|
|
93
|
+
if (debugChunk.type === "checkpoint") data = {
|
|
94
|
+
...debugChunk,
|
|
95
|
+
payload: serializeCheckpoint(debugChunk.payload)
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (mode === "checkpoints") data = serializeCheckpoint(chunk);
|
|
99
|
+
data = serialiseAsDict(data);
|
|
100
|
+
yield {
|
|
101
|
+
event: ns?.length ? `${mode}|${ns.join("|")}` : mode,
|
|
102
|
+
data
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
} catch (error) {
|
|
107
|
+
yield {
|
|
108
|
+
event: "error",
|
|
109
|
+
data: serializeError(error)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Converts a `graph.streamEvents()` output into a LangGraph Platform compatible Web Response.
|
|
115
|
+
* @experimental Does not follow semver.
|
|
116
|
+
*/
|
|
117
|
+
function toLangGraphEventStreamResponse(options) {
|
|
118
|
+
const headers = new Headers({
|
|
119
|
+
"Content-Type": "text/event-stream",
|
|
120
|
+
"Cache-Control": "no-cache",
|
|
121
|
+
Connection: "keep-alive"
|
|
122
|
+
});
|
|
123
|
+
if (options.headers) if ("forEach" in options.headers && typeof options.headers.forEach === "function") options.headers.forEach((v, k) => headers.set(k, v));
|
|
124
|
+
else Object.entries(options.headers).map(([k, v]) => headers.set(k, v));
|
|
125
|
+
return new Response(new ReadableStream({ async start(controller) {
|
|
126
|
+
try {
|
|
127
|
+
for await (const { event, data } of toLangGraphEventStream(options.stream)) {
|
|
128
|
+
controller.enqueue(`event: ${event}\n`);
|
|
129
|
+
controller.enqueue(`data: ${JSON.stringify(data)}\n\n`);
|
|
130
|
+
}
|
|
131
|
+
} finally {
|
|
132
|
+
controller.close();
|
|
133
|
+
}
|
|
134
|
+
} }), {
|
|
135
|
+
headers,
|
|
136
|
+
status: options.status,
|
|
137
|
+
statusText: options.statusText
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
//#endregion
|
|
142
|
+
export { toLangGraphEventStream, toLangGraphEventStreamResponse };
|
|
143
|
+
//# sourceMappingURL=stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.js","names":["result: Record<string, unknown>","cloneTask: Record<string, unknown>","rootRunId: string | undefined","data: unknown"],"sources":["../../src/ui/stream.ts"],"sourcesContent":["import type { RunnableConfig } from \"@langchain/core/runnables\";\nimport type { StreamEvent } from \"@langchain/core/tracers/log_stream\";\nimport type { StreamMode, StreamOutputMap } from \"../pregel/types.js\";\nimport type {\n AnyPregelLike,\n ExtraTypeBag,\n InferLangGraphEventStream,\n} from \"./types.infer.js\";\n\ntype StreamCheckpointsOutput<StreamValues> = StreamOutputMap<\n \"checkpoints\",\n false,\n StreamValues,\n unknown,\n string,\n unknown\n>;\n\nconst serialiseAsDict = <T>(obj: T): T => {\n return JSON.parse(\n JSON.stringify(obj, function (key: string | number, value: unknown) {\n const rawValue = this[key];\n if (\n rawValue != null &&\n typeof rawValue === \"object\" &&\n \"toDict\" in rawValue &&\n typeof rawValue.toDict === \"function\"\n ) {\n const { type, data } = rawValue.toDict();\n return { ...data, type };\n }\n\n return value;\n })\n );\n};\n\nconst serializeError = (error: unknown) => {\n // eslint-disable-next-line no-instanceof/no-instanceof\n if (error instanceof Error) {\n return { error: error.name, message: error.message };\n }\n return { error: \"Error\", message: JSON.stringify(error) };\n};\n\nconst isRunnableConfig = (\n config: unknown\n): config is RunnableConfig & { configurable: Record<string, unknown> } => {\n if (typeof config !== \"object\" || config == null) return false;\n return (\n \"configurable\" in config &&\n typeof config.configurable === \"object\" &&\n config.configurable != null\n );\n};\n\nconst extractCheckpointFromConfig = (\n config: RunnableConfig | null | undefined\n) => {\n if (!isRunnableConfig(config) || !config.configurable.thread_id) {\n return null;\n }\n\n return {\n thread_id: config.configurable.thread_id,\n checkpoint_ns: config.configurable.checkpoint_ns || \"\",\n checkpoint_id: config.configurable.checkpoint_id || null,\n checkpoint_map: config.configurable.checkpoint_map || null,\n };\n};\n\nconst serializeConfig = (config: unknown) => {\n if (isRunnableConfig(config)) {\n const configurable = Object.fromEntries(\n Object.entries(config.configurable).filter(\n ([key]) => !key.startsWith(\"__\")\n )\n );\n\n const newConfig = { ...config, configurable };\n delete newConfig.callbacks;\n return newConfig;\n }\n\n return config;\n};\n\nfunction serializeCheckpoint(payload: StreamCheckpointsOutput<unknown>) {\n const result: Record<string, unknown> = {\n ...payload,\n checkpoint: extractCheckpointFromConfig(payload.config),\n parent_checkpoint: extractCheckpointFromConfig(payload.parentConfig),\n\n config: serializeConfig(payload.config),\n parent_config: serializeConfig(payload.parentConfig),\n\n tasks: payload.tasks.map((task) => {\n if (isRunnableConfig(task.state)) {\n const checkpoint = extractCheckpointFromConfig(task.state);\n if (checkpoint != null) {\n const cloneTask: Record<string, unknown> = { ...task, checkpoint };\n delete cloneTask.state;\n return cloneTask;\n }\n }\n\n return task;\n }),\n };\n\n delete result.parentConfig;\n return result;\n}\n\n/**\n * Converts a `graph.streamEvents()` output into a LangGraph Platform compatible event stream.\n * @experimental Does not follow semver.\n *\n * @param events\n */\nexport async function* toLangGraphEventStream<\n TGraph extends AnyPregelLike,\n TExtra extends ExtraTypeBag = ExtraTypeBag\n>(\n events: AsyncIterable<StreamEvent> | Promise<AsyncIterable<StreamEvent>>\n): AsyncGenerator<InferLangGraphEventStream<TGraph, TExtra>> {\n let rootRunId: string | undefined;\n\n try {\n for await (const event of await events) {\n if (event.event === \"on_chain_start\" && rootRunId == null) {\n rootRunId = event.run_id;\n }\n if (event.tags?.includes(\"langsmith:hidden\")) continue;\n if (event.event === \"on_chain_stream\" && event.run_id === rootRunId) {\n if (!Array.isArray(event.data.chunk)) {\n continue;\n }\n\n type AnyStreamOutput = StreamOutputMap<\n StreamMode[],\n true,\n unknown,\n unknown,\n string,\n unknown\n >;\n\n const [ns, mode, chunk] = (\n event.data.chunk.length === 3\n ? event.data.chunk\n : [null, ...event.data.chunk]\n ) as AnyStreamOutput;\n\n // Listen for debug events and capture checkpoint\n let data: unknown = chunk;\n if (mode === \"debug\") {\n const debugChunk = chunk;\n\n if (debugChunk.type === \"checkpoint\") {\n data = {\n ...debugChunk,\n payload: serializeCheckpoint(debugChunk.payload),\n };\n }\n }\n\n if (mode === \"checkpoints\") {\n data = serializeCheckpoint(chunk);\n }\n\n // This needs to be done for LC.js V0 messages, since they\n // by default serialize using the verbose Serializable protocol.\n data = serialiseAsDict(data);\n\n yield {\n event: ns?.length ? `${mode}|${ns.join(\"|\")}` : mode,\n data,\n } as InferLangGraphEventStream<TGraph, TExtra>;\n }\n }\n } catch (error) {\n yield { event: \"error\", data: serializeError(error) };\n }\n}\n\n/**\n * Converts a `graph.streamEvents()` output into a LangGraph Platform compatible Web Response.\n * @experimental Does not follow semver.\n */\nexport function toLangGraphEventStreamResponse(options: {\n status?: number;\n statusText?: string;\n headers?: Headers | Record<string, string>;\n stream: AsyncIterable<StreamEvent> | Promise<AsyncIterable<StreamEvent>>;\n}) {\n const headers = new Headers({\n \"Content-Type\": \"text/event-stream\",\n \"Cache-Control\": \"no-cache\",\n Connection: \"keep-alive\",\n });\n\n if (options.headers) {\n if (\n \"forEach\" in options.headers &&\n typeof options.headers.forEach === \"function\"\n ) {\n options.headers.forEach((v, k) => headers.set(k, v));\n } else {\n Object.entries(options.headers).map(([k, v]) => headers.set(k, v));\n }\n }\n\n return new Response(\n new ReadableStream({\n async start(controller) {\n try {\n for await (const { event, data } of toLangGraphEventStream(\n options.stream\n )) {\n controller.enqueue(`event: ${event}\\n`);\n controller.enqueue(`data: ${JSON.stringify(data)}\\n\\n`);\n }\n } finally {\n controller.close();\n }\n },\n }),\n { headers, status: options.status, statusText: options.statusText }\n );\n}\n"],"mappings":";AAkBA,MAAM,mBAAsB,QAAc;AACxC,QAAO,KAAK,MACV,KAAK,UAAU,KAAK,SAAU,KAAsB,OAAgB;EAClE,MAAM,WAAW,KAAK;AACtB,MACE,YAAY,QACZ,OAAO,aAAa,YACpB,YAAY,YACZ,OAAO,SAAS,WAAW,YAC3B;GACA,MAAM,EAAE,MAAM,SAAS,SAAS;AAChC,UAAO;IAAE,GAAG;IAAM;;;AAGpB,SAAO;;;AAKb,MAAM,kBAAkB,UAAmB;AAEzC,KAAI,iBAAiB,MACnB,QAAO;EAAE,OAAO,MAAM;EAAM,SAAS,MAAM;;AAE7C,QAAO;EAAE,OAAO;EAAS,SAAS,KAAK,UAAU;;;AAGnD,MAAM,oBACJ,WACyE;AACzE,KAAI,OAAO,WAAW,YAAY,UAAU,KAAM,QAAO;AACzD,QACE,kBAAkB,UAClB,OAAO,OAAO,iBAAiB,YAC/B,OAAO,gBAAgB;;AAI3B,MAAM,+BACJ,WACG;AACH,KAAI,CAAC,iBAAiB,WAAW,CAAC,OAAO,aAAa,UACpD,QAAO;AAGT,QAAO;EACL,WAAW,OAAO,aAAa;EAC/B,eAAe,OAAO,aAAa,iBAAiB;EACpD,eAAe,OAAO,aAAa,iBAAiB;EACpD,gBAAgB,OAAO,aAAa,kBAAkB;;;AAI1D,MAAM,mBAAmB,WAAoB;AAC3C,KAAI,iBAAiB,SAAS;EAC5B,MAAM,eAAe,OAAO,YAC1B,OAAO,QAAQ,OAAO,cAAc,QACjC,CAAC,SAAS,CAAC,IAAI,WAAW;EAI/B,MAAM,YAAY;GAAE,GAAG;GAAQ;;AAC/B,SAAO,UAAU;AACjB,SAAO;;AAGT,QAAO;;AAGT,SAAS,oBAAoB,SAA2C;CACtE,MAAMA,SAAkC;EACtC,GAAG;EACH,YAAY,4BAA4B,QAAQ;EAChD,mBAAmB,4BAA4B,QAAQ;E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Y,WAEnC,SAAQ,QAAQ,SAAS,GAAG,MAAM,QAAQ,IAAI,GAAG;KAEjD,QAAO,QAAQ,QAAQ,SAAS,KAAK,CAAC,GAAG,OAAO,QAAQ,IAAI,GAAG;AAInE,QAAO,IAAI,SACT,IAAI,eAAe,EACjB,MAAM,MAAM,YAAY;AACtB,MAAI;AACF,cAAW,MAAM,EAAE,OAAO,UAAU,uBAClC,QAAQ,SACP;AACD,eAAW,QAAQ,UAAU,MAAM;AACnC,eAAW,QAAQ,SAAS,KAAK,UAAU,MAAM;;YAE3C;AACR,cAAW;;OAIjB;EAAE;EAAS,QAAQ,QAAQ;EAAQ,YAAY,QAAQ"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SerializedMessage } from "./types.message.cjs";
|
|
2
|
+
import { LangGraphEventStream } from "./types.schema.cjs";
|
|
3
|
+
import { BaseMessage } from "@langchain/core/messages";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/types.infer.d.ts
|
|
6
|
+
type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => (T extends Y ? 1 : 2)) ? true : false;
|
|
7
|
+
type MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;
|
|
8
|
+
type MatchBaseMessageArray<T> = T extends Array<infer C> ? Equals<MatchBaseMessage<C>, BaseMessage> extends true ? BaseMessage[] : never : never;
|
|
9
|
+
type ReplaceMessages<T, TDepth extends Array<0> = []> = TDepth extends [0, 0, 0] ? any : T extends unknown ? { [K in keyof T]: 0 extends 1 & T[K] ? T[K] : Equals<MatchBaseMessageArray<T[K]>, BaseMessage[]> extends true ? SerializedMessage.AnyMessage[] : Equals<MatchBaseMessage<T[K]>, BaseMessage> extends true ? SerializedMessage.AnyMessage : ReplaceMessages<T[K], [0, ...TDepth]> } : never;
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11
|
+
type Defactorify<T> = T extends ((...args: any[]) => infer R) ? Awaited<R> : Awaited<T>;
|
|
12
|
+
type AnyPregel = {
|
|
13
|
+
lg_is_pregel: boolean;
|
|
14
|
+
stream: (...args: any[]) => any;
|
|
15
|
+
invoke: (...args: any[]) => any;
|
|
16
|
+
};
|
|
17
|
+
type AnyGraph = {
|
|
18
|
+
compiled: boolean;
|
|
19
|
+
compile: (...args: any[]) => any;
|
|
20
|
+
};
|
|
21
|
+
type AnyPregelLike = AnyPregel | AnyGraph | ((...args: any[]) => AnyPregel | AnyGraph);
|
|
22
|
+
type ReflectCompiledGraph<T> = T extends {
|
|
23
|
+
RunInput: infer State;
|
|
24
|
+
RunOutput: infer Update;
|
|
25
|
+
"~NodeReturnType"?: infer ReturnType;
|
|
26
|
+
} ? {
|
|
27
|
+
state: ReplaceMessages<State>;
|
|
28
|
+
update: ReplaceMessages<Update>;
|
|
29
|
+
returnType: ReturnType;
|
|
30
|
+
} : T extends {
|
|
31
|
+
"~InputType": infer InputType;
|
|
32
|
+
"~OutputType": infer OutputType;
|
|
33
|
+
} ? {
|
|
34
|
+
state: ReplaceMessages<OutputType>;
|
|
35
|
+
update: ReplaceMessages<InputType>;
|
|
36
|
+
} : never;
|
|
37
|
+
type InferGraph<T> = Defactorify<T> extends infer DT ? DT extends {
|
|
38
|
+
compile(...args: any[]): infer Compiled;
|
|
39
|
+
} ? ReflectCompiledGraph<Compiled> : ReflectCompiledGraph<DT> : never;
|
|
40
|
+
type ExtraTypeBag<TCustomType = unknown, TInterruptType = unknown> = {
|
|
41
|
+
CustomType?: TCustomType;
|
|
42
|
+
InterruptType?: TInterruptType;
|
|
43
|
+
};
|
|
44
|
+
type GetCustomType<Bag extends ExtraTypeBag> = Bag extends {
|
|
45
|
+
CustomType: unknown;
|
|
46
|
+
} ? Bag["CustomType"] : unknown;
|
|
47
|
+
type GetInterruptType<Bag extends ExtraTypeBag> = Bag extends {
|
|
48
|
+
InterruptType: unknown;
|
|
49
|
+
} ? Bag["InterruptType"] : unknown;
|
|
50
|
+
type InferLangGraphEventStream<TGraph extends AnyPregelLike, TExtra extends ExtraTypeBag = ExtraTypeBag> = LangGraphEventStream<InferGraph<TGraph>["state"], InferGraph<TGraph>["update"], GetCustomType<TExtra>, GetInterruptType<TExtra>, InferGraph<TGraph>["returnType"]>;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { AnyPregelLike, ExtraTypeBag, InferLangGraphEventStream };
|
|
53
|
+
//# sourceMappingURL=types.infer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.infer.d.cts","names":["BaseMessage","SerializedMessage","LangGraphEventStream","Equals","T","X","Y","MatchBaseMessage","MatchBaseMessageArray","Array","C","ReplaceMessages","TDepth","K","AnyMessage","Defactorify","R","Awaited","AnyPregel","AnyGraph","AnyPregelLike","ReflectCompiledGraph","State","Update","ReturnType","OutputType","InputType","InferGraph","DT","Compiled","ExtraTypeBag","TCustomType","TInterruptType","GetCustomType","Bag","GetInterruptType","InferLangGraphEventStream","TGraph","TExtra"],"sources":["../../src/ui/types.infer.d.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { BaseMessage } from \"@langchain/core/messages\";\nimport type { SerializedMessage } from \"./types.message.js\";\nimport type { LangGraphEventStream } from \"./types.schema.js\";\ntype Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => (T extends Y ? 1 : 2) ? true : false;\ntype MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;\ntype MatchBaseMessageArray<T> = T extends Array<infer C> ? Equals<MatchBaseMessage<C>, BaseMessage> extends true ? BaseMessage[] : never : never;\ntype ReplaceMessages<T, TDepth extends Array<0> = []> = TDepth extends [0, 0, 0] ? any : T extends unknown ? {\n [K in keyof T]: 0 extends 1 & T[K] ? T[K] : Equals<MatchBaseMessageArray<T[K]>, BaseMessage[]> extends true ? SerializedMessage.AnyMessage[] : Equals<MatchBaseMessage<T[K]>, BaseMessage> extends true ? SerializedMessage.AnyMessage : ReplaceMessages<T[K], [0, ...TDepth]>;\n} : never;\n/* eslint-disable @typescript-eslint/no-explicit-any */\ntype Defactorify<T> = T extends (...args: any[]) => infer R ? Awaited<R> : Awaited<T>;\ntype AnyPregel = {\n lg_is_pregel: boolean;\n stream: (...args: any[]) => any;\n invoke: (...args: any[]) => any;\n};\ntype AnyGraph = {\n compiled: boolean;\n compile: (...args: any[]) => any;\n};\nexport type AnyPregelLike = AnyPregel | AnyGraph | ((...args: any[]) => AnyPregel | AnyGraph);\ntype ReflectCompiledGraph<T> = T extends {\n RunInput: infer State;\n RunOutput: infer Update;\n \"~NodeReturnType\"?: infer ReturnType;\n} ? {\n state: ReplaceMessages<State>;\n update: ReplaceMessages<Update>;\n returnType: ReturnType;\n} : T extends {\n \"~InputType\": infer InputType;\n \"~OutputType\": infer OutputType;\n} ? {\n state: ReplaceMessages<OutputType>;\n update: ReplaceMessages<InputType>;\n} : never;\ntype InferGraph<T> = Defactorify<T> extends infer DT ? DT extends {\n compile(...args: any[]): infer Compiled;\n} ? ReflectCompiledGraph<Compiled> : ReflectCompiledGraph<DT> : never;\nexport type ExtraTypeBag<TCustomType = unknown, TInterruptType = unknown> = {\n CustomType?: TCustomType;\n InterruptType?: TInterruptType;\n};\ntype GetCustomType<Bag extends ExtraTypeBag> = Bag extends {\n CustomType: unknown;\n} ? Bag[\"CustomType\"] : unknown;\ntype GetInterruptType<Bag extends ExtraTypeBag> = Bag extends {\n InterruptType: unknown;\n} ? Bag[\"InterruptType\"] : unknown;\nexport type InferLangGraphEventStream<TGraph extends AnyPregelLike, TExtra extends ExtraTypeBag = ExtraTypeBag> = LangGraphEventStream<InferGraph<TGraph>[\"state\"], InferGraph<TGraph>[\"update\"], GetCustomType<TExtra>, GetInterruptType<TExtra>, InferGraph<TGraph>[\"returnType\"]>;\nexport {};\n"],"mappings":";;;;;KAIKG,yBAAyBC,UAAUC,8BAA6BD,UAAUE;AADjB,KAEzDC,gBADM,CAAA,CAAA,CAAA,GACgBH,CADhB,SAC0BJ,WAD1B,GACwCA,WADxC,GAAA,KAAA;K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iCnE+B,WAjCmE/B;eAApCG,CAAAA,EAkC5B6B,cAlC4B7B;;KAoC3C8B,aApCsK7B,CAAAA,YAoC5I0B,YApC4I1B,CAAAA,GAoC5H8B,GApC4H9B,SAAAA;YAAES,EAAAA,OAAAA;IAsCzKqB,GAtCsJ3B,CAAAA,YAAAA,CAAAA,GAAAA,OAAAA;KAuCrJ4B,gBAvC6KnC,CAAAA,YAuChJ8B,YAvCgJ9B,CAAAA,GAuChIkC,GAvCgIlC,SAAAA;eAA/BG,EAAAA,OAAAA;IAyC/I+B,GAzC0MjC,CAAAA,eAAAA,CAAAA,GAAkBa,OAAAA;AAA6BV,KA0CjPgC,yBA1CiPhC,CAAAA,eA0CxMgB,aA1CwMhB,EAAAA,eA0C1K0B,YA1C0K1B,GA0C3J0B,YA1C2J1B,CAAAA,GA0C3IF,oBA1C2IE,CA0CtHuB,UA1CsHvB,CA0C3GiC,MA1C2GjC,CAAAA,CAAAA,OAAAA,CAAAA,EA0CzFuB,UA1CyFvB,CA0C9EiC,MA1C8EjC,CAAAA,CAAAA,QAAAA,CAAAA,EA0C3D6B,aA1C2D7B,CA0C7CkC,MA1C6ClC,CAAAA,EA0CpC+B,gBA1CoC/B,CA0CnBkC,MA1CmBlC,CAAAA,EA0CVuB,UA1CUvB,CA0CCiC,MA1CDjC,CAAAA,CAAAA,YAAAA,CAAAA,CAAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { SerializedMessage } from "./types.message.js";
|
|
2
|
+
import { LangGraphEventStream } from "./types.schema.js";
|
|
3
|
+
import { BaseMessage } from "@langchain/core/messages";
|
|
4
|
+
|
|
5
|
+
//#region src/ui/types.infer.d.ts
|
|
6
|
+
type Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => (T extends Y ? 1 : 2)) ? true : false;
|
|
7
|
+
type MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;
|
|
8
|
+
type MatchBaseMessageArray<T> = T extends Array<infer C> ? Equals<MatchBaseMessage<C>, BaseMessage> extends true ? BaseMessage[] : never : never;
|
|
9
|
+
type ReplaceMessages<T, TDepth extends Array<0> = []> = TDepth extends [0, 0, 0] ? any : T extends unknown ? { [K in keyof T]: 0 extends 1 & T[K] ? T[K] : Equals<MatchBaseMessageArray<T[K]>, BaseMessage[]> extends true ? SerializedMessage.AnyMessage[] : Equals<MatchBaseMessage<T[K]>, BaseMessage> extends true ? SerializedMessage.AnyMessage : ReplaceMessages<T[K], [0, ...TDepth]> } : never;
|
|
10
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
11
|
+
type Defactorify<T> = T extends ((...args: any[]) => infer R) ? Awaited<R> : Awaited<T>;
|
|
12
|
+
type AnyPregel = {
|
|
13
|
+
lg_is_pregel: boolean;
|
|
14
|
+
stream: (...args: any[]) => any;
|
|
15
|
+
invoke: (...args: any[]) => any;
|
|
16
|
+
};
|
|
17
|
+
type AnyGraph = {
|
|
18
|
+
compiled: boolean;
|
|
19
|
+
compile: (...args: any[]) => any;
|
|
20
|
+
};
|
|
21
|
+
type AnyPregelLike = AnyPregel | AnyGraph | ((...args: any[]) => AnyPregel | AnyGraph);
|
|
22
|
+
type ReflectCompiledGraph<T> = T extends {
|
|
23
|
+
RunInput: infer State;
|
|
24
|
+
RunOutput: infer Update;
|
|
25
|
+
"~NodeReturnType"?: infer ReturnType;
|
|
26
|
+
} ? {
|
|
27
|
+
state: ReplaceMessages<State>;
|
|
28
|
+
update: ReplaceMessages<Update>;
|
|
29
|
+
returnType: ReturnType;
|
|
30
|
+
} : T extends {
|
|
31
|
+
"~InputType": infer InputType;
|
|
32
|
+
"~OutputType": infer OutputType;
|
|
33
|
+
} ? {
|
|
34
|
+
state: ReplaceMessages<OutputType>;
|
|
35
|
+
update: ReplaceMessages<InputType>;
|
|
36
|
+
} : never;
|
|
37
|
+
type InferGraph<T> = Defactorify<T> extends infer DT ? DT extends {
|
|
38
|
+
compile(...args: any[]): infer Compiled;
|
|
39
|
+
} ? ReflectCompiledGraph<Compiled> : ReflectCompiledGraph<DT> : never;
|
|
40
|
+
type ExtraTypeBag<TCustomType = unknown, TInterruptType = unknown> = {
|
|
41
|
+
CustomType?: TCustomType;
|
|
42
|
+
InterruptType?: TInterruptType;
|
|
43
|
+
};
|
|
44
|
+
type GetCustomType<Bag extends ExtraTypeBag> = Bag extends {
|
|
45
|
+
CustomType: unknown;
|
|
46
|
+
} ? Bag["CustomType"] : unknown;
|
|
47
|
+
type GetInterruptType<Bag extends ExtraTypeBag> = Bag extends {
|
|
48
|
+
InterruptType: unknown;
|
|
49
|
+
} ? Bag["InterruptType"] : unknown;
|
|
50
|
+
type InferLangGraphEventStream<TGraph extends AnyPregelLike, TExtra extends ExtraTypeBag = ExtraTypeBag> = LangGraphEventStream<InferGraph<TGraph>["state"], InferGraph<TGraph>["update"], GetCustomType<TExtra>, GetInterruptType<TExtra>, InferGraph<TGraph>["returnType"]>;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { AnyPregelLike, ExtraTypeBag, InferLangGraphEventStream };
|
|
53
|
+
//# sourceMappingURL=types.infer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.infer.d.ts","names":["BaseMessage","SerializedMessage","LangGraphEventStream","Equals","T","X","Y","MatchBaseMessage","MatchBaseMessageArray","Array","C","ReplaceMessages","TDepth","K","AnyMessage","Defactorify","R","Awaited","AnyPregel","AnyGraph","AnyPregelLike","ReflectCompiledGraph","State","Update","ReturnType","OutputType","InputType","InferGraph","DT","Compiled","ExtraTypeBag","TCustomType","TInterruptType","GetCustomType","Bag","GetInterruptType","InferLangGraphEventStream","TGraph","TExtra"],"sources":["../../src/ui/types.infer.d.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type { BaseMessage } from \"@langchain/core/messages\";\nimport type { SerializedMessage } from \"./types.message.js\";\nimport type { LangGraphEventStream } from \"./types.schema.js\";\ntype Equals<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => (T extends Y ? 1 : 2) ? true : false;\ntype MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;\ntype MatchBaseMessageArray<T> = T extends Array<infer C> ? Equals<MatchBaseMessage<C>, BaseMessage> extends true ? BaseMessage[] : never : never;\ntype ReplaceMessages<T, TDepth extends Array<0> = []> = TDepth extends [0, 0, 0] ? any : T extends unknown ? {\n [K in keyof T]: 0 extends 1 & T[K] ? T[K] : Equals<MatchBaseMessageArray<T[K]>, BaseMessage[]> extends true ? SerializedMessage.AnyMessage[] : Equals<MatchBaseMessage<T[K]>, BaseMessage> extends true ? SerializedMessage.AnyMessage : ReplaceMessages<T[K], [0, ...TDepth]>;\n} : never;\n/* eslint-disable @typescript-eslint/no-explicit-any */\ntype Defactorify<T> = T extends (...args: any[]) => infer R ? Awaited<R> : Awaited<T>;\ntype AnyPregel = {\n lg_is_pregel: boolean;\n stream: (...args: any[]) => any;\n invoke: (...args: any[]) => any;\n};\ntype AnyGraph = {\n compiled: boolean;\n compile: (...args: any[]) => any;\n};\nexport type AnyPregelLike = AnyPregel | AnyGraph | ((...args: any[]) => AnyPregel | AnyGraph);\ntype ReflectCompiledGraph<T> = T extends {\n RunInput: infer State;\n RunOutput: infer Update;\n \"~NodeReturnType\"?: infer ReturnType;\n} ? {\n state: ReplaceMessages<State>;\n update: ReplaceMessages<Update>;\n returnType: ReturnType;\n} : T extends {\n \"~InputType\": infer InputType;\n \"~OutputType\": infer OutputType;\n} ? {\n state: ReplaceMessages<OutputType>;\n update: ReplaceMessages<InputType>;\n} : never;\ntype InferGraph<T> = Defactorify<T> extends infer DT ? DT extends {\n compile(...args: any[]): infer Compiled;\n} ? ReflectCompiledGraph<Compiled> : ReflectCompiledGraph<DT> : never;\nexport type ExtraTypeBag<TCustomType = unknown, TInterruptType = unknown> = {\n CustomType?: TCustomType;\n InterruptType?: TInterruptType;\n};\ntype GetCustomType<Bag extends ExtraTypeBag> = Bag extends {\n CustomType: unknown;\n} ? Bag[\"CustomType\"] : unknown;\ntype GetInterruptType<Bag extends ExtraTypeBag> = Bag extends {\n InterruptType: unknown;\n} ? Bag[\"InterruptType\"] : unknown;\nexport type InferLangGraphEventStream<TGraph extends AnyPregelLike, TExtra extends ExtraTypeBag = ExtraTypeBag> = LangGraphEventStream<InferGraph<TGraph>[\"state\"], InferGraph<TGraph>[\"update\"], GetCustomType<TExtra>, GetInterruptType<TExtra>, InferGraph<TGraph>[\"returnType\"]>;\nexport {};\n"],"mappings":";;;;;KAIKG,yBAAyBC,UAAUC,8BAA6BD,UAAUE;AADjB,KAEzDC,gBADM,CAAA,CAAA,CAAA,GACgBH,CADhB,SAC0BJ,WAD1B,GACwCA,WADxC,GAAA,KAAA;KAENQ,qBAFM,CAAA,CAAA,CAAA,GAEqBJ,CAFrB,SAE+BK,KAF/B,CAAA,KAAA,EAAA,CAAA,GAEgDN,MAFhD,CAEuDI,gBAFvD,CAEwEG,CAFxE,CAAA,EAE4EV,WAF5E,CAAA,SAAA,IAAA,GAEwGA,WAFxG,EAAA,GAAA,KAAA,GAAA,KAAA;KAGNW,eAHyBP,CAAAA,CAAAA,EAAAA,eAGSK,KAHTL,CAAAA,CAAAA,CAAAA,GAAAA,EAAAA,CAAAA,GAG0BQ,MAH1BR,SAAAA,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,CAAAA,CAAAA,GAAAA,GAAAA,GAG2DA,CAH3DA,SAAAA,OAAAA,GAAAA,QAAUC,MAIxBD,CAJwBC,GAAAA,CAAAA,SAAAA,CAAAA,GAIND,CAJMC,CAIJQ,CAJIR,CAAAA,GAICD,CAJDC,CAIGQ,CAJHR,CAAAA,GAIQF,MAJRE,CAIeG,qBAJfH,CAIqCD,CAJrCC,CAIuCQ,CAJvCR,CAAAA,CAAAA,EAI4CL,WAJ5CK,EAAAA,CAAAA,SAAAA,IAAAA,GAI0EJ,iBAAAA,CAAkBa,UAJ5FT,EAAAA,GAI2GF,MAJ3GE,CAIkHE,gBAJlHF,CAImID,CAJnIC,CAIqIQ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CiC,MA1CDjC,CAAAA,CAAAA,YAAAA,CAAAA,CAAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//#region src/ui/types.message.d.ts
|
|
2
|
+
type ImageDetail = "auto" | "low" | "high";
|
|
3
|
+
type MessageContentImageUrl = {
|
|
4
|
+
type: "image_url";
|
|
5
|
+
image_url: string | {
|
|
6
|
+
url: string;
|
|
7
|
+
detail?: ImageDetail | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type MessageContentText = {
|
|
11
|
+
type: "text";
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
type MessageContentComplex = MessageContentText | MessageContentImageUrl;
|
|
15
|
+
type MessageContent = string | MessageContentComplex[];
|
|
16
|
+
/**
|
|
17
|
+
* Model-specific additional kwargs, which is passed back to the underlying LLM.
|
|
18
|
+
*/
|
|
19
|
+
type MessageAdditionalKwargs = Record<string, unknown>;
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
21
|
+
declare namespace SerializedMessage {
|
|
22
|
+
type BaseMessage = {
|
|
23
|
+
additional_kwargs?: MessageAdditionalKwargs | undefined;
|
|
24
|
+
content: MessageContent;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
response_metadata?: Record<string, unknown> | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type HumanMessage = BaseMessage & {
|
|
30
|
+
type: "human";
|
|
31
|
+
example?: boolean | undefined;
|
|
32
|
+
};
|
|
33
|
+
export type AIMessage = BaseMessage & {
|
|
34
|
+
type: "ai";
|
|
35
|
+
example?: boolean | undefined;
|
|
36
|
+
tool_calls?: {
|
|
37
|
+
name: string;
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
|
+
args: {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
};
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
type?: "tool_call" | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
invalid_tool_calls?: {
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
args?: string | undefined;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
error?: string | undefined;
|
|
50
|
+
type?: "invalid_tool_call" | undefined;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
usage_metadata?: {
|
|
53
|
+
input_tokens: number;
|
|
54
|
+
output_tokens: number;
|
|
55
|
+
total_tokens: number;
|
|
56
|
+
input_token_details?: {
|
|
57
|
+
audio?: number | undefined;
|
|
58
|
+
cache_read?: number | undefined;
|
|
59
|
+
cache_creation?: number | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
output_token_details?: {
|
|
62
|
+
audio?: number | undefined;
|
|
63
|
+
reasoning?: number | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
};
|
|
67
|
+
export type ToolMessage = BaseMessage & {
|
|
68
|
+
type: "tool";
|
|
69
|
+
status?: "error" | "success" | undefined;
|
|
70
|
+
tool_call_id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Artifact of the Tool execution which is not meant to be sent to the model.
|
|
73
|
+
*
|
|
74
|
+
* Should only be specified if it is different from the message content, e.g. if only
|
|
75
|
+
* a subset of the full tool output is being passed as message content but the full
|
|
76
|
+
* output is needed in other parts of the code.
|
|
77
|
+
*/
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
+
artifact?: any;
|
|
80
|
+
};
|
|
81
|
+
export type SystemMessage = BaseMessage & {
|
|
82
|
+
type: "system";
|
|
83
|
+
};
|
|
84
|
+
export type FunctionMessage = BaseMessage & {
|
|
85
|
+
type: "function";
|
|
86
|
+
};
|
|
87
|
+
export type RemoveMessage = BaseMessage & {
|
|
88
|
+
type: "remove";
|
|
89
|
+
};
|
|
90
|
+
export type AnyMessage = HumanMessage | AIMessage | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;
|
|
91
|
+
export {};
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { SerializedMessage };
|
|
95
|
+
//# sourceMappingURL=types.message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.message.d.cts","names":["ImageDetail","MessageContentImageUrl","MessageContentText","MessageContentComplex","MessageContent","MessageAdditionalKwargs","Record","SerializedMessage","BaseMessage","HumanMessage","AIMessage","ToolMessage","SystemMessage","FunctionMessage","RemoveMessage"],"sources":["../../src/ui/types.message.d.ts"],"sourcesContent":["type ImageDetail = \"auto\" | \"low\" | \"high\";\ntype MessageContentImageUrl = {\n type: \"image_url\";\n image_url: string | {\n url: string;\n detail?: ImageDetail | undefined;\n };\n};\ntype MessageContentText = {\n type: \"text\";\n text: string;\n};\ntype MessageContentComplex = MessageContentText | MessageContentImageUrl;\ntype MessageContent = string | MessageContentComplex[];\n/**\n * Model-specific additional kwargs, which is passed back to the underlying LLM.\n */\ntype MessageAdditionalKwargs = Record<string, unknown>;\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport declare namespace SerializedMessage {\n type BaseMessage = {\n additional_kwargs?: MessageAdditionalKwargs | undefined;\n content: MessageContent;\n id?: string | undefined;\n name?: string | undefined;\n response_metadata?: Record<string, unknown> | undefined;\n };\n export type HumanMessage = BaseMessage & {\n type: \"human\";\n example?: boolean | undefined;\n };\n export type AIMessage = BaseMessage & {\n type: \"ai\";\n example?: boolean | undefined;\n tool_calls?: {\n name: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n args: {\n [x: string]: any;\n };\n id?: string | undefined;\n type?: \"tool_call\" | undefined;\n }[] | undefined;\n invalid_tool_calls?: {\n name?: string | undefined;\n args?: string | undefined;\n id?: string | undefined;\n error?: string | undefined;\n type?: \"invalid_tool_call\" | undefined;\n }[] | undefined;\n usage_metadata?: {\n input_tokens: number;\n output_tokens: number;\n total_tokens: number;\n input_token_details?: {\n audio?: number | undefined;\n cache_read?: number | undefined;\n cache_creation?: number | undefined;\n } | undefined;\n output_token_details?: {\n audio?: number | undefined;\n reasoning?: number | undefined;\n } | undefined;\n } | undefined;\n };\n export type ToolMessage = BaseMessage & {\n type: \"tool\";\n status?: \"error\" | \"success\" | undefined;\n tool_call_id: string;\n /**\n * Artifact of the Tool execution which is not meant to be sent to the model.\n *\n * Should only be specified if it is different from the message content, e.g. if only\n * a subset of the full tool output is being passed as message content but the full\n * output is needed in other parts of the code.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n artifact?: any;\n };\n export type SystemMessage = BaseMessage & {\n type: \"system\";\n };\n export type FunctionMessage = BaseMessage & {\n type: \"function\";\n };\n export type RemoveMessage = BaseMessage & {\n type: \"remove\";\n };\n export type AnyMessage = HumanMessage | AIMessage | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;\n export {};\n}\nexport {};\n"],"mappings":";KAAKA,WAAAA;KACAC,sBAAAA,GADW;EACXA,IAAAA,EAAAA,WAAAA;EAOAC,SAAAA,EAAAA,MAAAA,GAAAA;IAIAC,GAAAA,EAAAA,MAAAA;IAAqB,MAAA,CAAA,EAPTH,WAOS,GAAA,SAAA;;;KAJrBE,kBAAAA;EAKAE,IAAAA,EAAAA,MAAAA;EAIAC,IAAAA,EAAAA,MAAAA;AAEL,CAAA;KAPKF,qBAAAA,GAAwBD,kBAOa,GAPQD,sBAOR;KANrCG,cAAAA,GAQuBC,MAAAA,GARGF,qBAQHE,EAAAA;;;;KAJvBA,uBAAAA,GAA0BC,MAcHE,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA;;AAgDIA,kBA5DPD,iBAAAA,CA4DOC;OAGEA,WAAAA,GAAAA;IAGFA,iBAAAA,CAAAA,EAhEJH,uBAgEIG,GAAAA,SAAAA;IAGHC,OAAAA,EAlEZL,cAkEYK;IAAeC,EAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;IAAYC,IAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;IAAcC,iBAAAA,CAAAA,EA/D1CN,MA+D0CM,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA,GAAAA,SAAAA;;SAAkCE,KAAAA,YAAAA,GA7DzEN,WA6DyEM,GAAAA;;;;0BAzD5EN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkCEA;;;;;;;;;;;;;;8BAcEA;;;gCAGEA;;;8BAGFA;;;2BAGHC,eAAeC,YAAYC,cAAcC,gBAAgBC,kBAAkBC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//#region src/ui/types.message.d.ts
|
|
2
|
+
type ImageDetail = "auto" | "low" | "high";
|
|
3
|
+
type MessageContentImageUrl = {
|
|
4
|
+
type: "image_url";
|
|
5
|
+
image_url: string | {
|
|
6
|
+
url: string;
|
|
7
|
+
detail?: ImageDetail | undefined;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
type MessageContentText = {
|
|
11
|
+
type: "text";
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
type MessageContentComplex = MessageContentText | MessageContentImageUrl;
|
|
15
|
+
type MessageContent = string | MessageContentComplex[];
|
|
16
|
+
/**
|
|
17
|
+
* Model-specific additional kwargs, which is passed back to the underlying LLM.
|
|
18
|
+
*/
|
|
19
|
+
type MessageAdditionalKwargs = Record<string, unknown>;
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
21
|
+
declare namespace SerializedMessage {
|
|
22
|
+
type BaseMessage = {
|
|
23
|
+
additional_kwargs?: MessageAdditionalKwargs | undefined;
|
|
24
|
+
content: MessageContent;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
response_metadata?: Record<string, unknown> | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type HumanMessage = BaseMessage & {
|
|
30
|
+
type: "human";
|
|
31
|
+
example?: boolean | undefined;
|
|
32
|
+
};
|
|
33
|
+
export type AIMessage = BaseMessage & {
|
|
34
|
+
type: "ai";
|
|
35
|
+
example?: boolean | undefined;
|
|
36
|
+
tool_calls?: {
|
|
37
|
+
name: string;
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
|
+
args: {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
};
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
type?: "tool_call" | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
invalid_tool_calls?: {
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
args?: string | undefined;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
error?: string | undefined;
|
|
50
|
+
type?: "invalid_tool_call" | undefined;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
usage_metadata?: {
|
|
53
|
+
input_tokens: number;
|
|
54
|
+
output_tokens: number;
|
|
55
|
+
total_tokens: number;
|
|
56
|
+
input_token_details?: {
|
|
57
|
+
audio?: number | undefined;
|
|
58
|
+
cache_read?: number | undefined;
|
|
59
|
+
cache_creation?: number | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
output_token_details?: {
|
|
62
|
+
audio?: number | undefined;
|
|
63
|
+
reasoning?: number | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
};
|
|
67
|
+
export type ToolMessage = BaseMessage & {
|
|
68
|
+
type: "tool";
|
|
69
|
+
status?: "error" | "success" | undefined;
|
|
70
|
+
tool_call_id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Artifact of the Tool execution which is not meant to be sent to the model.
|
|
73
|
+
*
|
|
74
|
+
* Should only be specified if it is different from the message content, e.g. if only
|
|
75
|
+
* a subset of the full tool output is being passed as message content but the full
|
|
76
|
+
* output is needed in other parts of the code.
|
|
77
|
+
*/
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
|
+
artifact?: any;
|
|
80
|
+
};
|
|
81
|
+
export type SystemMessage = BaseMessage & {
|
|
82
|
+
type: "system";
|
|
83
|
+
};
|
|
84
|
+
export type FunctionMessage = BaseMessage & {
|
|
85
|
+
type: "function";
|
|
86
|
+
};
|
|
87
|
+
export type RemoveMessage = BaseMessage & {
|
|
88
|
+
type: "remove";
|
|
89
|
+
};
|
|
90
|
+
export type AnyMessage = HumanMessage | AIMessage | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;
|
|
91
|
+
export {};
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { SerializedMessage };
|
|
95
|
+
//# sourceMappingURL=types.message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.message.d.ts","names":["ImageDetail","MessageContentImageUrl","MessageContentText","MessageContentComplex","MessageContent","MessageAdditionalKwargs","Record","SerializedMessage","BaseMessage","HumanMessage","AIMessage","ToolMessage","SystemMessage","FunctionMessage","RemoveMessage"],"sources":["../../src/ui/types.message.d.ts"],"sourcesContent":["type ImageDetail = \"auto\" | \"low\" | \"high\";\ntype MessageContentImageUrl = {\n type: \"image_url\";\n image_url: string | {\n url: string;\n detail?: ImageDetail | undefined;\n };\n};\ntype MessageContentText = {\n type: \"text\";\n text: string;\n};\ntype MessageContentComplex = MessageContentText | MessageContentImageUrl;\ntype MessageContent = string | MessageContentComplex[];\n/**\n * Model-specific additional kwargs, which is passed back to the underlying LLM.\n */\ntype MessageAdditionalKwargs = Record<string, unknown>;\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport declare namespace SerializedMessage {\n type BaseMessage = {\n additional_kwargs?: MessageAdditionalKwargs | undefined;\n content: MessageContent;\n id?: string | undefined;\n name?: string | undefined;\n response_metadata?: Record<string, unknown> | undefined;\n };\n export type HumanMessage = BaseMessage & {\n type: \"human\";\n example?: boolean | undefined;\n };\n export type AIMessage = BaseMessage & {\n type: \"ai\";\n example?: boolean | undefined;\n tool_calls?: {\n name: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n args: {\n [x: string]: any;\n };\n id?: string | undefined;\n type?: \"tool_call\" | undefined;\n }[] | undefined;\n invalid_tool_calls?: {\n name?: string | undefined;\n args?: string | undefined;\n id?: string | undefined;\n error?: string | undefined;\n type?: \"invalid_tool_call\" | undefined;\n }[] | undefined;\n usage_metadata?: {\n input_tokens: number;\n output_tokens: number;\n total_tokens: number;\n input_token_details?: {\n audio?: number | undefined;\n cache_read?: number | undefined;\n cache_creation?: number | undefined;\n } | undefined;\n output_token_details?: {\n audio?: number | undefined;\n reasoning?: number | undefined;\n } | undefined;\n } | undefined;\n };\n export type ToolMessage = BaseMessage & {\n type: \"tool\";\n status?: \"error\" | \"success\" | undefined;\n tool_call_id: string;\n /**\n * Artifact of the Tool execution which is not meant to be sent to the model.\n *\n * Should only be specified if it is different from the message content, e.g. if only\n * a subset of the full tool output is being passed as message content but the full\n * output is needed in other parts of the code.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n artifact?: any;\n };\n export type SystemMessage = BaseMessage & {\n type: \"system\";\n };\n export type FunctionMessage = BaseMessage & {\n type: \"function\";\n };\n export type RemoveMessage = BaseMessage & {\n type: \"remove\";\n };\n export type AnyMessage = HumanMessage | AIMessage | ToolMessage | SystemMessage | FunctionMessage | RemoveMessage;\n export {};\n}\nexport {};\n"],"mappings":";KAAKA,WAAAA;KACAC,sBAAAA,GADW;EACXA,IAAAA,EAAAA,WAAAA;EAOAC,SAAAA,EAAAA,MAAAA,GAAAA;IAIAC,GAAAA,EAAAA,MAAAA;IAAqB,MAAA,CAAA,EAPTH,WAOS,GAAA,SAAA;;;KAJrBE,kBAAAA;EAKAE,IAAAA,EAAAA,MAAAA;EAIAC,IAAAA,EAAAA,MAAAA;AAEL,CAAA;KAPKF,qBAAAA,GAAwBD,kBAOa,GAPQD,sBAOR;KANrCG,cAAAA,GAQuBC,MAAAA,GARGF,qBAQHE,EAAAA;;;;KAJvBA,uBAAAA,GAA0BC,MAcHE,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA;;AAgDIA,kBA5DPD,iBAAAA,CA4DOC;OAGEA,WAAAA,GAAAA;IAGFA,iBAAAA,CAAAA,EAhEJH,uBAgEIG,GAAAA,SAAAA;IAGHC,OAAAA,EAlEZL,cAkEYK;IAAeC,EAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;IAAYC,IAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;IAAcC,iBAAAA,CAAAA,EA/D1CN,MA+D0CM,CAAAA,MAAAA,EAAAA,OAAAA,CAAAA,GAAAA,SAAAA;;SAAkCE,KAAAA,YAAAA,GA7DzEN,WA6DyEM,GAAAA;;;;0BAzD5EN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkCEA;;;;;;;;;;;;;;8BAcEA;;;gCAGEA;;;8BAGFA;;;2BAGHC,eAAeC,YAAYC,cAAcC,gBAAgBC,kBAAkBC"}
|