@langchain/react 0.1.3 → 0.2.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/README.md +225 -14
- package/dist/context.cjs +108 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.cts +109 -0
- package/dist/context.d.cts.map +1 -0
- package/dist/context.d.ts +109 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +107 -0
- package/dist/context.js.map +1 -0
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/stream.cjs +0 -1
- package/dist/stream.cjs.map +1 -1
- package/dist/stream.custom.cjs +22 -2
- package/dist/stream.custom.cjs.map +1 -1
- package/dist/stream.custom.js +22 -1
- package/dist/stream.custom.js.map +1 -1
- package/dist/stream.d.cts +3 -3
- package/dist/stream.d.cts.map +1 -1
- package/dist/stream.d.ts +3 -3
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js.map +1 -1
- package/dist/stream.lgp.cjs +11 -2
- package/dist/stream.lgp.cjs.map +1 -1
- package/dist/stream.lgp.js +11 -1
- package/dist/stream.lgp.js.map +1 -1
- package/dist/suspense-stream.cjs +187 -0
- package/dist/suspense-stream.cjs.map +1 -0
- package/dist/suspense-stream.d.cts +62 -0
- package/dist/suspense-stream.d.cts.map +1 -0
- package/dist/suspense-stream.d.ts +62 -0
- package/dist/suspense-stream.d.ts.map +1 -0
- package/dist/suspense-stream.js +186 -0
- package/dist/suspense-stream.js.map +1 -0
- package/dist/thread.cjs +0 -1
- package/dist/thread.cjs.map +1 -1
- package/dist/types.d.cts +18 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +18 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -37
- package/dist/_virtual/_rolldown/runtime.cjs +0 -23
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.cts +0 -83
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts +0 -83
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.cts +0 -42
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts +0 -42
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/index.d.cts +0 -2
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/index.d.ts +0 -2
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.cts +0 -109
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.ts +0 -109
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/plugin.d.cts +0 -31
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/plugin.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/plugin.d.ts +0 -31
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/plugin.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.d.cts +0 -49
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.d.ts +0 -49
- package/dist/node_modules/.pnpm/@langchain_langgraph@1.2.1_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/ReactAgent.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/ReactAgent.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/index.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/index.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/contextEditing.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/contextEditing.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/hitl.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/hitl.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/llmToolSelector.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/llmToolSelector.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelCallLimit.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelCallLimit.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelFallback.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelFallback.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelRetry.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/modelRetry.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/pii.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/pii.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/piiRedaction.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/piiRedaction.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/summarization.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/summarization.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/todoListMiddleware.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/todoListMiddleware.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolCallLimit.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolCallLimit.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolEmulator.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolEmulator.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolRetry.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/toolRetry.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/types.d.cts +0 -2
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware/types.d.ts +0 -2
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware.d.cts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/middleware.d.ts +0 -1
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/types.d.cts +0 -2
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/agents/types.d.ts +0 -2
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/index.d.cts +0 -2
- package/dist/node_modules/.pnpm/langchain@1.2.30_@langchain_core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___openai@6.27_afd3ba7574abac8ef5d4f1eb16ab2ab0/node_modules/langchain/dist/index.d.ts +0 -2
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.cts +0 -155
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.ts +0 -155
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -13
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -13
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -63
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -63
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -5
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -5
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.cts +0 -64
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.ts +0 -64
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.cts +0 -106
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.ts +0 -106
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.cts +0 -291
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.ts +0 -291
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts +0 -29
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.ts +0 -29
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts +0 -29
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.ts +0 -29
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts +0 -105
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.ts +0 -105
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts +0 -70
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.ts +0 -70
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts +0 -24
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.ts +0 -24
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts +0 -97
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.ts +0 -97
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts +0 -79
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.ts +0 -79
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts +0 -52
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.ts +0 -52
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts +0 -17
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.ts +0 -17
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts +0 -9
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.ts +0 -9
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.ts.map +0 -1
- package/dist/react-ui/client.cjs +0 -136
- package/dist/react-ui/client.cjs.map +0 -1
- package/dist/react-ui/client.d.cts +0 -88
- package/dist/react-ui/client.d.cts.map +0 -1
- package/dist/react-ui/client.d.ts +0 -88
- package/dist/react-ui/client.d.ts.map +0 -1
- package/dist/react-ui/client.js +0 -130
- package/dist/react-ui/client.js.map +0 -1
- package/dist/react-ui/index.cjs +0 -14
- package/dist/react-ui/index.cjs.map +0 -1
- package/dist/react-ui/index.d.cts +0 -3
- package/dist/react-ui/index.d.ts +0 -3
- package/dist/react-ui/index.js +0 -8
- package/dist/react-ui/index.js.map +0 -1
- package/dist/react-ui/server/index.cjs +0 -5
- package/dist/react-ui/server/index.d.cts +0 -3
- package/dist/react-ui/server/index.d.ts +0 -3
- package/dist/react-ui/server/index.js +0 -3
- package/dist/react-ui/server/server.cjs +0 -56
- package/dist/react-ui/server/server.cjs.map +0 -1
- package/dist/react-ui/server/server.d.cts +0 -54
- package/dist/react-ui/server/server.d.cts.map +0 -1
- package/dist/react-ui/server/server.d.ts +0 -54
- package/dist/react-ui/server/server.d.ts.map +0 -1
- package/dist/react-ui/server/server.js +0 -55
- package/dist/react-ui/server/server.js.map +0 -1
- package/dist/react-ui/types.cjs +0 -37
- package/dist/react-ui/types.cjs.map +0 -1
- package/dist/react-ui/types.d.cts +0 -25
- package/dist/react-ui/types.d.cts.map +0 -1
- package/dist/react-ui/types.d.ts +0 -25
- package/dist/react-ui/types.d.ts.map +0 -1
- package/dist/react-ui/types.js +0 -35
- package/dist/react-ui/types.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomSubmitOptions, DefaultSubagentStates, GetConfigurableType, GetInterruptType, GetToolCallsType, GetUpdateType, MessageMetadata as MessageMetadata$1, QueueInterface, Sequence, StreamBase, SubagentStream, SubagentStreamInterface as SubagentStreamInterface$1, SubmitOptions, UseStreamCustomOptions } from "@langchain/langgraph-sdk/ui";
|
|
1
|
+
import { CustomSubmitOptions, DefaultSubagentStates, GetConfigurableType, GetInterruptType, GetToolCallsType, GetUpdateType, MessageMetadata as MessageMetadata$1, QueueInterface, Sequence, StreamBase, SubagentStream, SubagentStreamInterface as SubagentStreamInterface$1, SubmitOptions, UseStreamCustomOptions as UseStreamCustomOptions$1 } from "@langchain/langgraph-sdk/ui";
|
|
2
2
|
import { BaseMessage } from "@langchain/core/messages";
|
|
3
3
|
import { BagTemplate, Client, StreamEvent, StreamMode, ThreadState, ToolProgress } from "@langchain/langgraph-sdk";
|
|
4
4
|
|
|
@@ -80,6 +80,22 @@ interface UseStream<StateType extends Record<string, unknown> = Record<string, u
|
|
|
80
80
|
*/
|
|
81
81
|
queue: QueueInterface<StateType, SubmitOptions<StateType, GetConfigurableType<Bag>>>;
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Return type for {@link useSuspenseStream}.
|
|
85
|
+
*
|
|
86
|
+
* Identical to {@link UseStream} but without `isLoading`, `error`, and
|
|
87
|
+
* `isThreadLoading` (those states are handled by Suspense / Error Boundaries).
|
|
88
|
+
* An `isStreaming` flag is provided instead to indicate whether tokens are
|
|
89
|
+
* currently being received from the server.
|
|
90
|
+
*/
|
|
91
|
+
type UseSuspenseStream<StateType extends Record<string, unknown> = Record<string, unknown>, Bag extends BagTemplate = BagTemplate, SubagentStates extends Record<string, unknown> = DefaultSubagentStates> = Omit<UseStream<StateType, Bag, SubagentStates>, "isLoading" | "error" | "isThreadLoading"> & {
|
|
92
|
+
/**
|
|
93
|
+
* Whether the stream is currently receiving data from the server.
|
|
94
|
+
* Unlike Suspense-based loading, streaming is incremental and the
|
|
95
|
+
* component stays rendered throughout.
|
|
96
|
+
*/
|
|
97
|
+
isStreaming: boolean;
|
|
98
|
+
};
|
|
83
99
|
type UseStreamCustom<StateType extends Record<string, unknown> = Record<string, unknown>, Bag extends BagTemplate = BagTemplate, SubagentStates extends Record<string, unknown> = DefaultSubagentStates> = Pick<UseStream<StateType, Bag, SubagentStates>, "values" | "error" | "isLoading" | "stop" | "interrupt" | "interrupts" | "messages" | "toolCalls" | "getToolCalls" | "getMessagesMetadata" | "branch" | "setBranch" | "subagents" | "activeSubagents" | "getSubagent" | "getSubagentsByType" | "getSubagentsByMessage"> & {
|
|
84
100
|
submit: (values: GetUpdateType<Bag, StateType> | null | undefined, options?: CustomSubmitOptions<StateType, GetConfigurableType<Bag>>) => Promise<void>;
|
|
85
101
|
switchThread: (newThreadId: string | null) => void;
|
|
@@ -89,5 +105,5 @@ type UseStreamCustom<StateType extends Record<string, unknown> = Record<string,
|
|
|
89
105
|
queue: QueueInterface<StateType, CustomSubmitOptions<StateType, GetConfigurableType<Bag>>>;
|
|
90
106
|
};
|
|
91
107
|
//#endregion
|
|
92
|
-
export { type SubagentStream, type SubagentStreamInterface$1 as SubagentStreamInterface,
|
|
108
|
+
export { type SubagentStream, type SubagentStreamInterface$1 as SubagentStreamInterface, UseStream, UseStreamCustom, type UseStreamCustomOptions$1 as UseStreamCustomOptions, UseSuspenseStream };
|
|
93
109
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.tsx"],"mappings":";;;;;UAgFiB,SAAA,mBACG,MAAA,oBAA0B,MAAA,+BAChC,WAAA,GAAc,WAAA,yBACH,MAAA,oBAA0B,qBAAA,UACzC,IAAA,CACR,UAAA,CACE,SAAA,EACA,gBAAA,CAAiB,SAAA,GACjB,gBAAA,CAAiB,GAAA,GACjB,cAAA;EATa;;;EAgBf,QAAA,EAAU,WAAA;EAfkC;;;EAoB5C,eAAA;EAlBiD;;;EAuBjD,IAAA,QAAY,OAAA;EAlBO;;;EAuBnB,MAAA,GACE,MAAA,EAAQ,aAAA,CAAc,GAAA,EAAK,SAAA,sBAC3B,OAAA,GAAU,aAAA,CAAc,SAAA,EAAW,mBAAA,CAAoB,GAAA,OACpD,OAAA;EAlBK;;;EAuBV,MAAA;EAPU;;;EAYV,SAAA,GAAY,MAAA;EAXA;;;EAgBZ,OAAA,EAAS,WAAA,CAAY,SAAA;EAMa;;;;EAAlC,uBAAA,EAAyB,QAAA,CAAS,SAAA;EAkBpB;;;;;;;;EARd,mBAAA,GACE,OAAA,EAAS,WAAA,EACT,KAAA,cACG,iBAAA,CAAgB,SAAA;EA6CM;;;EAxC3B,YAAA,EAAc,YAAA;EArEF;;;EA0EZ,MAAA,EAAQ,MAAA;EA7EoC;;;EAkF5C,WAAA;EAhFA;;;EAqFA,UAAA,GACE,KAAA,UACA,WAAA,WACA,OAAA;IACE,UAAA,GAAa,UAAA,GAAa,UAAA;IAC1B,MAAA,IAAU,KAAA;MACR,EAAA;MACA,KAAA,EAAO,WAAA;MACP,IAAA;IAAA;EAAA,MAGD,OAAA;EAnFL;;;;EAyFA,YAAA,GAAe,WAAA;EA1Ef;;;;EAgFA,KAAA,EAAO,cAAA,CACL,SAAA,EACA,aAAA,CAAc,SAAA,EAAW,mBAAA,CAAoB,GAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.tsx"],"mappings":";;;;;UAgFiB,SAAA,mBACG,MAAA,oBAA0B,MAAA,+BAChC,WAAA,GAAc,WAAA,yBACH,MAAA,oBAA0B,qBAAA,UACzC,IAAA,CACR,UAAA,CACE,SAAA,EACA,gBAAA,CAAiB,SAAA,GACjB,gBAAA,CAAiB,GAAA,GACjB,cAAA;EATa;;;EAgBf,QAAA,EAAU,WAAA;EAfkC;;;EAoB5C,eAAA;EAlBiD;;;EAuBjD,IAAA,QAAY,OAAA;EAlBO;;;EAuBnB,MAAA,GACE,MAAA,EAAQ,aAAA,CAAc,GAAA,EAAK,SAAA,sBAC3B,OAAA,GAAU,aAAA,CAAc,SAAA,EAAW,mBAAA,CAAoB,GAAA,OACpD,OAAA;EAlBK;;;EAuBV,MAAA;EAPU;;;EAYV,SAAA,GAAY,MAAA;EAXA;;;EAgBZ,OAAA,EAAS,WAAA,CAAY,SAAA;EAMa;;;;EAAlC,uBAAA,EAAyB,QAAA,CAAS,SAAA;EAkBpB;;;;;;;;EARd,mBAAA,GACE,OAAA,EAAS,WAAA,EACT,KAAA,cACG,iBAAA,CAAgB,SAAA;EA6CM;;;EAxC3B,YAAA,EAAc,YAAA;EArEF;;;EA0EZ,MAAA,EAAQ,MAAA;EA7EoC;;;EAkF5C,WAAA;EAhFA;;;EAqFA,UAAA,GACE,KAAA,UACA,WAAA,WACA,OAAA;IACE,UAAA,GAAa,UAAA,GAAa,UAAA;IAC1B,MAAA,IAAU,KAAA;MACR,EAAA;MACA,KAAA,EAAO,WAAA;MACP,IAAA;IAAA;EAAA,MAGD,OAAA;EAnFL;;;;EAyFA,YAAA,GAAe,WAAA;EA1Ef;;;;EAgFA,KAAA,EAAO,cAAA,CACL,SAAA,EACA,aAAA,CAAc,SAAA,EAAW,mBAAA,CAAoB,GAAA;AAAA;;;;;;;;;KAYrC,iBAAA,mBACQ,MAAA,oBAA0B,MAAA,+BAChC,WAAA,GAAc,WAAA,yBACH,MAAA,oBAA0B,qBAAA,IAC/C,IAAA,CACF,SAAA,CAAU,SAAA,EAAW,GAAA,EAAK,cAAA;EAjFjB;;;;;EAyFT,WAAA;AAAA;AAAA,KAGU,eAAA,mBACQ,MAAA,oBAA0B,MAAA,+BAChC,WAAA,GAAc,WAAA,yBACH,MAAA,oBAA0B,qBAAA,IAC/C,IAAA,CACF,SAAA,CAAU,SAAA,EAAW,GAAA,EAAK,cAAA;EAmB1B,MAAA,GACE,MAAA,EAAQ,aAAA,CAAc,GAAA,EAAK,SAAA,sBAC3B,OAAA,GAAU,mBAAA,CAAoB,SAAA,EAAW,mBAAA,CAAoB,GAAA,OAC1D,OAAA;EAEL,YAAA,GAAe,WAAA;EAtGM;;;EA2GrB,KAAA,EAAO,cAAA,CACL,SAAA,EACA,mBAAA,CAAoB,SAAA,EAAW,mBAAA,CAAoB,GAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React integration for LangGraph & LangChain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,23 +10,19 @@
|
|
|
10
10
|
"directory": "libs/sdk-react"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"
|
|
14
|
-
"@langchain/langgraph-sdk": "^1.7.1"
|
|
13
|
+
"@langchain/langgraph-sdk": "^1.7.5"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@hono/node-server": "^1.19.11",
|
|
18
17
|
"@langchain/core": "^1.1.31",
|
|
19
|
-
"@langchain/scripts": "^0.1.4",
|
|
20
|
-
"@tsconfig/recommended": "^1.0.13",
|
|
21
18
|
"@types/node": "^25.4.0",
|
|
22
19
|
"@types/react": "^19.2.14",
|
|
23
|
-
"@types/react-dom": "^19.2.3",
|
|
24
20
|
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
|
25
21
|
"@typescript-eslint/parser": "^6.12.0",
|
|
26
22
|
"@vitejs/plugin-react": "^5.1.4",
|
|
27
23
|
"@vitest/browser": "^4.0.18",
|
|
28
24
|
"@vitest/browser-webdriverio": "^4.0.18",
|
|
29
|
-
"deepagents": "^1.8.
|
|
25
|
+
"deepagents": "^1.8.3",
|
|
30
26
|
"eslint": "^8.33.0",
|
|
31
27
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
32
28
|
"eslint-config-prettier": "^8.6.0",
|
|
@@ -38,20 +34,18 @@
|
|
|
38
34
|
"langchain": "^1.2.30",
|
|
39
35
|
"prettier": "^3.8.1",
|
|
40
36
|
"react": "^19.2.4",
|
|
41
|
-
"react-dom": "^19.2.4",
|
|
42
37
|
"typescript": "^5.9.3",
|
|
43
38
|
"vitest": "^4.0.18",
|
|
44
39
|
"vitest-browser-react": "^2.0.5",
|
|
45
40
|
"webdriverio": "^9.25.0",
|
|
46
41
|
"zod": "^4.3.6",
|
|
47
|
-
"@langchain/langgraph": "^1.2.
|
|
48
|
-
"@langchain/langgraph-api": "^1.1.
|
|
49
|
-
"@langchain/langgraph-checkpoint": "^1.0.
|
|
42
|
+
"@langchain/langgraph": "^1.2.4",
|
|
43
|
+
"@langchain/langgraph-api": "^1.1.16",
|
|
44
|
+
"@langchain/langgraph-checkpoint": "^1.0.1"
|
|
50
45
|
},
|
|
51
46
|
"peerDependencies": {
|
|
52
47
|
"@langchain/core": "^1.1.27",
|
|
53
|
-
"react": "^18 || ^19"
|
|
54
|
-
"react-dom": "^18 || ^19"
|
|
48
|
+
"react": "^18 || ^19"
|
|
55
49
|
},
|
|
56
50
|
"main": "./dist/index.js",
|
|
57
51
|
"types": "./dist/index.d.ts",
|
|
@@ -68,30 +62,6 @@
|
|
|
68
62
|
"default": "./dist/index.cjs"
|
|
69
63
|
}
|
|
70
64
|
},
|
|
71
|
-
"./react-ui": {
|
|
72
|
-
"input": "./src/react-ui/index.ts",
|
|
73
|
-
"typedoc": "./src/react-ui/index.ts",
|
|
74
|
-
"import": {
|
|
75
|
-
"types": "./dist/react-ui/index.d.ts",
|
|
76
|
-
"default": "./dist/react-ui/index.js"
|
|
77
|
-
},
|
|
78
|
-
"require": {
|
|
79
|
-
"types": "./dist/react-ui/index.d.cts",
|
|
80
|
-
"default": "./dist/react-ui/index.cjs"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"./react-ui/server": {
|
|
84
|
-
"input": "./src/react-ui/server/index.ts",
|
|
85
|
-
"typedoc": "./src/react-ui/server/index.ts",
|
|
86
|
-
"import": {
|
|
87
|
-
"types": "./dist/react-ui/server/index.d.ts",
|
|
88
|
-
"default": "./dist/react-ui/server/index.js"
|
|
89
|
-
},
|
|
90
|
-
"require": {
|
|
91
|
-
"types": "./dist/react-ui/server/index.d.cts",
|
|
92
|
-
"default": "./dist/react-ui/server/index.cjs"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
65
|
"./package.json": "./package.json"
|
|
96
66
|
},
|
|
97
67
|
"files": [
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.__toESM = __toESM;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts
|
|
2
|
-
//#region src/channels/base.d.ts
|
|
3
|
-
/** @internal */
|
|
4
|
-
declare abstract class BaseChannel<ValueType = unknown, UpdateType = unknown, CheckpointType = unknown> {
|
|
5
|
-
ValueType: ValueType;
|
|
6
|
-
UpdateType: UpdateType;
|
|
7
|
-
/**
|
|
8
|
-
* The name of the channel.
|
|
9
|
-
*/
|
|
10
|
-
abstract lc_graph_name: string;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
lg_is_channel: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Return a new identical channel, optionally initialized from a checkpoint.
|
|
15
|
-
* Can be thought of as a "restoration" from a checkpoint which is a "snapshot" of the channel's state.
|
|
16
|
-
*
|
|
17
|
-
* @param {CheckpointType | undefined} checkpoint
|
|
18
|
-
* @param {CheckpointType | undefined} initialValue
|
|
19
|
-
* @returns {this}
|
|
20
|
-
*/
|
|
21
|
-
abstract fromCheckpoint(checkpoint?: CheckpointType): this;
|
|
22
|
-
/**
|
|
23
|
-
* Update the channel's value with the given sequence of updates.
|
|
24
|
-
* The order of the updates in the sequence is arbitrary.
|
|
25
|
-
* This method is called by Pregel for all channels at the end of each step.
|
|
26
|
-
* If there are no updates, it is called with an empty sequence.
|
|
27
|
-
*
|
|
28
|
-
* Raises InvalidUpdateError if the sequence of updates is invalid.
|
|
29
|
-
* Returns True if the channel was updated, False otherwise.
|
|
30
|
-
*
|
|
31
|
-
* @throws {InvalidUpdateError} if the sequence of updates is invalid.
|
|
32
|
-
* @param {Array<UpdateType>} values
|
|
33
|
-
* @returns {void}
|
|
34
|
-
*/
|
|
35
|
-
abstract update(values: UpdateType[]): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Return the current value of the channel.
|
|
38
|
-
*
|
|
39
|
-
* @throws {EmptyChannelError} if the channel is empty (never updated yet).
|
|
40
|
-
* @returns {ValueType}
|
|
41
|
-
*/
|
|
42
|
-
abstract get(): ValueType;
|
|
43
|
-
/**
|
|
44
|
-
* Return a string representation of the channel's current state.
|
|
45
|
-
*
|
|
46
|
-
* @throws {EmptyChannelError} if the channel is empty (never updated yet), or doesn't support checkpoints.
|
|
47
|
-
* @returns {CheckpointType | undefined}
|
|
48
|
-
*/
|
|
49
|
-
abstract checkpoint(): CheckpointType | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Mark the current value of the channel as consumed. By default, no-op.
|
|
52
|
-
* A channel can use this method to modify its state, preventing the value
|
|
53
|
-
* from being consumed again.
|
|
54
|
-
*
|
|
55
|
-
* Returns True if the channel was updated, False otherwise.
|
|
56
|
-
*/
|
|
57
|
-
consume(): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Notify the channel that the Pregel run is finishing. By default, no-op.
|
|
60
|
-
* A channel can use this method to modify its state, preventing finish.
|
|
61
|
-
*
|
|
62
|
-
* Returns True if the channel was updated, False otherwise.
|
|
63
|
-
*/
|
|
64
|
-
finish(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Return True if the channel is available (not empty), False otherwise.
|
|
67
|
-
* Subclasses should override this method to provide a more efficient
|
|
68
|
-
* implementation than calling get() and catching EmptyChannelError.
|
|
69
|
-
*/
|
|
70
|
-
isAvailable(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Compare this channel with another channel for equality.
|
|
73
|
-
* Used to determine if two channels with the same key are semantically equivalent.
|
|
74
|
-
* Subclasses should override this method to provide a meaningful comparison.
|
|
75
|
-
*
|
|
76
|
-
* @param {BaseChannel} other - The other channel to compare with.
|
|
77
|
-
* @returns {boolean} True if the channels are equal, false otherwise.
|
|
78
|
-
*/
|
|
79
|
-
equals(other: BaseChannel): boolean;
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { BaseChannel };
|
|
83
|
-
//# sourceMappingURL=base.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.cts","names":["Checkpoint","ReadonlyCheckpoint","BaseChannel","ValueType","UpdateType","CheckpointType","lc_graph_name","lg_is_channel","fromCheckpoint","checkpoint","update","values","get","consume","finish","isAvailable","equals","other","emptyChannels","Cc","Record","channels","createCheckpoint","step","id","options"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts"],"x_google_ignoreList":[0],"mappings":";;;uBAIuBE,WAAAA;EACrBC,SAAAA,EAAWA,SAAAA;EACXC,UAAAA,EAAYA,UAAAA;EA6BYA;;;EAAAA,SAzBfE,aAAAA;EAqEgB;EAnEzBC,aAAAA;EARiCJ;;;;;;;;EAAAA,SAiBxBK,cAAAA,CAAeC,UAAAA,GAAaJ,cAAAA;EAA5BG;;;;;;;;;;;;;EAAAA,SAcAE,MAAAA,CAAOC,MAAAA,EAAQP,UAAAA;EA4CVF;;;;;;EAAAA,SArCLU,GAAAA,CAAAA,GAAOT,SAAAA;;;;;;;WAOPM,UAAAA,CAAAA,GAAcJ,cAAAA;;;;;;;;EAQvBQ,OAAAA,CAAAA;;;;;;;EAOAC,MAAAA,CAAAA;;;;;;EAMAC,WAAAA,CAAAA;;;;;;;;;EASAC,MAAAA,CAAOC,KAAAA,EAAOf,WAAAA;AAAAA"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts
|
|
2
|
-
//#region src/channels/base.d.ts
|
|
3
|
-
/** @internal */
|
|
4
|
-
declare abstract class BaseChannel<ValueType = unknown, UpdateType = unknown, CheckpointType = unknown> {
|
|
5
|
-
ValueType: ValueType;
|
|
6
|
-
UpdateType: UpdateType;
|
|
7
|
-
/**
|
|
8
|
-
* The name of the channel.
|
|
9
|
-
*/
|
|
10
|
-
abstract lc_graph_name: string;
|
|
11
|
-
/** @ignore */
|
|
12
|
-
lg_is_channel: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Return a new identical channel, optionally initialized from a checkpoint.
|
|
15
|
-
* Can be thought of as a "restoration" from a checkpoint which is a "snapshot" of the channel's state.
|
|
16
|
-
*
|
|
17
|
-
* @param {CheckpointType | undefined} checkpoint
|
|
18
|
-
* @param {CheckpointType | undefined} initialValue
|
|
19
|
-
* @returns {this}
|
|
20
|
-
*/
|
|
21
|
-
abstract fromCheckpoint(checkpoint?: CheckpointType): this;
|
|
22
|
-
/**
|
|
23
|
-
* Update the channel's value with the given sequence of updates.
|
|
24
|
-
* The order of the updates in the sequence is arbitrary.
|
|
25
|
-
* This method is called by Pregel for all channels at the end of each step.
|
|
26
|
-
* If there are no updates, it is called with an empty sequence.
|
|
27
|
-
*
|
|
28
|
-
* Raises InvalidUpdateError if the sequence of updates is invalid.
|
|
29
|
-
* Returns True if the channel was updated, False otherwise.
|
|
30
|
-
*
|
|
31
|
-
* @throws {InvalidUpdateError} if the sequence of updates is invalid.
|
|
32
|
-
* @param {Array<UpdateType>} values
|
|
33
|
-
* @returns {void}
|
|
34
|
-
*/
|
|
35
|
-
abstract update(values: UpdateType[]): boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Return the current value of the channel.
|
|
38
|
-
*
|
|
39
|
-
* @throws {EmptyChannelError} if the channel is empty (never updated yet).
|
|
40
|
-
* @returns {ValueType}
|
|
41
|
-
*/
|
|
42
|
-
abstract get(): ValueType;
|
|
43
|
-
/**
|
|
44
|
-
* Return a string representation of the channel's current state.
|
|
45
|
-
*
|
|
46
|
-
* @throws {EmptyChannelError} if the channel is empty (never updated yet), or doesn't support checkpoints.
|
|
47
|
-
* @returns {CheckpointType | undefined}
|
|
48
|
-
*/
|
|
49
|
-
abstract checkpoint(): CheckpointType | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Mark the current value of the channel as consumed. By default, no-op.
|
|
52
|
-
* A channel can use this method to modify its state, preventing the value
|
|
53
|
-
* from being consumed again.
|
|
54
|
-
*
|
|
55
|
-
* Returns True if the channel was updated, False otherwise.
|
|
56
|
-
*/
|
|
57
|
-
consume(): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Notify the channel that the Pregel run is finishing. By default, no-op.
|
|
60
|
-
* A channel can use this method to modify its state, preventing finish.
|
|
61
|
-
*
|
|
62
|
-
* Returns True if the channel was updated, False otherwise.
|
|
63
|
-
*/
|
|
64
|
-
finish(): boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Return True if the channel is available (not empty), False otherwise.
|
|
67
|
-
* Subclasses should override this method to provide a more efficient
|
|
68
|
-
* implementation than calling get() and catching EmptyChannelError.
|
|
69
|
-
*/
|
|
70
|
-
isAvailable(): boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Compare this channel with another channel for equality.
|
|
73
|
-
* Used to determine if two channels with the same key are semantically equivalent.
|
|
74
|
-
* Subclasses should override this method to provide a meaningful comparison.
|
|
75
|
-
*
|
|
76
|
-
* @param {BaseChannel} other - The other channel to compare with.
|
|
77
|
-
* @returns {boolean} True if the channels are equal, false otherwise.
|
|
78
|
-
*/
|
|
79
|
-
equals(other: BaseChannel): boolean;
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { BaseChannel };
|
|
83
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","names":["Checkpoint","ReadonlyCheckpoint","BaseChannel","ValueType","UpdateType","CheckpointType","lc_graph_name","lg_is_channel","fromCheckpoint","checkpoint","update","values","get","consume","finish","isAvailable","equals","other","emptyChannels","Cc","Record","channels","createCheckpoint","step","id","options"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/channels/base.d.ts"],"x_google_ignoreList":[0],"mappings":";;;uBAIuBE,WAAAA;EACrBC,SAAAA,EAAWA,SAAAA;EACXC,UAAAA,EAAYA,UAAAA;EA6BYA;;;EAAAA,SAzBfE,aAAAA;EAqEgB;EAnEzBC,aAAAA;EARiCJ;;;;;;;;EAAAA,SAiBxBK,cAAAA,CAAeC,UAAAA,GAAaJ,cAAAA;EAA5BG;;;;;;;;;;;;;EAAAA,SAcAE,MAAAA,CAAOC,MAAAA,EAAQP,UAAAA;EA4CVF;;;;;;EAAAA,SArCLU,GAAAA,CAAAA,GAAOT,SAAAA;;;;;;;WAOPM,UAAAA,CAAAA,GAAcJ,cAAAA;;;;;;;;EAQvBQ,OAAAA,CAAAA;;;;;;;EAOAC,MAAAA,CAAAA;;;;;;EAMAC,WAAAA,CAAAA;;;;;;;;;EASAC,MAAAA,CAAOC,KAAAA,EAAOf,WAAAA;AAAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts
|
|
2
|
-
declare const OVERWRITE = "__overwrite__";
|
|
3
|
-
/**
|
|
4
|
-
* An object representing a direct overwrite of a value for a channel.
|
|
5
|
-
* Used to signal that the channel value should be replaced with the given value,
|
|
6
|
-
* bypassing any reducer or binary operator logic.
|
|
7
|
-
*
|
|
8
|
-
* @template ValueType - The type of the value being overwritten.
|
|
9
|
-
* @property {ValueType} [OVERWRITE] - The value to directly set.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* const overwriteObj: OverwriteValue<number> = { __overwrite__: 123 };
|
|
13
|
-
*/
|
|
14
|
-
interface OverwriteValue<ValueType> {
|
|
15
|
-
[OVERWRITE]: ValueType;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Bypass a reducer and write the wrapped value directly to a
|
|
19
|
-
* {@link BinaryOperatorAggregate} channel.
|
|
20
|
-
*
|
|
21
|
-
* Receiving multiple `Overwrite` values for the same channel in a single
|
|
22
|
-
* super-step will raise an {@link InvalidUpdateError}.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import { Annotation, StateGraph, Overwrite } from "@langchain/langgraph";
|
|
27
|
-
*
|
|
28
|
-
* const State = Annotation.Root({
|
|
29
|
-
* messages: Annotation<string[]>({
|
|
30
|
-
* reducer: (a, b) => a.concat(b),
|
|
31
|
-
* default: () => [],
|
|
32
|
-
* }),
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* const replaceMessages = (_state: typeof State.State) => {
|
|
36
|
-
* return { messages: new Overwrite(["replacement"]) };
|
|
37
|
-
* };
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
//#endregion
|
|
41
|
-
export { OverwriteValue };
|
|
42
|
-
//# sourceMappingURL=constants.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.cts","names":["PendingWrite","START","END","INTERRUPT","PREVIOUS","COMMAND_SYMBOL","CommandInstance","Resume","Update","Nodes","Record","CommandParams","constructor","args","SendInterface","Node","Args","node","Send","lg_name","toJSON","OVERWRITE","OverwriteValue","ValueType","Overwrite","value","__overwrite__","isInstance","Interrupt","Value","id","isInterrupted","values","resume","graph","update","goto","Command","Omit","lc_direct_tool_output","PARENT","_updateAsTuples","isCommand","x"],"sources":["../../../../../../../../../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts"],"x_google_ignoreList":[0],"mappings":";cA2FcqB,SAAAA;;;;;;;;;;;;UAYJC,cAAAA;EAAAA,CACPD,SAAAA,GAAYE,SAAAA;AAAAA"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts
|
|
2
|
-
declare const OVERWRITE = "__overwrite__";
|
|
3
|
-
/**
|
|
4
|
-
* An object representing a direct overwrite of a value for a channel.
|
|
5
|
-
* Used to signal that the channel value should be replaced with the given value,
|
|
6
|
-
* bypassing any reducer or binary operator logic.
|
|
7
|
-
*
|
|
8
|
-
* @template ValueType - The type of the value being overwritten.
|
|
9
|
-
* @property {ValueType} [OVERWRITE] - The value to directly set.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* const overwriteObj: OverwriteValue<number> = { __overwrite__: 123 };
|
|
13
|
-
*/
|
|
14
|
-
interface OverwriteValue<ValueType> {
|
|
15
|
-
[OVERWRITE]: ValueType;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Bypass a reducer and write the wrapped value directly to a
|
|
19
|
-
* {@link BinaryOperatorAggregate} channel.
|
|
20
|
-
*
|
|
21
|
-
* Receiving multiple `Overwrite` values for the same channel in a single
|
|
22
|
-
* super-step will raise an {@link InvalidUpdateError}.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import { Annotation, StateGraph, Overwrite } from "@langchain/langgraph";
|
|
27
|
-
*
|
|
28
|
-
* const State = Annotation.Root({
|
|
29
|
-
* messages: Annotation<string[]>({
|
|
30
|
-
* reducer: (a, b) => a.concat(b),
|
|
31
|
-
* default: () => [],
|
|
32
|
-
* }),
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* const replaceMessages = (_state: typeof State.State) => {
|
|
36
|
-
* return { messages: new Overwrite(["replacement"]) };
|
|
37
|
-
* };
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
//#endregion
|
|
41
|
-
export { OverwriteValue };
|
|
42
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","names":["PendingWrite","START","END","INTERRUPT","PREVIOUS","COMMAND_SYMBOL","CommandInstance","Resume","Update","Nodes","Record","CommandParams","constructor","args","SendInterface","Node","Args","node","Send","lg_name","toJSON","OVERWRITE","OverwriteValue","ValueType","Overwrite","value","__overwrite__","isInstance","Interrupt","Value","id","isInterrupted","values","resume","graph","update","goto","Command","Omit","lc_direct_tool_output","PARENT","_updateAsTuples","isCommand","x"],"sources":["../../../../../../../../../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/constants.d.ts"],"x_google_ignoreList":[0],"mappings":";cA2FcqB,SAAAA;;;;;;;;;;;;UAYJC,cAAAA;EAAAA,CACPD,SAAAA,GAAYE,SAAAA;AAAAA"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { BaseChannel } from "../../channels/base.cjs";
|
|
2
|
-
import { OverwriteValue } from "../../constants.cjs";
|
|
3
|
-
import { InteropZodObject, InteropZodObjectShape, InteropZodType } from "@langchain/core/utils/types";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.ts
|
|
6
|
-
/** @internal */
|
|
7
|
-
type ReducedZodChannel<T extends InteropZodType, TReducerSchema extends InteropZodType> = T & {
|
|
8
|
-
lg_reducer_schema: TReducerSchema;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
type InteropZodToStateDefinition<T extends InteropZodObject, TShape = InteropZodObjectShape<T>> = { [key in keyof TShape]: TShape[key] extends ReducedZodChannel<infer Schema, infer ReducerSchema> ? Schema extends InteropZodType<infer V> ? ReducerSchema extends InteropZodType<infer U> ? BaseChannel<V, OverwriteValue<V> | U> : never : never : TShape[key] extends InteropZodType<infer V, infer U> ? BaseChannel<V, U> : never };
|
|
12
|
-
interface SchemaMeta<TValue = any, TUpdate = TValue> {
|
|
13
|
-
jsonSchemaExtra?: {
|
|
14
|
-
langgraph_nodes?: string[];
|
|
15
|
-
langgraph_type?: "prompt" | "messages";
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
reducer?: {
|
|
19
|
-
schema?: InteropZodType<TUpdate>;
|
|
20
|
-
fn: (a: TValue, b: TUpdate) => TValue;
|
|
21
|
-
};
|
|
22
|
-
default?: () => TValue;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A registry for storing and managing metadata associated with schemas.
|
|
26
|
-
* This class provides methods to get, extend, remove, and check metadata for a given schema.
|
|
27
|
-
*/
|
|
28
|
-
declare class SchemaMetaRegistry {
|
|
29
|
-
/**
|
|
30
|
-
* Internal map storing schema metadata.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
_map: Map<InteropZodType, SchemaMeta<any, any>>;
|
|
34
|
-
/**
|
|
35
|
-
* Cache for extended schemas.
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
|
-
_extensionCache: Map<string, Map<InteropZodType, InteropZodType>>;
|
|
39
|
-
/**
|
|
40
|
-
* Retrieves the metadata associated with a given schema.
|
|
41
|
-
* @template TValue The value type of the schema.
|
|
42
|
-
* @template TUpdate The update type of the schema (defaults to TValue).
|
|
43
|
-
* @param schema The schema to retrieve metadata for.
|
|
44
|
-
* @returns The associated SchemaMeta, or undefined if not present.
|
|
45
|
-
*/
|
|
46
|
-
get<TValue, TUpdate = TValue>(schema: InteropZodType<TValue>): SchemaMeta<TValue, TUpdate> | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Extends or sets the metadata for a given schema.
|
|
49
|
-
* @template TValue The value type of the schema.
|
|
50
|
-
* @template TUpdate The update type of the schema (defaults to TValue).
|
|
51
|
-
* @param schema The schema to extend metadata for.
|
|
52
|
-
* @param predicate A function that receives the existing metadata (or undefined) and returns the new metadata.
|
|
53
|
-
*/
|
|
54
|
-
extend<TValue, TUpdate>(schema: InteropZodType<TValue>, predicate: (meta: SchemaMeta<TValue, TUpdate> | undefined) => SchemaMeta<TValue, TUpdate>): void;
|
|
55
|
-
/**
|
|
56
|
-
* Removes the metadata associated with a given schema.
|
|
57
|
-
* @param schema The schema to remove metadata for.
|
|
58
|
-
* @returns The SchemaMetaRegistry instance (for chaining).
|
|
59
|
-
*/
|
|
60
|
-
remove(schema: InteropZodType): this;
|
|
61
|
-
/**
|
|
62
|
-
* Checks if metadata exists for a given schema.
|
|
63
|
-
* @param schema The schema to check.
|
|
64
|
-
* @returns True if metadata exists, false otherwise.
|
|
65
|
-
*/
|
|
66
|
-
has(schema: InteropZodType): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Returns a mapping of channel instances for each property in the schema
|
|
69
|
-
* using the associated metadata in the registry.
|
|
70
|
-
*
|
|
71
|
-
* This is used to create the `channels` object that's passed to the `Graph` constructor.
|
|
72
|
-
*
|
|
73
|
-
* @template T The shape of the schema.
|
|
74
|
-
* @param schema The schema to extract channels from.
|
|
75
|
-
* @returns A mapping from property names to channel instances.
|
|
76
|
-
*/
|
|
77
|
-
getChannelsForSchema<T extends InteropZodObject>(schema: T): InteropZodToStateDefinition<T>;
|
|
78
|
-
/**
|
|
79
|
-
* Returns a modified schema that introspectively looks at all keys of the provided
|
|
80
|
-
* object schema, and applies the augmentations based on meta provided with those keys
|
|
81
|
-
* in the registry and the selectors provided in the `effects` parameter.
|
|
82
|
-
*
|
|
83
|
-
* This assumes that the passed in schema is the "root" schema object for a graph where
|
|
84
|
-
* the keys of the schema are the channels of the graph. Because we need to represent
|
|
85
|
-
* the input of a graph in a couple of different ways, the `effects` parameter allows
|
|
86
|
-
* us to apply those augmentations based on pre determined conditions.
|
|
87
|
-
*
|
|
88
|
-
* @param schema The root schema object to extend.
|
|
89
|
-
* @param effects The effects that are being applied.
|
|
90
|
-
* @returns The extended schema.
|
|
91
|
-
*/
|
|
92
|
-
getExtendedChannelSchemas<T extends InteropZodObject>(schema: T, effects: {
|
|
93
|
-
/**
|
|
94
|
-
* Augments the shape by using the reducer's schema if it exists
|
|
95
|
-
*/
|
|
96
|
-
withReducerSchema?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Applies the stringified jsonSchemaExtra as a description to the schema.
|
|
99
|
-
*/
|
|
100
|
-
withJsonSchemaExtrasAsDescription?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Applies the `.partial()` modifier to the schema.
|
|
103
|
-
*/
|
|
104
|
-
asPartial?: boolean;
|
|
105
|
-
}): InteropZodObject;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
export { InteropZodToStateDefinition, ReducedZodChannel, SchemaMeta, SchemaMetaRegistry };
|
|
109
|
-
//# sourceMappingURL=meta.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.cts","names":["BaseChannel","OverwriteValue","InteropZodObject","InteropZodObjectShape","InteropZodType","META_EXTRAS_DESCRIPTION_PREFIX","ReducedZodChannel","T","TReducerSchema","lg_reducer_schema","InteropZodToStateDefinition","TShape","key","V","U","Schema","ReducerSchema","UpdateType","SchemaMeta","TValue","TUpdate","jsonSchemaExtra","langgraph_nodes","langgraph_type","reducer","schema","fn","a","b","default","SchemaMetaRegistry","Map","_map","_extensionCache","get","extend","meta","predicate","remove","has","getChannelsForSchema","getExtendedChannelSchemas","withReducerSchema","withJsonSchemaExtrasAsDescription","asPartial","effects","schemaMetaRegistry","withLangGraph","TSchema"],"sources":["../../../../../../../../../../../../node_modules/.pnpm/@langchain+langgraph@1.2.1_@langchain+core@1.1.31_openai@6.27.0_ws@8.19.0_zod@4.3.6___z_dc6decfb18baf112a7d3c3203e2e3228/node_modules/@langchain/langgraph/dist/graph/zod/meta.d.ts"],"x_google_ignoreList":[0],"mappings":";;;;;;KAOKM,iBAAAA,WAA4BF,cAAAA,yBAAuCA,cAAAA,IAAkBG,CAAAA;EACxFE,iBAAAA,EAAmBD,cAAAA;AAAAA;;KAGhBE,2BAAAA,WAAsCR,gBAAAA,WAA2BC,qBAAAA,CAAsBI,CAAAA,qBAAsBI,MAAAA,GAASA,MAAAA,CAAOC,GAAAA,UAAaN,iBAAAA,sCAAuDS,MAAAA,SAAeX,cAAAA,YAA0BY,aAAAA,SAAsBZ,cAAAA,YAA0BJ,WAAAA,CAAYa,CAAAA,EAAGZ,cAAAA,CAAeY,CAAAA,IAAKC,CAAAA,oBAAqBH,MAAAA,CAAOC,GAAAA,UAAaR,cAAAA,qBAAmCJ,WAAAA,CAAYa,CAAAA,EAAGC,CAAAA;AAAAA,UAEnZI,UAAAA,yBAAmCC,MAAAA;EAC3CE,eAAAA;IACEC,eAAAA;IACAC,cAAAA;IAAAA,CACCX,GAAAA;EAAAA;EAEHY,OAAAA;IACEC,MAAAA,GAASrB,cAAAA,CAAegB,OAAAA;IACxBM,EAAAA,GAAKC,CAAAA,EAAGR,MAAAA,EAAQS,CAAAA,EAAGR,OAAAA,KAAYD,MAAAA;EAAAA;EAEjCU,OAAAA,SAAgBV,MAAAA;AAAAA;;;;;cAMJW,kBAAAA;EAlB6GnB;;;;EAuBzHqB,IAAAA,EAAMD,GAAAA,CAAI3B,cAAAA,EAAgBc,UAAAA;EAvB+QL;;;;EA4BzSoB,eAAAA,EAAiBF,GAAAA,SAAYA,GAAAA,CAAI3B,cAAAA,EAAgBA,cAAAA;EA5BoSO;;;;;;;EAoCrVuB,GAAAA,mBAAsBf,MAAAA,CAAAA,CAAQM,MAAAA,EAAQrB,cAAAA,CAAee,MAAAA,IAAUD,UAAAA,CAAWC,MAAAA,EAAQC,OAAAA;EApCnDb;;;;;;;EA4C/B4B,MAAAA,iBAAAA,CAAwBV,MAAAA,EAAQrB,cAAAA,CAAee,MAAAA,GAASkB,SAAAA,GAAYD,IAAAA,EAAMlB,UAAAA,CAAWC,MAAAA,EAAQC,OAAAA,kBAAyBF,UAAAA,CAAWC,MAAAA,EAAQC,OAAAA;EA5CTR;;;;;EAkDhI0B,MAAAA,CAAOb,MAAAA,EAAQrB,cAAAA;EAlDyNS;;;;;EAwDxO0B,GAAAA,CAAId,MAAAA,EAAQrB,cAAAA;EAxDgSH;;;;;;;;;;EAmE5SuC,oBAAAA,WAA+BtC,gBAAAA,CAAAA,CAAkBuB,MAAAA,EAAQlB,CAAAA,GAAIG,2BAAAA,CAA4BH,CAAAA;EAnEmU;;AAC/C;;;;;;;;;;;;EAiF7WkC,yBAAAA,WAAoCvC,gBAAAA,CAAAA,CAAkBuB,MAAAA,EAAQlB,CAAAA,EAAGsC,OAAAA;IAhFhCzB;;;IAoF/BsB,iBAAAA;IAjFAnB;;;IAqFAoB,iCAAAA;IAjFSvC;;;IAqFTwC,SAAAA;EAAAA,IACE1C,gBAAAA;AAAAA"}
|