langchain 0.3.31 → 1.0.0-alpha.1
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/dist/_virtual/rolldown_runtime.cjs +38 -0
- package/dist/_virtual/rolldown_runtime.js +34 -0
- package/dist/agents/ReactAgent.cjs +247 -0
- package/dist/agents/ReactAgent.cjs.map +1 -0
- package/dist/agents/ReactAgent.d.cts +68 -0
- package/dist/agents/ReactAgent.d.cts.map +1 -0
- package/dist/agents/ReactAgent.d.ts +68 -0
- package/dist/agents/ReactAgent.d.ts.map +1 -0
- package/dist/agents/ReactAgent.js +246 -0
- package/dist/agents/ReactAgent.js.map +1 -0
- package/dist/agents/RunnableCallable.cjs +30 -0
- package/dist/agents/RunnableCallable.cjs.map +1 -0
- package/dist/agents/RunnableCallable.d.cts +34 -0
- package/dist/agents/RunnableCallable.d.cts.map +1 -0
- package/dist/agents/RunnableCallable.d.ts +34 -0
- package/dist/agents/RunnableCallable.d.ts.map +1 -0
- package/dist/agents/RunnableCallable.js +29 -0
- package/dist/agents/RunnableCallable.js.map +1 -0
- package/dist/agents/annotation.cjs +29 -0
- package/dist/agents/annotation.cjs.map +1 -0
- package/dist/agents/annotation.d.cts +38 -0
- package/dist/agents/annotation.d.cts.map +1 -0
- package/dist/agents/annotation.d.ts +38 -0
- package/dist/agents/annotation.d.ts.map +1 -0
- package/dist/agents/annotation.js +28 -0
- package/dist/agents/annotation.js.map +1 -0
- package/dist/agents/constants.cjs +7 -0
- package/dist/agents/constants.cjs.map +1 -0
- package/dist/agents/constants.js +6 -0
- package/dist/agents/constants.js.map +1 -0
- package/dist/agents/errors.cjs +49 -0
- package/dist/agents/errors.cjs.map +1 -0
- package/dist/agents/errors.d.cts +25 -0
- package/dist/agents/errors.d.cts.map +1 -0
- package/dist/agents/errors.d.ts +25 -0
- package/dist/agents/errors.d.ts.map +1 -0
- package/dist/agents/errors.js +45 -0
- package/dist/agents/errors.js.map +1 -0
- package/dist/agents/index.cjs +16 -59
- package/dist/agents/index.cjs.map +1 -0
- package/dist/agents/index.d.cts +98 -0
- package/dist/agents/index.d.cts.map +1 -0
- package/dist/agents/index.d.ts +98 -20
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +14 -19
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/interrupt.cjs +2 -0
- package/dist/agents/interrupt.d.cts +79 -0
- package/dist/agents/interrupt.d.cts.map +1 -0
- package/dist/agents/interrupt.d.ts +82 -0
- package/dist/agents/interrupt.d.ts.map +1 -0
- package/dist/agents/interrupt.js +1 -0
- package/dist/agents/nodes/AgentNode.cjs +266 -0
- package/dist/agents/nodes/AgentNode.cjs.map +1 -0
- package/dist/agents/nodes/AgentNode.js +265 -0
- package/dist/agents/nodes/AgentNode.js.map +1 -0
- package/dist/agents/nodes/ToolNode.cjs +169 -0
- package/dist/agents/nodes/ToolNode.cjs.map +1 -0
- package/dist/agents/nodes/ToolNode.d.cts +98 -0
- package/dist/agents/nodes/ToolNode.d.cts.map +1 -0
- package/dist/agents/nodes/ToolNode.d.ts +98 -0
- package/dist/agents/nodes/ToolNode.d.ts.map +1 -0
- package/dist/agents/nodes/ToolNode.js +168 -0
- package/dist/agents/nodes/ToolNode.js.map +1 -0
- package/dist/agents/nodes/utils.cjs +17 -0
- package/dist/agents/nodes/utils.cjs.map +1 -0
- package/dist/agents/nodes/utils.js +16 -0
- package/dist/agents/nodes/utils.js.map +1 -0
- package/dist/agents/responses.cjs +167 -0
- package/dist/agents/responses.cjs.map +1 -0
- package/dist/agents/responses.d.cts +121 -0
- package/dist/agents/responses.d.cts.map +1 -0
- package/dist/agents/responses.d.ts +121 -0
- package/dist/agents/responses.d.ts.map +1 -0
- package/dist/agents/responses.js +162 -0
- package/dist/agents/responses.js.map +1 -0
- package/dist/agents/types.d.cts +261 -0
- package/dist/agents/types.d.cts.map +1 -0
- package/dist/agents/types.d.ts +252 -84
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/utils.cjs +254 -0
- package/dist/agents/utils.cjs.map +1 -0
- package/dist/agents/utils.js +246 -0
- package/dist/agents/utils.js.map +1 -0
- package/dist/agents/withAgentName.cjs +39 -0
- package/dist/agents/withAgentName.cjs.map +1 -0
- package/dist/agents/withAgentName.js +38 -0
- package/dist/agents/withAgentName.js.map +1 -0
- package/dist/chains/analyze_documents_chain.cjs +81 -97
- package/dist/chains/analyze_documents_chain.cjs.map +1 -0
- package/dist/chains/analyze_documents_chain.d.cts +58 -0
- package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
- package/dist/chains/analyze_documents_chain.d.ts +27 -21
- package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
- package/dist/chains/analyze_documents_chain.js +80 -93
- package/dist/chains/analyze_documents_chain.js.map +1 -0
- package/dist/chains/api/api_chain.cjs +98 -118
- package/dist/chains/api/api_chain.cjs.map +1 -0
- package/dist/chains/api/api_chain.d.cts +63 -0
- package/dist/chains/api/api_chain.d.cts.map +1 -0
- package/dist/chains/api/api_chain.d.ts +47 -41
- package/dist/chains/api/api_chain.d.ts.map +1 -0
- package/dist/chains/api/api_chain.js +97 -113
- package/dist/chains/api/api_chain.js.map +1 -0
- package/dist/chains/api/prompts.cjs +22 -13
- package/dist/chains/api/prompts.cjs.map +1 -0
- package/dist/chains/api/prompts.js +19 -9
- package/dist/chains/api/prompts.js.map +1 -0
- package/dist/chains/base.cjs +178 -232
- package/dist/chains/base.cjs.map +1 -0
- package/dist/chains/base.d.cts +88 -0
- package/dist/chains/base.d.cts.map +1 -0
- package/dist/chains/base.d.ts +81 -76
- package/dist/chains/base.d.ts.map +1 -0
- package/dist/chains/base.js +177 -195
- package/dist/chains/base.js.map +1 -0
- package/dist/chains/chat_vector_db_chain.cjs +116 -163
- package/dist/chains/chat_vector_db_chain.cjs.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.cts +62 -0
- package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
- package/dist/chains/chat_vector_db_chain.d.ts +53 -47
- package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
- package/dist/chains/chat_vector_db_chain.js +113 -157
- package/dist/chains/chat_vector_db_chain.js.map +1 -0
- package/dist/chains/combine_docs_chain.cjs +271 -397
- package/dist/chains/combine_docs_chain.cjs.map +1 -0
- package/dist/chains/combine_docs_chain.d.cts +126 -0
- package/dist/chains/combine_docs_chain.d.cts.map +1 -0
- package/dist/chains/combine_docs_chain.d.ts +92 -86
- package/dist/chains/combine_docs_chain.d.ts.map +1 -0
- package/dist/chains/combine_docs_chain.js +267 -390
- package/dist/chains/combine_docs_chain.js.map +1 -0
- package/dist/chains/combine_documents/base.cjs +21 -18
- package/dist/chains/combine_documents/base.cjs.map +1 -0
- package/dist/chains/combine_documents/base.js +16 -13
- package/dist/chains/combine_documents/base.js.map +1 -0
- package/dist/chains/combine_documents/index.cjs +16 -5
- package/dist/chains/combine_documents/index.cjs.map +1 -0
- package/dist/chains/combine_documents/index.d.cts +2 -0
- package/dist/chains/combine_documents/index.d.ts +2 -1
- package/dist/chains/combine_documents/index.js +10 -1
- package/dist/chains/combine_documents/index.js.map +1 -0
- package/dist/chains/combine_documents/reduce.cjs +66 -64
- package/dist/chains/combine_documents/reduce.cjs.map +1 -0
- package/dist/chains/combine_documents/reduce.d.cts +36 -0
- package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
- package/dist/chains/combine_documents/reduce.d.ts +10 -2
- package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
- package/dist/chains/combine_documents/reduce.js +60 -61
- package/dist/chains/combine_documents/reduce.js.map +1 -0
- package/dist/chains/combine_documents/stuff.cjs +39 -39
- package/dist/chains/combine_documents/stuff.cjs.map +1 -0
- package/dist/chains/combine_documents/stuff.d.cts +40 -0
- package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
- package/dist/chains/combine_documents/stuff.d.ts +21 -9
- package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
- package/dist/chains/combine_documents/stuff.js +38 -36
- package/dist/chains/combine_documents/stuff.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.cjs +129 -159
- package/dist/chains/constitutional_ai/constitutional_chain.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts +79 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts +46 -40
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_chain.js +127 -153
- package/dist/chains/constitutional_ai/constitutional_chain.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.cjs +320 -332
- package/dist/chains/constitutional_ai/constitutional_principle.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts +50 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts +20 -10
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.js +318 -328
- package/dist/chains/constitutional_ai/constitutional_principle.js.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.cjs +68 -59
- package/dist/chains/constitutional_ai/constitutional_prompts.cjs.map +1 -0
- package/dist/chains/constitutional_ai/constitutional_prompts.js +65 -55
- package/dist/chains/constitutional_ai/constitutional_prompts.js.map +1 -0
- package/dist/chains/conversation.cjs +43 -40
- package/dist/chains/conversation.cjs.map +1 -0
- package/dist/chains/conversation.d.cts +34 -0
- package/dist/chains/conversation.d.cts.map +1 -0
- package/dist/chains/conversation.d.ts +14 -4
- package/dist/chains/conversation.d.ts.map +1 -0
- package/dist/chains/conversation.js +40 -35
- package/dist/chains/conversation.js.map +1 -0
- package/dist/chains/conversational_retrieval_chain.cjs +210 -277
- package/dist/chains/conversational_retrieval_chain.cjs.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.cts +152 -0
- package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.d.ts +66 -60
- package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
- package/dist/chains/conversational_retrieval_chain.js +207 -271
- package/dist/chains/conversational_retrieval_chain.js.map +1 -0
- package/dist/chains/graph_qa/cypher.cjs +130 -178
- package/dist/chains/graph_qa/cypher.cjs.map +1 -0
- package/dist/chains/graph_qa/cypher.d.cts +76 -0
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
- package/dist/chains/graph_qa/cypher.d.ts +46 -38
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
- package/dist/chains/graph_qa/cypher.js +122 -173
- package/dist/chains/graph_qa/cypher.js.map +1 -0
- package/dist/chains/graph_qa/prompts.cjs +15 -10
- package/dist/chains/graph_qa/prompts.cjs.map +1 -0
- package/dist/chains/graph_qa/prompts.js +12 -6
- package/dist/chains/graph_qa/prompts.js.map +1 -0
- package/dist/chains/history_aware_retriever.cjs +53 -51
- package/dist/chains/history_aware_retriever.cjs.map +1 -0
- package/dist/chains/history_aware_retriever.d.cts +64 -0
- package/dist/chains/history_aware_retriever.d.cts.map +1 -0
- package/dist/chains/history_aware_retriever.d.ts +32 -22
- package/dist/chains/history_aware_retriever.d.ts.map +1 -0
- package/dist/chains/history_aware_retriever.js +46 -47
- package/dist/chains/history_aware_retriever.js.map +1 -0
- package/dist/chains/index.cjs +109 -62
- package/dist/chains/index.cjs.map +1 -0
- package/dist/chains/index.d.cts +26 -0
- package/dist/chains/index.d.ts +26 -25
- package/dist/chains/index.js +69 -24
- package/dist/chains/index.js.map +1 -0
- package/dist/chains/llm_chain.cjs +149 -214
- package/dist/chains/llm_chain.cjs.map +1 -0
- package/dist/chains/llm_chain.d.cts +97 -0
- package/dist/chains/llm_chain.d.cts.map +1 -0
- package/dist/chains/llm_chain.d.ts +69 -64
- package/dist/chains/llm_chain.d.ts.map +1 -0
- package/dist/chains/llm_chain.js +147 -209
- package/dist/chains/llm_chain.js.map +1 -0
- package/dist/chains/load.cjs +42 -33
- package/dist/chains/load.cjs.map +1 -0
- package/dist/chains/load.d.cts +30 -0
- package/dist/chains/load.d.cts.map +1 -0
- package/dist/chains/load.d.ts +8 -1
- package/dist/chains/load.d.ts.map +1 -0
- package/dist/chains/load.js +34 -27
- package/dist/chains/load.js.map +1 -0
- package/dist/chains/openai_functions/base.cjs +133 -137
- package/dist/chains/openai_functions/base.cjs.map +1 -0
- package/dist/chains/openai_functions/base.d.cts +172 -0
- package/dist/chains/openai_functions/base.d.cts.map +1 -0
- package/dist/chains/openai_functions/base.d.ts +59 -41
- package/dist/chains/openai_functions/base.d.ts.map +1 -0
- package/dist/chains/openai_functions/base.js +132 -134
- package/dist/chains/openai_functions/base.js.map +1 -0
- package/dist/chains/openai_functions/extraction.cjs +58 -60
- package/dist/chains/openai_functions/extraction.cjs.map +1 -0
- package/dist/chains/openai_functions/extraction.d.cts +31 -0
- package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
- package/dist/chains/openai_functions/extraction.d.ts +14 -5
- package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
- package/dist/chains/openai_functions/extraction.js +56 -56
- package/dist/chains/openai_functions/extraction.js.map +1 -0
- package/dist/chains/openai_functions/index.cjs +38 -17
- package/dist/chains/openai_functions/index.cjs.map +1 -0
- package/dist/chains/openai_functions/index.d.cts +6 -0
- package/dist/chains/openai_functions/index.d.ts +6 -5
- package/dist/chains/openai_functions/index.js +24 -5
- package/dist/chains/openai_functions/index.js.map +1 -0
- package/dist/chains/openai_functions/openapi.cjs +271 -388
- package/dist/chains/openai_functions/openapi.cjs.map +1 -0
- package/dist/chains/openai_functions/openapi.d.cts +61 -0
- package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
- package/dist/chains/openai_functions/openapi.d.ts +32 -24
- package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
- package/dist/chains/openai_functions/openapi.js +268 -382
- package/dist/chains/openai_functions/openapi.js.map +1 -0
- package/dist/chains/openai_functions/structured_output.cjs +98 -140
- package/dist/chains/openai_functions/structured_output.cjs.map +1 -0
- package/dist/chains/openai_functions/structured_output.d.cts +38 -0
- package/dist/chains/openai_functions/structured_output.d.cts.map +1 -0
- package/dist/chains/openai_functions/structured_output.d.ts +20 -41
- package/dist/chains/openai_functions/structured_output.d.ts.map +1 -0
- package/dist/chains/openai_functions/structured_output.js +96 -134
- package/dist/chains/openai_functions/structured_output.js.map +1 -0
- package/dist/chains/openai_functions/tagging.cjs +59 -59
- package/dist/chains/openai_functions/tagging.cjs.map +1 -0
- package/dist/chains/openai_functions/tagging.d.cts +49 -0
- package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
- package/dist/chains/openai_functions/tagging.d.ts +17 -8
- package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
- package/dist/chains/openai_functions/tagging.js +57 -55
- package/dist/chains/openai_functions/tagging.js.map +1 -0
- package/dist/chains/openai_moderation.cjs +105 -161
- package/dist/chains/openai_moderation.cjs.map +1 -0
- package/dist/chains/openai_moderation.d.cts +74 -0
- package/dist/chains/openai_moderation.d.cts.map +1 -0
- package/dist/chains/openai_moderation.d.ts +34 -28
- package/dist/chains/openai_moderation.d.ts.map +1 -0
- package/dist/chains/openai_moderation.js +103 -156
- package/dist/chains/openai_moderation.js.map +1 -0
- package/dist/chains/query_constructor/index.cjs +136 -145
- package/dist/chains/query_constructor/index.cjs.map +1 -0
- package/dist/chains/query_constructor/index.d.cts +80 -0
- package/dist/chains/query_constructor/index.d.cts.map +1 -0
- package/dist/chains/query_constructor/index.d.ts +57 -49
- package/dist/chains/query_constructor/index.d.ts.map +1 -0
- package/dist/chains/query_constructor/index.js +121 -134
- package/dist/chains/query_constructor/index.js.map +1 -0
- package/dist/chains/query_constructor/ir.cjs +22 -17
- package/dist/chains/query_constructor/ir.cjs.map +1 -0
- package/dist/chains/query_constructor/ir.d.cts +1 -0
- package/dist/chains/query_constructor/ir.d.ts +1 -1
- package/dist/chains/query_constructor/ir.js +12 -1
- package/dist/chains/query_constructor/ir.js.map +1 -0
- package/dist/chains/query_constructor/parser.cjs +78 -123
- package/dist/chains/query_constructor/parser.cjs.map +1 -0
- package/dist/chains/query_constructor/parser.d.cts +43 -0
- package/dist/chains/query_constructor/parser.d.cts.map +1 -0
- package/dist/chains/query_constructor/parser.d.ts +34 -28
- package/dist/chains/query_constructor/parser.d.ts.map +1 -0
- package/dist/chains/query_constructor/parser.js +78 -120
- package/dist/chains/query_constructor/parser.js.map +1 -0
- package/dist/chains/query_constructor/prompt.cjs +39 -31
- package/dist/chains/query_constructor/prompt.cjs.map +1 -0
- package/dist/chains/query_constructor/prompt.d.cts +22 -0
- package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
- package/dist/chains/query_constructor/prompt.d.ts +19 -17
- package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
- package/dist/chains/query_constructor/prompt.js +33 -27
- package/dist/chains/query_constructor/prompt.js.map +1 -0
- package/dist/chains/question_answering/load.cjs +88 -77
- package/dist/chains/question_answering/load.cjs.map +1 -0
- package/dist/chains/question_answering/load.d.cts +72 -0
- package/dist/chains/question_answering/load.d.cts.map +1 -0
- package/dist/chains/question_answering/load.d.ts +31 -24
- package/dist/chains/question_answering/load.d.ts.map +1 -0
- package/dist/chains/question_answering/load.js +87 -72
- package/dist/chains/question_answering/load.js.map +1 -0
- package/dist/chains/question_answering/map_reduce_prompts.cjs +18 -30
- package/dist/chains/question_answering/map_reduce_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/map_reduce_prompts.js +16 -27
- package/dist/chains/question_answering/map_reduce_prompts.js.map +1 -0
- package/dist/chains/question_answering/refine_prompts.cjs +30 -33
- package/dist/chains/question_answering/refine_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/refine_prompts.js +28 -30
- package/dist/chains/question_answering/refine_prompts.js.map +1 -0
- package/dist/chains/question_answering/stuff_prompts.cjs +15 -15
- package/dist/chains/question_answering/stuff_prompts.cjs.map +1 -0
- package/dist/chains/question_answering/stuff_prompts.js +14 -12
- package/dist/chains/question_answering/stuff_prompts.js.map +1 -0
- package/dist/chains/retrieval.cjs +51 -55
- package/dist/chains/retrieval.cjs.map +1 -0
- package/dist/chains/retrieval.d.cts +77 -0
- package/dist/chains/retrieval.d.cts.map +1 -0
- package/dist/chains/retrieval.d.ts +44 -32
- package/dist/chains/retrieval.d.ts.map +1 -0
- package/dist/chains/retrieval.js +45 -52
- package/dist/chains/retrieval.js.map +1 -0
- package/dist/chains/retrieval_qa.cjs +104 -125
- package/dist/chains/retrieval_qa.cjs.map +1 -0
- package/dist/chains/retrieval_qa.d.cts +81 -0
- package/dist/chains/retrieval_qa.d.cts.map +1 -0
- package/dist/chains/retrieval_qa.d.ts +40 -34
- package/dist/chains/retrieval_qa.d.ts.map +1 -0
- package/dist/chains/retrieval_qa.js +104 -121
- package/dist/chains/retrieval_qa.js.map +1 -0
- package/dist/chains/router/llm_router.cjs +48 -45
- package/dist/chains/router/llm_router.cjs.map +1 -0
- package/dist/chains/router/llm_router.d.cts +54 -0
- package/dist/chains/router/llm_router.d.cts.map +1 -0
- package/dist/chains/router/llm_router.d.ts +34 -28
- package/dist/chains/router/llm_router.d.ts.map +1 -0
- package/dist/chains/router/llm_router.js +48 -41
- package/dist/chains/router/llm_router.js.map +1 -0
- package/dist/chains/router/multi_prompt.cjs +114 -128
- package/dist/chains/router/multi_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_prompt.d.cts +76 -0
- package/dist/chains/router/multi_prompt.d.cts.map +1 -0
- package/dist/chains/router/multi_prompt.d.ts +47 -33
- package/dist/chains/router/multi_prompt.d.ts.map +1 -0
- package/dist/chains/router/multi_prompt.js +110 -121
- package/dist/chains/router/multi_prompt.js.map +1 -0
- package/dist/chains/router/multi_prompt_prompt.cjs +4 -24
- package/dist/chains/router/multi_prompt_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_prompt_prompt.js +6 -23
- package/dist/chains/router/multi_prompt_prompt.js.map +1 -0
- package/dist/chains/router/multi_retrieval_prompt.cjs +4 -24
- package/dist/chains/router/multi_retrieval_prompt.cjs.map +1 -0
- package/dist/chains/router/multi_retrieval_prompt.js +6 -23
- package/dist/chains/router/multi_retrieval_prompt.js.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.cjs +135 -151
- package/dist/chains/router/multi_retrieval_qa.cjs.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts +100 -0
- package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.d.ts +57 -43
- package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
- package/dist/chains/router/multi_retrieval_qa.js +131 -144
- package/dist/chains/router/multi_retrieval_qa.js.map +1 -0
- package/dist/chains/router/multi_route.cjs +66 -96
- package/dist/chains/router/multi_route.cjs.map +1 -0
- package/dist/chains/router/multi_route.d.cts +69 -0
- package/dist/chains/router/multi_route.d.cts.map +1 -0
- package/dist/chains/router/multi_route.d.ts +36 -31
- package/dist/chains/router/multi_route.d.ts.map +1 -0
- package/dist/chains/router/multi_route.js +66 -92
- package/dist/chains/router/multi_route.js.map +1 -0
- package/dist/chains/router/utils.cjs +16 -31
- package/dist/chains/router/utils.cjs.map +1 -0
- package/dist/chains/router/utils.js +16 -29
- package/dist/chains/router/utils.js.map +1 -0
- package/dist/chains/sequential_chain.cjs +247 -316
- package/dist/chains/sequential_chain.cjs.map +1 -0
- package/dist/chains/sequential_chain.d.cts +158 -0
- package/dist/chains/sequential_chain.d.cts.map +1 -0
- package/dist/chains/sequential_chain.d.ts +54 -48
- package/dist/chains/sequential_chain.d.ts.map +1 -0
- package/dist/chains/sequential_chain.js +246 -311
- package/dist/chains/sequential_chain.js.map +1 -0
- package/dist/chains/serde.d.cts +156 -0
- package/dist/chains/serde.d.cts.map +1 -0
- package/dist/chains/serde.d.ts +59 -53
- package/dist/chains/serde.d.ts.map +1 -0
- package/dist/chains/sql_db/index.cjs +35 -14
- package/dist/chains/sql_db/index.cjs.map +1 -0
- package/dist/chains/sql_db/index.d.cts +3 -0
- package/dist/chains/sql_db/index.d.ts +3 -2
- package/dist/chains/sql_db/index.js +21 -2
- package/dist/chains/sql_db/index.js.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.cjs +189 -263
- package/dist/chains/sql_db/sql_db_chain.cjs.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts +124 -0
- package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.d.ts +62 -53
- package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_chain.js +185 -256
- package/dist/chains/sql_db/sql_db_chain.js.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.cjs +78 -33
- package/dist/chains/sql_db/sql_db_prompt.cjs.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts +44 -0
- package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.d.ts +37 -38
- package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
- package/dist/chains/sql_db/sql_db_prompt.js +69 -29
- package/dist/chains/sql_db/sql_db_prompt.js.map +1 -0
- package/dist/chains/summarization/load.cjs +71 -57
- package/dist/chains/summarization/load.cjs.map +1 -0
- package/dist/chains/summarization/load.d.cts +33 -0
- package/dist/chains/summarization/load.d.cts.map +1 -0
- package/dist/chains/summarization/load.d.ts +22 -16
- package/dist/chains/summarization/load.d.ts.map +1 -0
- package/dist/chains/summarization/load.js +70 -52
- package/dist/chains/summarization/load.js.map +1 -0
- package/dist/chains/summarization/refine_prompts.cjs +11 -7
- package/dist/chains/summarization/refine_prompts.cjs.map +1 -0
- package/dist/chains/summarization/refine_prompts.js +9 -3
- package/dist/chains/summarization/refine_prompts.js.map +1 -0
- package/dist/chains/summarization/stuff_prompts.cjs +11 -8
- package/dist/chains/summarization/stuff_prompts.cjs.map +1 -0
- package/dist/chains/summarization/stuff_prompts.js +9 -4
- package/dist/chains/summarization/stuff_prompts.js.map +1 -0
- package/dist/chains/transform.cjs +41 -54
- package/dist/chains/transform.cjs.map +1 -0
- package/dist/chains/transform.d.cts +44 -0
- package/dist/chains/transform.d.cts.map +1 -0
- package/dist/chains/transform.d.ts +22 -16
- package/dist/chains/transform.d.ts.map +1 -0
- package/dist/chains/transform.js +41 -50
- package/dist/chains/transform.js.map +1 -0
- package/dist/chains/vector_db_qa.cjs +93 -122
- package/dist/chains/vector_db_qa.cjs.map +1 -0
- package/dist/chains/vector_db_qa.d.cts +66 -0
- package/dist/chains/vector_db_qa.d.cts.map +1 -0
- package/dist/chains/vector_db_qa.d.ts +43 -37
- package/dist/chains/vector_db_qa.d.ts.map +1 -0
- package/dist/chains/vector_db_qa.js +92 -117
- package/dist/chains/vector_db_qa.js.map +1 -0
- package/dist/chat_models/universal.cjs +533 -679
- package/dist/chat_models/universal.cjs.map +1 -0
- package/dist/chat_models/universal.d.cts +213 -0
- package/dist/chat_models/universal.d.cts.map +1 -0
- package/dist/chat_models/universal.d.ts +187 -94
- package/dist/chat_models/universal.d.ts.map +1 -0
- package/dist/chat_models/universal.js +525 -642
- package/dist/chat_models/universal.js.map +1 -0
- package/dist/document.cjs +21 -5
- package/dist/document.cjs.map +1 -0
- package/dist/document.d.cts +2 -0
- package/dist/document.d.ts +2 -1
- package/dist/document.js +10 -1
- package/dist/document.js.map +1 -0
- package/dist/document_loaders/base.cjs +22 -17
- package/dist/document_loaders/base.cjs.map +1 -0
- package/dist/document_loaders/base.d.cts +1 -0
- package/dist/document_loaders/base.d.ts +1 -1
- package/dist/document_loaders/base.js +12 -1
- package/dist/document_loaders/base.js.map +1 -0
- package/dist/document_loaders/fs/buffer.cjs +67 -95
- package/dist/document_loaders/fs/buffer.cjs.map +1 -0
- package/dist/document_loaders/fs/buffer.d.cts +46 -0
- package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
- package/dist/document_loaders/fs/buffer.d.ts +37 -31
- package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
- package/dist/document_loaders/fs/buffer.js +61 -58
- package/dist/document_loaders/fs/buffer.js.map +1 -0
- package/dist/document_loaders/fs/directory.cjs +112 -164
- package/dist/document_loaders/fs/directory.cjs.map +1 -0
- package/dist/document_loaders/fs/directory.d.cts +77 -0
- package/dist/document_loaders/fs/directory.d.cts.map +1 -0
- package/dist/document_loaders/fs/directory.d.ts +47 -39
- package/dist/document_loaders/fs/directory.d.ts.map +1 -0
- package/dist/document_loaders/fs/directory.js +106 -128
- package/dist/document_loaders/fs/directory.js.map +1 -0
- package/dist/document_loaders/fs/json.cjs +119 -144
- package/dist/document_loaders/fs/json.cjs.map +1 -0
- package/dist/document_loaders/fs/json.d.cts +65 -0
- package/dist/document_loaders/fs/json.d.cts.map +1 -0
- package/dist/document_loaders/fs/json.d.ts +48 -42
- package/dist/document_loaders/fs/json.d.ts.map +1 -0
- package/dist/document_loaders/fs/json.js +112 -136
- package/dist/document_loaders/fs/json.js.map +1 -0
- package/dist/document_loaders/fs/multi_file.cjs +80 -96
- package/dist/document_loaders/fs/multi_file.cjs.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.cts +43 -0
- package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
- package/dist/document_loaders/fs/multi_file.d.ts +23 -17
- package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
- package/dist/document_loaders/fs/multi_file.js +73 -91
- package/dist/document_loaders/fs/multi_file.js.map +1 -0
- package/dist/document_loaders/fs/text.cjs +99 -129
- package/dist/document_loaders/fs/text.cjs.map +1 -0
- package/dist/document_loaders/fs/text.d.cts +57 -0
- package/dist/document_loaders/fs/text.d.cts.map +1 -0
- package/dist/document_loaders/fs/text.d.ts +42 -36
- package/dist/document_loaders/fs/text.d.ts.map +1 -0
- package/dist/document_loaders/fs/text.js +92 -91
- package/dist/document_loaders/fs/text.js.map +1 -0
- package/dist/embeddings/cache_backed.cjs +138 -141
- package/dist/embeddings/cache_backed.cjs.map +1 -0
- package/dist/embeddings/cache_backed.d.cts +107 -0
- package/dist/embeddings/cache_backed.d.cts.map +1 -0
- package/dist/embeddings/cache_backed.d.ts +53 -47
- package/dist/embeddings/cache_backed.d.ts.map +1 -0
- package/dist/embeddings/cache_backed.js +132 -137
- package/dist/embeddings/cache_backed.js.map +1 -0
- package/dist/embeddings/fake.cjs +22 -17
- package/dist/embeddings/fake.cjs.map +1 -0
- package/dist/embeddings/fake.d.cts +1 -0
- package/dist/embeddings/fake.d.ts +1 -1
- package/dist/embeddings/fake.js +12 -1
- package/dist/embeddings/fake.js.map +1 -0
- package/dist/evaluation/agents/index.cjs +1 -17
- package/dist/evaluation/agents/index.js +1 -1
- package/dist/evaluation/agents/prompt.cjs +19 -18
- package/dist/evaluation/agents/prompt.cjs.map +1 -0
- package/dist/evaluation/agents/prompt.js +17 -15
- package/dist/evaluation/agents/prompt.js.map +1 -0
- package/dist/evaluation/agents/trajectory.cjs +124 -181
- package/dist/evaluation/agents/trajectory.cjs.map +1 -0
- package/dist/evaluation/agents/trajectory.d.cts +61 -0
- package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
- package/dist/evaluation/agents/trajectory.d.ts +48 -42
- package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
- package/dist/evaluation/agents/trajectory.js +121 -175
- package/dist/evaluation/agents/trajectory.js.map +1 -0
- package/dist/evaluation/base.cjs +159 -264
- package/dist/evaluation/base.cjs.map +1 -0
- package/dist/evaluation/base.d.cts +240 -0
- package/dist/evaluation/base.d.cts.map +1 -0
- package/dist/evaluation/base.d.ts +170 -163
- package/dist/evaluation/base.d.ts.map +1 -0
- package/dist/evaluation/base.js +156 -255
- package/dist/evaluation/base.js.map +1 -0
- package/dist/evaluation/comparison/index.cjs +1 -17
- package/dist/evaluation/comparison/index.js +1 -1
- package/dist/evaluation/comparison/pairwise.cjs +172 -238
- package/dist/evaluation/comparison/pairwise.cjs.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.cts +56 -0
- package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
- package/dist/evaluation/comparison/pairwise.d.ts +39 -33
- package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
- package/dist/evaluation/comparison/pairwise.js +168 -231
- package/dist/evaluation/comparison/pairwise.js.map +1 -0
- package/dist/evaluation/comparison/prompt.cjs +26 -23
- package/dist/evaluation/comparison/prompt.cjs.map +1 -0
- package/dist/evaluation/comparison/prompt.js +23 -19
- package/dist/evaluation/comparison/prompt.js.map +1 -0
- package/dist/evaluation/criteria/criteria.cjs +159 -254
- package/dist/evaluation/criteria/criteria.cjs.map +1 -0
- package/dist/evaluation/criteria/criteria.d.cts +85 -0
- package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
- package/dist/evaluation/criteria/criteria.d.ts +69 -57
- package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
- package/dist/evaluation/criteria/criteria.js +155 -247
- package/dist/evaluation/criteria/criteria.js.map +1 -0
- package/dist/evaluation/criteria/index.cjs +1 -17
- package/dist/evaluation/criteria/index.js +1 -1
- package/dist/evaluation/criteria/prompt.cjs +24 -10
- package/dist/evaluation/criteria/prompt.cjs.map +1 -0
- package/dist/evaluation/criteria/prompt.js +21 -6
- package/dist/evaluation/criteria/prompt.js.map +1 -0
- package/dist/evaluation/embedding_distance/base.cjs +101 -156
- package/dist/evaluation/embedding_distance/base.cjs.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.cts +82 -0
- package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
- package/dist/evaluation/embedding_distance/base.d.ts +46 -41
- package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
- package/dist/evaluation/embedding_distance/base.js +97 -149
- package/dist/evaluation/embedding_distance/base.js.map +1 -0
- package/dist/evaluation/embedding_distance/index.cjs +1 -17
- package/dist/evaluation/embedding_distance/index.js +1 -1
- package/dist/evaluation/index.cjs +54 -23
- package/dist/evaluation/index.cjs.map +1 -0
- package/dist/evaluation/index.d.cts +8 -0
- package/dist/evaluation/index.d.ts +8 -7
- package/dist/evaluation/index.js +35 -7
- package/dist/evaluation/index.js.map +1 -0
- package/dist/evaluation/loader.cjs +59 -56
- package/dist/evaluation/loader.cjs.map +1 -0
- package/dist/evaluation/loader.d.cts +32 -0
- package/dist/evaluation/loader.d.cts.map +1 -0
- package/dist/evaluation/loader.d.ts +22 -17
- package/dist/evaluation/loader.d.ts.map +1 -0
- package/dist/evaluation/loader.js +58 -53
- package/dist/evaluation/loader.js.map +1 -0
- package/dist/evaluation/qa/eval_chain.cjs +39 -36
- package/dist/evaluation/qa/eval_chain.cjs.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.cts +22 -0
- package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
- package/dist/evaluation/qa/eval_chain.d.ts +18 -13
- package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
- package/dist/evaluation/qa/eval_chain.js +39 -32
- package/dist/evaluation/qa/eval_chain.js.map +1 -0
- package/dist/evaluation/qa/index.cjs +1 -5
- package/dist/evaluation/qa/index.js +1 -1
- package/dist/evaluation/qa/prompt.cjs +15 -22
- package/dist/evaluation/qa/prompt.cjs.map +1 -0
- package/dist/evaluation/qa/prompt.js +13 -18
- package/dist/evaluation/qa/prompt.js.map +1 -0
- package/dist/evaluation/types.d.cts +40 -0
- package/dist/evaluation/types.d.cts.map +1 -0
- package/dist/evaluation/types.d.ts +38 -33
- package/dist/evaluation/types.d.ts.map +1 -0
- package/dist/hub/base.cjs +100 -150
- package/dist/hub/base.cjs.map +1 -0
- package/dist/hub/base.d.cts +29 -0
- package/dist/hub/base.d.cts.map +1 -0
- package/dist/hub/base.d.ts +20 -22
- package/dist/hub/base.d.ts.map +1 -0
- package/dist/hub/base.js +98 -146
- package/dist/hub/base.js.map +1 -0
- package/dist/hub/index.cjs +46 -50
- package/dist/hub/index.cjs.map +1 -0
- package/dist/hub/index.d.cts +32 -0
- package/dist/hub/index.d.cts.map +1 -0
- package/dist/hub/index.d.ts +14 -8
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +45 -46
- package/dist/hub/index.js.map +1 -0
- package/dist/hub/node.cjs +32 -86
- package/dist/hub/node.cjs.map +1 -0
- package/dist/hub/node.d.cts +23 -0
- package/dist/hub/node.d.cts.map +1 -0
- package/dist/hub/node.d.ts +11 -6
- package/dist/hub/node.d.ts.map +1 -0
- package/dist/hub/node.js +31 -50
- package/dist/hub/node.js.map +1 -0
- package/dist/index.cjs +118 -2
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -0
- package/dist/langchain-core/dist/load/map_keys.d.cts +10 -0
- package/dist/langchain-core/dist/load/map_keys.d.cts.map +1 -0
- package/dist/langchain-core/dist/load/serializable.d.cts +82 -0
- package/dist/langchain-core/dist/load/serializable.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/base.d.cts +134 -0
- package/dist/langchain-core/dist/messages/base.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/base.d.cts +22 -0
- package/dist/langchain-core/dist/messages/content/base.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/data.d.cts +96 -0
- package/dist/langchain-core/dist/messages/content/data.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/index.d.cts +102 -0
- package/dist/langchain-core/dist/messages/content/index.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts +110 -0
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts.map +1 -0
- package/dist/langchain-core/dist/messages/content/tools.d.cts +153 -0
- package/dist/langchain-core/dist/messages/content/tools.d.cts.map +1 -0
- package/dist/langchain-core/dist/prompt_values.d.cts +13 -0
- package/dist/langchain-core/dist/prompt_values.d.cts.map +1 -0
- package/dist/langchain-core/dist/utils/types/index.d.cts +8 -0
- package/dist/langchain-core/dist/utils/types/index.d.cts.map +1 -0
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts +10 -0
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/load/serializable.d.ts +82 -0
- package/dist/libs/langchain-core/dist/load/serializable.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/base.d.ts +134 -0
- package/dist/libs/langchain-core/dist/messages/base.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts +22 -0
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts +96 -0
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts +102 -0
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +110 -0
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +153 -0
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/prompt_values.d.ts +13 -0
- package/dist/libs/langchain-core/dist/prompt_values.d.ts.map +1 -0
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts +8 -0
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts.map +1 -0
- package/dist/load/import_constants.cjs +31 -30
- package/dist/load/import_constants.cjs.map +1 -0
- package/dist/load/import_constants.js +30 -27
- package/dist/load/import_constants.js.map +1 -0
- package/dist/load/import_map.cjs +224 -211
- package/dist/load/import_map.cjs.map +1 -0
- package/dist/load/import_map.js +215 -170
- package/dist/load/import_map.js.map +1 -0
- package/dist/load/import_type.d.cts +6 -0
- package/dist/load/import_type.d.cts.map +1 -0
- package/dist/load/import_type.d.ts +6 -5
- package/dist/load/import_type.d.ts.map +1 -0
- package/dist/load/index.cjs +28 -60
- package/dist/load/index.cjs.map +1 -0
- package/dist/load/index.d.cts +23 -0
- package/dist/load/index.d.cts.map +1 -0
- package/dist/load/index.d.ts +13 -1
- package/dist/load/index.d.ts.map +1 -0
- package/dist/load/index.js +26 -23
- package/dist/load/index.js.map +1 -0
- package/dist/load/map_keys.d.cts +8 -0
- package/dist/load/map_keys.d.cts.map +1 -0
- package/dist/load/map_keys.d.ts +7 -2
- package/dist/load/map_keys.d.ts.map +1 -0
- package/dist/load/serializable.cjs +22 -17
- package/dist/load/serializable.cjs.map +1 -0
- package/dist/load/serializable.d.cts +10 -0
- package/dist/load/serializable.d.cts.map +1 -0
- package/dist/load/serializable.d.ts +9 -0
- package/dist/load/serializable.d.ts.map +1 -0
- package/dist/load/serializable.js +12 -1
- package/dist/load/serializable.js.map +1 -0
- package/dist/memory/buffer_memory.cjs +78 -94
- package/dist/memory/buffer_memory.cjs.map +1 -0
- package/dist/memory/buffer_memory.d.cts +67 -0
- package/dist/memory/buffer_memory.d.cts.map +1 -0
- package/dist/memory/buffer_memory.d.ts +25 -19
- package/dist/memory/buffer_memory.d.ts.map +1 -0
- package/dist/memory/buffer_memory.js +77 -90
- package/dist/memory/buffer_memory.js.map +1 -0
- package/dist/memory/buffer_token_memory.cjs +78 -105
- package/dist/memory/buffer_token_memory.cjs.map +1 -0
- package/dist/memory/buffer_token_memory.d.cts +67 -0
- package/dist/memory/buffer_token_memory.d.cts.map +1 -0
- package/dist/memory/buffer_token_memory.d.ts +41 -30
- package/dist/memory/buffer_token_memory.d.ts.map +1 -0
- package/dist/memory/buffer_token_memory.js +77 -101
- package/dist/memory/buffer_token_memory.js.map +1 -0
- package/dist/memory/buffer_window_memory.cjs +75 -96
- package/dist/memory/buffer_window_memory.cjs.map +1 -0
- package/dist/memory/buffer_window_memory.d.cts +64 -0
- package/dist/memory/buffer_window_memory.d.cts.map +1 -0
- package/dist/memory/buffer_window_memory.d.ts +29 -23
- package/dist/memory/buffer_window_memory.d.ts.map +1 -0
- package/dist/memory/buffer_window_memory.js +74 -92
- package/dist/memory/buffer_window_memory.js.map +1 -0
- package/dist/memory/chat_memory.cjs +51 -61
- package/dist/memory/chat_memory.cjs.map +1 -0
- package/dist/memory/chat_memory.d.cts +42 -0
- package/dist/memory/chat_memory.d.cts.map +1 -0
- package/dist/memory/chat_memory.d.ts +29 -23
- package/dist/memory/chat_memory.d.ts.map +1 -0
- package/dist/memory/chat_memory.js +46 -58
- package/dist/memory/chat_memory.js.map +1 -0
- package/dist/memory/combined_memory.cjs +86 -121
- package/dist/memory/combined_memory.cjs.map +1 -0
- package/dist/memory/combined_memory.d.cts +60 -0
- package/dist/memory/combined_memory.d.cts.map +1 -0
- package/dist/memory/combined_memory.d.ts +47 -41
- package/dist/memory/combined_memory.d.ts.map +1 -0
- package/dist/memory/combined_memory.js +86 -117
- package/dist/memory/combined_memory.js.map +1 -0
- package/dist/memory/entity_memory.cjs +142 -200
- package/dist/memory/entity_memory.cjs.map +1 -0
- package/dist/memory/entity_memory.d.cts +99 -0
- package/dist/memory/entity_memory.d.cts.map +1 -0
- package/dist/memory/entity_memory.d.ts +58 -47
- package/dist/memory/entity_memory.d.ts.map +1 -0
- package/dist/memory/entity_memory.js +140 -195
- package/dist/memory/entity_memory.js.map +1 -0
- package/dist/memory/index.cjs +85 -31
- package/dist/memory/index.cjs.map +1 -0
- package/dist/memory/index.d.cts +14 -0
- package/dist/memory/index.d.ts +14 -12
- package/dist/memory/index.js +39 -12
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/prompt.cjs +35 -24
- package/dist/memory/prompt.cjs.map +1 -0
- package/dist/memory/prompt.d.cts +12 -0
- package/dist/memory/prompt.d.cts.map +1 -0
- package/dist/memory/prompt.d.ts +11 -22
- package/dist/memory/prompt.d.ts.map +1 -0
- package/dist/memory/prompt.js +30 -20
- package/dist/memory/prompt.js.map +1 -0
- package/dist/memory/stores/entity/base.cjs +11 -9
- package/dist/memory/stores/entity/base.cjs.map +1 -0
- package/dist/memory/stores/entity/base.d.cts +18 -0
- package/dist/memory/stores/entity/base.d.cts.map +1 -0
- package/dist/memory/stores/entity/base.d.ts +12 -6
- package/dist/memory/stores/entity/base.d.ts.map +1 -0
- package/dist/memory/stores/entity/base.js +10 -5
- package/dist/memory/stores/entity/base.js.map +1 -0
- package/dist/memory/stores/entity/in_memory.cjs +62 -65
- package/dist/memory/stores/entity/in_memory.cjs.map +1 -0
- package/dist/memory/stores/entity/in_memory.js +62 -61
- package/dist/memory/stores/entity/in_memory.js.map +1 -0
- package/dist/memory/summary.cjs +124 -151
- package/dist/memory/summary.cjs.map +1 -0
- package/dist/memory/summary.d.cts +101 -0
- package/dist/memory/summary.d.cts.map +1 -0
- package/dist/memory/summary.d.ts +53 -48
- package/dist/memory/summary.d.ts.map +1 -0
- package/dist/memory/summary.js +121 -145
- package/dist/memory/summary.js.map +1 -0
- package/dist/memory/summary_buffer.cjs +115 -137
- package/dist/memory/summary_buffer.cjs.map +1 -0
- package/dist/memory/summary_buffer.d.cts +90 -0
- package/dist/memory/summary_buffer.d.cts.map +1 -0
- package/dist/memory/summary_buffer.d.ts +44 -38
- package/dist/memory/summary_buffer.d.ts.map +1 -0
- package/dist/memory/summary_buffer.js +114 -133
- package/dist/memory/summary_buffer.js.map +1 -0
- package/dist/memory/vector_store.cjs +85 -116
- package/dist/memory/vector_store.cjs.map +1 -0
- package/dist/memory/vector_store.d.cts +81 -0
- package/dist/memory/vector_store.d.cts.map +1 -0
- package/dist/memory/vector_store.d.ts +41 -37
- package/dist/memory/vector_store.d.ts.map +1 -0
- package/dist/memory/vector_store.js +84 -112
- package/dist/memory/vector_store.js.map +1 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +248 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +244 -0
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +3040 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +3039 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs +71 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js +38 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs +221 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js +221 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +11 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs +701 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js +700 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs +7 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js +6 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs +29 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js +28 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs +115 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js +113 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs +14 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js +13 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs +94 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js +94 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js +135 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs +89 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js +86 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +140 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs +18 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js +16 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs +10 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js +10 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs +30 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js +30 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs +13 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js +12 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js.map +1 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +6 -0
- package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +6 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +27 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +23 -0
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +267 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +263 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +32 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +28 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +49 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +45 -0
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +1 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +52 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +48 -0
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +90 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +86 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +294 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +290 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +191 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +187 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +51 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +47 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +48 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +44 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +43 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +39 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +29 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +24 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +146 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +142 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +15 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +47 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +43 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +94 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +90 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +37 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +55 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +51 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +74 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +70 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +48 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +44 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +112 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +108 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +27 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +23 -0
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +1 -0
- package/dist/output_parsers/combining.cjs +59 -90
- package/dist/output_parsers/combining.cjs.map +1 -0
- package/dist/output_parsers/combining.d.cts +46 -0
- package/dist/output_parsers/combining.d.cts.map +1 -0
- package/dist/output_parsers/combining.d.ts +33 -26
- package/dist/output_parsers/combining.d.ts.map +1 -0
- package/dist/output_parsers/combining.js +58 -86
- package/dist/output_parsers/combining.js.map +1 -0
- package/dist/output_parsers/datetime.cjs +44 -61
- package/dist/output_parsers/datetime.cjs.map +1 -0
- package/dist/output_parsers/datetime.d.cts +33 -0
- package/dist/output_parsers/datetime.d.cts.map +1 -0
- package/dist/output_parsers/datetime.d.ts +27 -21
- package/dist/output_parsers/datetime.d.ts.map +1 -0
- package/dist/output_parsers/datetime.js +44 -58
- package/dist/output_parsers/datetime.js.map +1 -0
- package/dist/output_parsers/expression.cjs +84 -102
- package/dist/output_parsers/expression.cjs.map +1 -0
- package/dist/output_parsers/expression.d.cts +53 -0
- package/dist/output_parsers/expression.d.cts.map +1 -0
- package/dist/output_parsers/expression.d.ts +34 -28
- package/dist/output_parsers/expression.d.ts.map +1 -0
- package/dist/output_parsers/expression.js +77 -83
- package/dist/output_parsers/expression.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs +36 -42
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js +37 -39
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.cjs +127 -163
- package/dist/output_parsers/expression_type_handlers/base.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts +108 -0
- package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.d.ts +97 -89
- package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/base.js +126 -125
- package/dist/output_parsers/expression_type_handlers/base.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs +36 -40
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js +37 -37
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs +62 -72
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.js +63 -69
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.cjs +64 -72
- package/dist/output_parsers/expression_type_handlers/factory.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts +35 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.d.ts +26 -19
- package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/factory.js +56 -60
- package/dist/output_parsers/expression_type_handlers/factory.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs +18 -15
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js +17 -12
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs +38 -39
- package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/identifier_handler.js +39 -36
- package/dist/output_parsers/expression_type_handlers/identifier_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs +46 -60
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.js +47 -57
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs +34 -38
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js +35 -35
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs +38 -43
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js +38 -39
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs +43 -51
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js +44 -48
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs +35 -36
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs.map +1 -0
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.js +36 -33
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.js.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts +95 -0
- package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
- package/dist/output_parsers/expression_type_handlers/types.d.ts +36 -32
- package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
- package/dist/output_parsers/fix.cjs +88 -100
- package/dist/output_parsers/fix.cjs.map +1 -0
- package/dist/output_parsers/fix.d.cts +60 -0
- package/dist/output_parsers/fix.d.cts.map +1 -0
- package/dist/output_parsers/fix.d.ts +49 -42
- package/dist/output_parsers/fix.d.ts.map +1 -0
- package/dist/output_parsers/fix.js +86 -95
- package/dist/output_parsers/fix.js.map +1 -0
- package/dist/output_parsers/http_response.cjs +51 -80
- package/dist/output_parsers/http_response.cjs.map +1 -0
- package/dist/output_parsers/http_response.d.cts +33 -0
- package/dist/output_parsers/http_response.d.cts.map +1 -0
- package/dist/output_parsers/http_response.d.ts +26 -21
- package/dist/output_parsers/http_response.d.ts.map +1 -0
- package/dist/output_parsers/http_response.js +51 -77
- package/dist/output_parsers/http_response.js.map +1 -0
- package/dist/output_parsers/index.cjs +74 -31
- package/dist/output_parsers/index.cjs.map +1 -0
- package/dist/output_parsers/index.d.cts +11 -0
- package/dist/output_parsers/index.d.ts +11 -11
- package/dist/output_parsers/index.js +37 -11
- package/dist/output_parsers/index.js.map +1 -0
- package/dist/output_parsers/noop.cjs +41 -47
- package/dist/output_parsers/noop.cjs.map +1 -0
- package/dist/output_parsers/noop.js +40 -43
- package/dist/output_parsers/noop.js.map +1 -0
- package/dist/output_parsers/openai_functions.cjs +141 -206
- package/dist/output_parsers/openai_functions.cjs.map +1 -0
- package/dist/output_parsers/openai_functions.d.cts +85 -0
- package/dist/output_parsers/openai_functions.d.cts.map +1 -0
- package/dist/output_parsers/openai_functions.d.ts +64 -58
- package/dist/output_parsers/openai_functions.d.ts.map +1 -0
- package/dist/output_parsers/openai_functions.js +139 -201
- package/dist/output_parsers/openai_functions.js.map +1 -0
- package/dist/output_parsers/openai_tools.cjs +86 -140
- package/dist/output_parsers/openai_tools.cjs.map +1 -0
- package/dist/output_parsers/openai_tools.d.cts +69 -0
- package/dist/output_parsers/openai_tools.d.cts.map +1 -0
- package/dist/output_parsers/openai_tools.d.ts +51 -42
- package/dist/output_parsers/openai_tools.d.ts.map +1 -0
- package/dist/output_parsers/openai_tools.js +84 -135
- package/dist/output_parsers/openai_tools.js.map +1 -0
- package/dist/output_parsers/prompts.cjs +10 -7
- package/dist/output_parsers/prompts.cjs.map +1 -0
- package/dist/output_parsers/prompts.js +8 -3
- package/dist/output_parsers/prompts.js.map +1 -0
- package/dist/output_parsers/regex.cjs +72 -106
- package/dist/output_parsers/regex.cjs.map +1 -0
- package/dist/output_parsers/regex.d.cts +49 -0
- package/dist/output_parsers/regex.d.cts.map +1 -0
- package/dist/output_parsers/regex.d.ts +38 -33
- package/dist/output_parsers/regex.d.ts.map +1 -0
- package/dist/output_parsers/regex.js +72 -103
- package/dist/output_parsers/regex.js.map +1 -0
- package/dist/output_parsers/router.cjs +38 -45
- package/dist/output_parsers/router.cjs.map +1 -0
- package/dist/output_parsers/router.d.cts +36 -0
- package/dist/output_parsers/router.d.cts.map +1 -0
- package/dist/output_parsers/router.d.ts +23 -17
- package/dist/output_parsers/router.d.ts.map +1 -0
- package/dist/output_parsers/router.js +37 -41
- package/dist/output_parsers/router.js.map +1 -0
- package/dist/output_parsers/structured.cjs +148 -180
- package/dist/output_parsers/structured.cjs.map +1 -0
- package/dist/output_parsers/structured.d.cts +97 -0
- package/dist/output_parsers/structured.d.cts.map +1 -0
- package/dist/output_parsers/structured.d.ts +82 -74
- package/dist/output_parsers/structured.d.ts.map +1 -0
- package/dist/output_parsers/structured.js +144 -173
- package/dist/output_parsers/structured.js.map +1 -0
- package/dist/retrievers/contextual_compression.cjs +51 -51
- package/dist/retrievers/contextual_compression.cjs.map +1 -0
- package/dist/retrievers/contextual_compression.d.cts +42 -0
- package/dist/retrievers/contextual_compression.d.cts.map +1 -0
- package/dist/retrievers/contextual_compression.d.ts +19 -13
- package/dist/retrievers/contextual_compression.d.ts.map +1 -0
- package/dist/retrievers/contextual_compression.js +46 -48
- package/dist/retrievers/contextual_compression.js.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.cjs +97 -104
- package/dist/retrievers/document_compressors/chain_extract.cjs.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts +47 -0
- package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.d.ts +35 -26
- package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract.js +89 -98
- package/dist/retrievers/document_compressors/chain_extract.js.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.cjs +5 -3
- package/dist/retrievers/document_compressors/chain_extract_prompt.cjs.map +1 -0
- package/dist/retrievers/document_compressors/chain_extract_prompt.js +6 -1
- package/dist/retrievers/document_compressors/chain_extract_prompt.js.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.cjs +72 -89
- package/dist/retrievers/document_compressors/embeddings_filter.cjs.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts +58 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts +35 -29
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/embeddings_filter.js +66 -85
- package/dist/retrievers/document_compressors/embeddings_filter.js.map +1 -0
- package/dist/retrievers/document_compressors/index.cjs +66 -64
- package/dist/retrievers/document_compressors/index.cjs.map +1 -0
- package/dist/retrievers/document_compressors/index.d.cts +61 -0
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
- package/dist/retrievers/document_compressors/index.d.ts +25 -19
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
- package/dist/retrievers/document_compressors/index.js +60 -60
- package/dist/retrievers/document_compressors/index.js.map +1 -0
- package/dist/retrievers/ensemble.cjs +74 -89
- package/dist/retrievers/ensemble.cjs.map +1 -0
- package/dist/retrievers/ensemble.d.cts +39 -0
- package/dist/retrievers/ensemble.d.cts.map +1 -0
- package/dist/retrievers/ensemble.d.ts +31 -26
- package/dist/retrievers/ensemble.d.ts.map +1 -0
- package/dist/retrievers/ensemble.js +68 -85
- package/dist/retrievers/ensemble.js.map +1 -0
- package/dist/retrievers/hyde.cjs +108 -111
- package/dist/retrievers/hyde.cjs.map +1 -0
- package/dist/retrievers/hyde.d.cts +61 -0
- package/dist/retrievers/hyde.d.cts.map +1 -0
- package/dist/retrievers/hyde.d.ts +20 -14
- package/dist/retrievers/hyde.d.ts.map +1 -0
- package/dist/retrievers/hyde.js +101 -106
- package/dist/retrievers/hyde.js.map +1 -0
- package/dist/retrievers/matryoshka_retriever.cjs +114 -146
- package/dist/retrievers/matryoshka_retriever.cjs.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.cts +99 -0
- package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.d.ts +70 -64
- package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
- package/dist/retrievers/matryoshka_retriever.js +109 -143
- package/dist/retrievers/matryoshka_retriever.js.map +1 -0
- package/dist/retrievers/multi_query.cjs +133 -156
- package/dist/retrievers/multi_query.cjs.map +1 -0
- package/dist/retrievers/multi_query.d.cts +59 -0
- package/dist/retrievers/multi_query.d.cts.map +1 -0
- package/dist/retrievers/multi_query.d.ts +39 -33
- package/dist/retrievers/multi_query.d.ts.map +1 -0
- package/dist/retrievers/multi_query.js +127 -152
- package/dist/retrievers/multi_query.js.map +1 -0
- package/dist/retrievers/multi_vector.cjs +65 -92
- package/dist/retrievers/multi_vector.cjs.map +1 -0
- package/dist/retrievers/multi_vector.d.cts +51 -0
- package/dist/retrievers/multi_vector.d.cts.map +1 -0
- package/dist/retrievers/multi_vector.d.ts +27 -21
- package/dist/retrievers/multi_vector.d.ts.map +1 -0
- package/dist/retrievers/multi_vector.js +59 -88
- package/dist/retrievers/multi_vector.js.map +1 -0
- package/dist/retrievers/parent_document.cjs +135 -226
- package/dist/retrievers/parent_document.cjs.map +1 -0
- package/dist/retrievers/parent_document.d.cts +92 -0
- package/dist/retrievers/parent_document.d.cts.map +1 -0
- package/dist/retrievers/parent_document.d.ts +55 -49
- package/dist/retrievers/parent_document.d.ts.map +1 -0
- package/dist/retrievers/parent_document.js +129 -189
- package/dist/retrievers/parent_document.js.map +1 -0
- package/dist/retrievers/score_threshold.cjs +42 -44
- package/dist/retrievers/score_threshold.cjs.map +1 -0
- package/dist/retrievers/score_threshold.d.cts +20 -0
- package/dist/retrievers/score_threshold.d.cts.map +1 -0
- package/dist/retrievers/score_threshold.d.ts +16 -11
- package/dist/retrievers/score_threshold.d.ts.map +1 -0
- package/dist/retrievers/score_threshold.js +37 -41
- package/dist/retrievers/score_threshold.js.map +1 -0
- package/dist/retrievers/self_query/functional.cjs +21 -5
- package/dist/retrievers/self_query/functional.cjs.map +1 -0
- package/dist/retrievers/self_query/functional.d.cts +2 -0
- package/dist/retrievers/self_query/functional.d.ts +2 -1
- package/dist/retrievers/self_query/functional.js +10 -1
- package/dist/retrievers/self_query/functional.js.map +1 -0
- package/dist/retrievers/self_query/index.cjs +128 -124
- package/dist/retrievers/self_query/index.cjs.map +1 -0
- package/dist/retrievers/self_query/index.d.cts +79 -0
- package/dist/retrievers/self_query/index.d.cts.map +1 -0
- package/dist/retrievers/self_query/index.d.ts +53 -48
- package/dist/retrievers/self_query/index.d.ts.map +1 -0
- package/dist/retrievers/self_query/index.js +105 -119
- package/dist/retrievers/self_query/index.js.map +1 -0
- package/dist/retrievers/time_weighted.cjs +234 -254
- package/dist/retrievers/time_weighted.cjs.map +1 -0
- package/dist/retrievers/time_weighted.d.cts +142 -0
- package/dist/retrievers/time_weighted.d.cts.map +1 -0
- package/dist/retrievers/time_weighted.d.ts +115 -114
- package/dist/retrievers/time_weighted.d.ts.map +1 -0
- package/dist/retrievers/time_weighted.js +226 -250
- package/dist/retrievers/time_weighted.js.map +1 -0
- package/dist/sql_db.cjs +117 -196
- package/dist/sql_db.cjs.map +1 -0
- package/dist/sql_db.d.cts +60 -0
- package/dist/sql_db.d.cts.map +1 -0
- package/dist/sql_db.d.ts +44 -38
- package/dist/sql_db.d.ts.map +1 -0
- package/dist/sql_db.js +111 -159
- package/dist/sql_db.js.map +1 -0
- package/dist/storage/encoder_backed.cjs +91 -102
- package/dist/storage/encoder_backed.cjs.map +1 -0
- package/dist/storage/encoder_backed.d.cts +54 -0
- package/dist/storage/encoder_backed.d.cts.map +1 -0
- package/dist/storage/encoder_backed.d.ts +42 -35
- package/dist/storage/encoder_backed.d.ts.map +1 -0
- package/dist/storage/encoder_backed.js +83 -96
- package/dist/storage/encoder_backed.js.map +1 -0
- package/dist/storage/file_system.cjs +155 -214
- package/dist/storage/file_system.cjs.map +1 -0
- package/dist/storage/file_system.d.cts +83 -0
- package/dist/storage/file_system.d.cts.map +1 -0
- package/dist/storage/file_system.d.ts +50 -53
- package/dist/storage/file_system.d.ts.map +1 -0
- package/dist/storage/file_system.js +149 -177
- package/dist/storage/file_system.js.map +1 -0
- package/dist/storage/in_memory.cjs +21 -5
- package/dist/storage/in_memory.cjs.map +1 -0
- package/dist/storage/in_memory.d.cts +2 -0
- package/dist/storage/in_memory.d.ts +2 -1
- package/dist/storage/in_memory.js +10 -1
- package/dist/storage/in_memory.js.map +1 -0
- package/dist/stores/doc/base.cjs +18 -8
- package/dist/stores/doc/base.cjs.map +1 -0
- package/dist/stores/doc/base.d.cts +15 -0
- package/dist/stores/doc/base.d.cts.map +1 -0
- package/dist/stores/doc/base.d.ts +9 -3
- package/dist/stores/doc/base.d.ts.map +1 -0
- package/dist/stores/doc/base.js +13 -5
- package/dist/stores/doc/base.js.map +1 -0
- package/dist/stores/doc/in_memory.cjs +91 -104
- package/dist/stores/doc/in_memory.cjs.map +1 -0
- package/dist/stores/doc/in_memory.d.cts +53 -0
- package/dist/stores/doc/in_memory.d.cts.map +1 -0
- package/dist/stores/doc/in_memory.d.ts +42 -35
- package/dist/stores/doc/in_memory.d.ts.map +1 -0
- package/dist/stores/doc/in_memory.js +84 -99
- package/dist/stores/doc/in_memory.js.map +1 -0
- package/dist/stores/file/base.cjs +11 -9
- package/dist/stores/file/base.cjs.map +1 -0
- package/dist/stores/file/base.d.cts +15 -0
- package/dist/stores/file/base.d.cts.map +1 -0
- package/dist/stores/file/base.d.ts +9 -3
- package/dist/stores/file/base.d.ts.map +1 -0
- package/dist/stores/file/base.js +10 -5
- package/dist/stores/file/base.js.map +1 -0
- package/dist/stores/file/in_memory.cjs +51 -50
- package/dist/stores/file/in_memory.cjs.map +1 -0
- package/dist/stores/file/in_memory.d.cts +33 -0
- package/dist/stores/file/in_memory.d.cts.map +1 -0
- package/dist/stores/file/in_memory.d.ts +24 -18
- package/dist/stores/file/in_memory.d.ts.map +1 -0
- package/dist/stores/file/in_memory.js +45 -46
- package/dist/stores/file/in_memory.js.map +1 -0
- package/dist/stores/file/node.cjs +50 -77
- package/dist/stores/file/node.cjs.map +1 -0
- package/dist/stores/file/node.d.cts +29 -0
- package/dist/stores/file/node.d.cts.map +1 -0
- package/dist/stores/file/node.d.ts +23 -17
- package/dist/stores/file/node.d.ts.map +1 -0
- package/dist/stores/file/node.js +43 -39
- package/dist/stores/file/node.js.map +1 -0
- package/dist/stores/message/in_memory.cjs +21 -5
- package/dist/stores/message/in_memory.cjs.map +1 -0
- package/dist/stores/message/in_memory.d.cts +2 -0
- package/dist/stores/message/in_memory.d.ts +2 -1
- package/dist/stores/message/in_memory.js +10 -1
- package/dist/stores/message/in_memory.js.map +1 -0
- package/dist/text_splitter.cjs +22 -17
- package/dist/text_splitter.cjs.map +1 -0
- package/dist/text_splitter.d.cts +1 -0
- package/dist/text_splitter.d.ts +1 -1
- package/dist/text_splitter.js +12 -1
- package/dist/text_splitter.js.map +1 -0
- package/dist/tools/chain.cjs +34 -28
- package/dist/tools/chain.cjs.map +1 -0
- package/dist/tools/chain.d.cts +32 -0
- package/dist/tools/chain.d.cts.map +1 -0
- package/dist/tools/chain.d.ts +16 -7
- package/dist/tools/chain.d.ts.map +1 -0
- package/dist/tools/chain.js +28 -24
- package/dist/tools/chain.js.map +1 -0
- package/dist/tools/fs.cjs +53 -90
- package/dist/tools/fs.cjs.map +1 -0
- package/dist/tools/fs.d.cts +92 -0
- package/dist/tools/fs.d.cts.map +1 -0
- package/dist/tools/fs.d.ts +70 -36
- package/dist/tools/fs.d.ts.map +1 -0
- package/dist/tools/fs.js +51 -85
- package/dist/tools/fs.js.map +1 -0
- package/dist/tools/index.cjs +68 -26
- package/dist/tools/index.cjs.map +1 -0
- package/dist/tools/index.d.cts +8 -0
- package/dist/tools/index.d.ts +8 -8
- package/dist/tools/index.js +30 -8
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/json.cjs +101 -159
- package/dist/tools/json.cjs.map +1 -0
- package/dist/tools/json.d.cts +65 -0
- package/dist/tools/json.d.cts.map +1 -0
- package/dist/tools/json.d.ts +46 -41
- package/dist/tools/json.d.ts.map +1 -0
- package/dist/tools/json.js +98 -150
- package/dist/tools/json.js.map +1 -0
- package/dist/tools/render.cjs +49 -48
- package/dist/tools/render.cjs.map +1 -0
- package/dist/tools/render.d.cts +32 -0
- package/dist/tools/render.d.cts.map +1 -0
- package/dist/tools/render.d.ts +8 -2
- package/dist/tools/render.d.ts.map +1 -0
- package/dist/tools/render.js +43 -45
- package/dist/tools/render.js.map +1 -0
- package/dist/tools/requests.cjs +66 -106
- package/dist/tools/requests.cjs.map +1 -0
- package/dist/tools/requests.d.cts +56 -0
- package/dist/tools/requests.d.cts.map +1 -0
- package/dist/tools/requests.d.ts +36 -27
- package/dist/tools/requests.d.ts.map +1 -0
- package/dist/tools/requests.js +64 -101
- package/dist/tools/requests.js.map +1 -0
- package/dist/tools/retriever.cjs +28 -14
- package/dist/tools/retriever.cjs.map +1 -0
- package/dist/tools/retriever.d.cts +19 -0
- package/dist/tools/retriever.d.cts.map +1 -0
- package/dist/tools/retriever.d.ts +13 -8
- package/dist/tools/retriever.d.ts.map +1 -0
- package/dist/tools/retriever.js +22 -11
- package/dist/tools/retriever.js.map +1 -0
- package/dist/tools/sql.cjs +147 -204
- package/dist/tools/sql.cjs.map +1 -0
- package/dist/tools/sql.d.cts +86 -0
- package/dist/tools/sql.d.cts.map +1 -0
- package/dist/tools/sql.d.ts +45 -40
- package/dist/tools/sql.d.ts.map +1 -0
- package/dist/tools/sql.js +137 -196
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/vectorstore.cjs +43 -65
- package/dist/tools/vectorstore.cjs.map +1 -0
- package/dist/tools/vectorstore.d.cts +40 -0
- package/dist/tools/vectorstore.d.cts.map +1 -0
- package/dist/tools/vectorstore.d.ts +28 -23
- package/dist/tools/vectorstore.d.ts.map +1 -0
- package/dist/tools/vectorstore.js +42 -61
- package/dist/tools/vectorstore.js.map +1 -0
- package/dist/tools/webbrowser.cjs +165 -254
- package/dist/tools/webbrowser.cjs.map +1 -0
- package/dist/tools/webbrowser.d.cts +69 -0
- package/dist/tools/webbrowser.d.cts.map +1 -0
- package/dist/tools/webbrowser.d.ts +47 -31
- package/dist/tools/webbrowser.d.ts.map +1 -0
- package/dist/tools/webbrowser.js +158 -213
- package/dist/tools/webbrowser.js.map +1 -0
- package/dist/types/expression-parser.d.cts +89 -0
- package/dist/types/expression-parser.d.cts.map +1 -0
- package/dist/types/expression-parser.d.ts +89 -0
- package/dist/types/expression-parser.d.ts.map +1 -0
- package/dist/types/type-utils.d.cts +7 -0
- package/dist/types/type-utils.d.cts.map +1 -0
- package/dist/types/type-utils.d.ts +7 -1
- package/dist/types/type-utils.d.ts.map +1 -0
- package/dist/util/document.cjs +20 -9
- package/dist/util/document.cjs.map +1 -0
- package/dist/util/document.d.cts +15 -0
- package/dist/util/document.d.cts.map +1 -0
- package/dist/util/document.d.ts +7 -1
- package/dist/util/document.d.ts.map +1 -0
- package/dist/util/document.js +16 -7
- package/dist/util/document.js.map +1 -0
- package/dist/util/entrypoint_deprecation.cjs +1 -69
- package/dist/util/entrypoint_deprecation.js +1 -65
- package/dist/util/env.cjs +2 -12
- package/dist/util/env.js +1 -1
- package/dist/util/extname.cjs +5 -3
- package/dist/util/extname.cjs.map +1 -0
- package/dist/util/extname.js +6 -1
- package/dist/util/extname.js.map +1 -0
- package/dist/util/hub.cjs +32 -39
- package/dist/util/hub.cjs.map +1 -0
- package/dist/util/hub.js +32 -33
- package/dist/util/hub.js.map +1 -0
- package/dist/util/load.cjs +12 -44
- package/dist/util/load.cjs.map +1 -0
- package/dist/util/load.d.cts +6 -0
- package/dist/util/load.d.cts.map +1 -0
- package/dist/util/load.d.ts +6 -3
- package/dist/util/load.d.ts.map +1 -0
- package/dist/util/load.js +13 -9
- package/dist/util/load.js.map +1 -0
- package/dist/util/math.cjs +22 -17
- package/dist/util/math.cjs.map +1 -0
- package/dist/util/math.d.cts +1 -0
- package/dist/util/math.d.ts +1 -1
- package/dist/util/math.js +12 -1
- package/dist/util/math.js.map +1 -0
- package/dist/util/ml-distance/distances.cjs +29 -45
- package/dist/util/ml-distance/distances.cjs.map +1 -0
- package/dist/util/ml-distance/distances.js +29 -42
- package/dist/util/ml-distance/distances.js.map +1 -0
- package/dist/util/ml-distance/similarities.cjs +20 -17
- package/dist/util/ml-distance/similarities.cjs.map +1 -0
- package/dist/util/ml-distance/similarities.d.cts +11 -0
- package/dist/util/ml-distance/similarities.d.cts.map +1 -0
- package/dist/util/ml-distance/similarities.d.ts +5 -1
- package/dist/util/ml-distance/similarities.d.ts.map +1 -0
- package/dist/util/ml-distance/similarities.js +20 -15
- package/dist/util/ml-distance/similarities.js.map +1 -0
- package/dist/util/ml-distance-euclidean/euclidean.cjs +10 -10
- package/dist/util/ml-distance-euclidean/euclidean.cjs.map +1 -0
- package/dist/util/ml-distance-euclidean/euclidean.js +11 -8
- package/dist/util/ml-distance-euclidean/euclidean.js.map +1 -0
- package/dist/util/openapi.cjs +148 -233
- package/dist/util/openapi.cjs.map +1 -0
- package/dist/util/openapi.d.cts +83 -0
- package/dist/util/openapi.d.cts.map +1 -0
- package/dist/util/openapi.d.ts +81 -74
- package/dist/util/openapi.d.ts.map +1 -0
- package/dist/util/openapi.js +147 -196
- package/dist/util/openapi.js.map +1 -0
- package/dist/util/parse.cjs +17 -54
- package/dist/util/parse.cjs.map +1 -0
- package/dist/util/parse.js +18 -18
- package/dist/util/parse.js.map +1 -0
- package/dist/util/set.cjs +25 -30
- package/dist/util/set.cjs.map +1 -0
- package/dist/util/set.js +25 -28
- package/dist/util/set.js.map +1 -0
- package/dist/util/sql_utils.cjs +128 -217
- package/dist/util/sql_utils.cjs.map +1 -0
- package/dist/util/sql_utils.d.cts +31 -0
- package/dist/util/sql_utils.d.cts.map +1 -0
- package/dist/util/sql_utils.d.ts +24 -25
- package/dist/util/sql_utils.d.ts.map +1 -0
- package/dist/util/sql_utils.js +130 -215
- package/dist/util/sql_utils.js.map +1 -0
- package/dist/util/time.cjs +23 -11
- package/dist/util/time.cjs.map +1 -0
- package/dist/util/time.d.cts +10 -0
- package/dist/util/time.d.cts.map +1 -0
- package/dist/util/time.d.ts +5 -1
- package/dist/util/time.d.ts.map +1 -0
- package/dist/util/time.js +17 -8
- package/dist/util/time.js.map +1 -0
- package/dist/vectorstores/memory.cjs +263 -270
- package/dist/vectorstores/memory.cjs.map +1 -0
- package/dist/vectorstores/memory.d.cts +216 -0
- package/dist/vectorstores/memory.d.cts.map +1 -0
- package/dist/vectorstores/memory.d.ts +91 -82
- package/dist/vectorstores/memory.d.ts.map +1 -0
- package/dist/vectorstores/memory.js +257 -266
- package/dist/vectorstores/memory.js.map +1 -0
- package/package.json +549 -1133
- package/agents/format_scratchpad/log.cjs +0 -1
- package/agents/format_scratchpad/log.d.cts +0 -1
- package/agents/format_scratchpad/log.d.ts +0 -1
- package/agents/format_scratchpad/log.js +0 -1
- package/agents/format_scratchpad/log_to_message.cjs +0 -1
- package/agents/format_scratchpad/log_to_message.d.cts +0 -1
- package/agents/format_scratchpad/log_to_message.d.ts +0 -1
- package/agents/format_scratchpad/log_to_message.js +0 -1
- package/agents/format_scratchpad/openai_tools.cjs +0 -1
- package/agents/format_scratchpad/openai_tools.d.cts +0 -1
- package/agents/format_scratchpad/openai_tools.d.ts +0 -1
- package/agents/format_scratchpad/openai_tools.js +0 -1
- package/agents/format_scratchpad/xml.cjs +0 -1
- package/agents/format_scratchpad/xml.d.cts +0 -1
- package/agents/format_scratchpad/xml.d.ts +0 -1
- package/agents/format_scratchpad/xml.js +0 -1
- package/agents/format_scratchpad.cjs +0 -1
- package/agents/format_scratchpad.d.cts +0 -1
- package/agents/format_scratchpad.d.ts +0 -1
- package/agents/format_scratchpad.js +0 -1
- package/agents/load.cjs +0 -1
- package/agents/load.d.cts +0 -1
- package/agents/load.d.ts +0 -1
- package/agents/load.js +0 -1
- package/agents/openai/output_parser.cjs +0 -1
- package/agents/openai/output_parser.d.cts +0 -1
- package/agents/openai/output_parser.d.ts +0 -1
- package/agents/openai/output_parser.js +0 -1
- package/agents/react/output_parser.cjs +0 -1
- package/agents/react/output_parser.d.cts +0 -1
- package/agents/react/output_parser.d.ts +0 -1
- package/agents/react/output_parser.js +0 -1
- package/agents/toolkits/sql.cjs +0 -1
- package/agents/toolkits/sql.d.cts +0 -1
- package/agents/toolkits/sql.d.ts +0 -1
- package/agents/toolkits/sql.js +0 -1
- package/agents/toolkits.cjs +0 -1
- package/agents/toolkits.d.cts +0 -1
- package/agents/toolkits.d.ts +0 -1
- package/agents/toolkits.js +0 -1
- package/agents/xml/output_parser.cjs +0 -1
- package/agents/xml/output_parser.d.cts +0 -1
- package/agents/xml/output_parser.d.ts +0 -1
- package/agents/xml/output_parser.js +0 -1
- package/agents.cjs +0 -1
- package/agents.d.cts +0 -1
- package/agents.d.ts +0 -1
- package/agents.js +0 -1
- package/cache/file_system.cjs +0 -1
- package/cache/file_system.d.cts +0 -1
- package/cache/file_system.d.ts +0 -1
- package/cache/file_system.js +0 -1
- package/callbacks.cjs +0 -1
- package/callbacks.d.cts +0 -1
- package/callbacks.d.ts +0 -1
- package/callbacks.js +0 -1
- package/chains/combine_documents/reduce.cjs +0 -1
- package/chains/combine_documents/reduce.d.cts +0 -1
- package/chains/combine_documents/reduce.d.ts +0 -1
- package/chains/combine_documents/reduce.js +0 -1
- package/chains/combine_documents.cjs +0 -1
- package/chains/combine_documents.d.cts +0 -1
- package/chains/combine_documents.d.ts +0 -1
- package/chains/combine_documents.js +0 -1
- package/chains/graph_qa/cypher.cjs +0 -1
- package/chains/graph_qa/cypher.d.cts +0 -1
- package/chains/graph_qa/cypher.d.ts +0 -1
- package/chains/graph_qa/cypher.js +0 -1
- package/chains/history_aware_retriever.cjs +0 -1
- package/chains/history_aware_retriever.d.cts +0 -1
- package/chains/history_aware_retriever.d.ts +0 -1
- package/chains/history_aware_retriever.js +0 -1
- package/chains/load.cjs +0 -1
- package/chains/load.d.cts +0 -1
- package/chains/load.d.ts +0 -1
- package/chains/load.js +0 -1
- package/chains/openai_functions.cjs +0 -1
- package/chains/openai_functions.d.cts +0 -1
- package/chains/openai_functions.d.ts +0 -1
- package/chains/openai_functions.js +0 -1
- package/chains/query_constructor/ir.cjs +0 -1
- package/chains/query_constructor/ir.d.cts +0 -1
- package/chains/query_constructor/ir.d.ts +0 -1
- package/chains/query_constructor/ir.js +0 -1
- package/chains/query_constructor.cjs +0 -1
- package/chains/query_constructor.d.cts +0 -1
- package/chains/query_constructor.d.ts +0 -1
- package/chains/query_constructor.js +0 -1
- package/chains/retrieval.cjs +0 -1
- package/chains/retrieval.d.cts +0 -1
- package/chains/retrieval.d.ts +0 -1
- package/chains/retrieval.js +0 -1
- package/chains/sql_db.cjs +0 -1
- package/chains/sql_db.d.cts +0 -1
- package/chains/sql_db.d.ts +0 -1
- package/chains/sql_db.js +0 -1
- package/chains.cjs +0 -1
- package/chains.d.cts +0 -1
- package/chains.d.ts +0 -1
- package/chains.js +0 -1
- package/chat_models/universal.cjs +0 -1
- package/chat_models/universal.d.cts +0 -1
- package/chat_models/universal.d.ts +0 -1
- package/chat_models/universal.js +0 -1
- package/dist/agents/agent.cjs +0 -570
- package/dist/agents/agent.d.ts +0 -284
- package/dist/agents/agent.js +0 -524
- package/dist/agents/chat/index.cjs +0 -123
- package/dist/agents/chat/index.d.ts +0 -87
- package/dist/agents/chat/index.js +0 -119
- package/dist/agents/chat/outputParser.cjs +0 -94
- package/dist/agents/chat/outputParser.d.ts +0 -70
- package/dist/agents/chat/outputParser.js +0 -90
- package/dist/agents/chat/prompt.cjs +0 -28
- package/dist/agents/chat/prompt.d.ts +0 -3
- package/dist/agents/chat/prompt.js +0 -25
- package/dist/agents/chat_convo/index.cjs +0 -148
- package/dist/agents/chat_convo/index.d.ts +0 -82
- package/dist/agents/chat_convo/index.js +0 -144
- package/dist/agents/chat_convo/outputParser.cjs +0 -163
- package/dist/agents/chat_convo/outputParser.d.ts +0 -75
- package/dist/agents/chat_convo/outputParser.js +0 -158
- package/dist/agents/chat_convo/prompt.cjs +0 -60
- package/dist/agents/chat_convo/prompt.d.ts +0 -5
- package/dist/agents/chat_convo/prompt.js +0 -57
- package/dist/agents/executor.cjs +0 -687
- package/dist/agents/executor.d.ts +0 -163
- package/dist/agents/executor.js +0 -681
- package/dist/agents/format_scratchpad/log.cjs +0 -15
- package/dist/agents/format_scratchpad/log.d.ts +0 -9
- package/dist/agents/format_scratchpad/log.js +0 -12
- package/dist/agents/format_scratchpad/log_to_message.cjs +0 -21
- package/dist/agents/format_scratchpad/log_to_message.d.ts +0 -3
- package/dist/agents/format_scratchpad/log_to_message.js +0 -18
- package/dist/agents/format_scratchpad/openai_functions.cjs +0 -45
- package/dist/agents/format_scratchpad/openai_functions.d.ts +0 -21
- package/dist/agents/format_scratchpad/openai_functions.js +0 -41
- package/dist/agents/format_scratchpad/openai_tools.cjs +0 -5
- package/dist/agents/format_scratchpad/openai_tools.d.ts +0 -2
- package/dist/agents/format_scratchpad/openai_tools.js +0 -2
- package/dist/agents/format_scratchpad/tool_calling.cjs +0 -29
- package/dist/agents/format_scratchpad/tool_calling.d.ts +0 -10
- package/dist/agents/format_scratchpad/tool_calling.js +0 -25
- package/dist/agents/format_scratchpad/xml.cjs +0 -11
- package/dist/agents/format_scratchpad/xml.d.ts +0 -2
- package/dist/agents/format_scratchpad/xml.js +0 -8
- package/dist/agents/helpers.cjs +0 -21
- package/dist/agents/helpers.d.ts +0 -4
- package/dist/agents/helpers.js +0 -17
- package/dist/agents/initialize.cjs +0 -136
- package/dist/agents/initialize.d.ts +0 -60
- package/dist/agents/initialize.js +0 -131
- package/dist/agents/load.cjs +0 -21
- package/dist/agents/load.d.ts +0 -8
- package/dist/agents/load.js +0 -17
- package/dist/agents/mrkl/index.cjs +0 -136
- package/dist/agents/mrkl/index.d.ts +0 -93
- package/dist/agents/mrkl/index.js +0 -132
- package/dist/agents/mrkl/outputParser.cjs +0 -65
- package/dist/agents/mrkl/outputParser.d.ts +0 -37
- package/dist/agents/mrkl/outputParser.js +0 -61
- package/dist/agents/mrkl/prompt.cjs +0 -18
- package/dist/agents/mrkl/prompt.d.ts +0 -3
- package/dist/agents/mrkl/prompt.js +0 -15
- package/dist/agents/openai/output_parser.cjs +0 -22
- package/dist/agents/openai/output_parser.d.ts +0 -2
- package/dist/agents/openai/output_parser.js +0 -6
- package/dist/agents/openai_functions/index.cjs +0 -249
- package/dist/agents/openai_functions/index.d.ts +0 -154
- package/dist/agents/openai_functions/index.js +0 -243
- package/dist/agents/openai_functions/output_parser.cjs +0 -100
- package/dist/agents/openai_functions/output_parser.d.ts +0 -56
- package/dist/agents/openai_functions/output_parser.js +0 -96
- package/dist/agents/openai_functions/prompt.cjs +0 -5
- package/dist/agents/openai_functions/prompt.d.ts +0 -2
- package/dist/agents/openai_functions/prompt.js +0 -2
- package/dist/agents/openai_tools/index.cjs +0 -92
- package/dist/agents/openai_tools/index.d.ts +0 -89
- package/dist/agents/openai_tools/index.js +0 -88
- package/dist/agents/openai_tools/output_parser.cjs +0 -105
- package/dist/agents/openai_tools/output_parser.d.ts +0 -49
- package/dist/agents/openai_tools/output_parser.js +0 -101
- package/dist/agents/react/index.cjs +0 -80
- package/dist/agents/react/index.d.ts +0 -70
- package/dist/agents/react/index.js +0 -77
- package/dist/agents/react/output_parser.cjs +0 -112
- package/dist/agents/react/output_parser.d.ts +0 -62
- package/dist/agents/react/output_parser.js +0 -108
- package/dist/agents/react/prompt.cjs +0 -13
- package/dist/agents/react/prompt.d.ts +0 -1
- package/dist/agents/react/prompt.js +0 -10
- package/dist/agents/structured_chat/index.cjs +0 -260
- package/dist/agents/structured_chat/index.d.ts +0 -172
- package/dist/agents/structured_chat/index.js +0 -255
- package/dist/agents/structured_chat/outputParser.cjs +0 -162
- package/dist/agents/structured_chat/outputParser.d.ts +0 -89
- package/dist/agents/structured_chat/outputParser.js +0 -157
- package/dist/agents/structured_chat/prompt.cjs +0 -62
- package/dist/agents/structured_chat/prompt.d.ts +0 -4
- package/dist/agents/structured_chat/prompt.js +0 -59
- package/dist/agents/tool_calling/index.cjs +0 -93
- package/dist/agents/tool_calling/index.d.ts +0 -78
- package/dist/agents/tool_calling/index.js +0 -90
- package/dist/agents/tool_calling/output_parser.cjs +0 -75
- package/dist/agents/tool_calling/output_parser.d.ts +0 -22
- package/dist/agents/tool_calling/output_parser.js +0 -70
- package/dist/agents/toolkits/base.cjs +0 -5
- package/dist/agents/toolkits/base.d.ts +0 -1
- package/dist/agents/toolkits/base.js +0 -1
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.cjs +0 -49
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts +0 -21
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.js +0 -46
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.cjs +0 -134
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +0 -52
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.js +0 -130
- package/dist/agents/toolkits/conversational_retrieval/tool.cjs +0 -19
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts +0 -15
- package/dist/agents/toolkits/conversational_retrieval/tool.js +0 -16
- package/dist/agents/toolkits/index.cjs +0 -21
- package/dist/agents/toolkits/index.d.ts +0 -6
- package/dist/agents/toolkits/index.js +0 -6
- package/dist/agents/toolkits/json/json.cjs +0 -76
- package/dist/agents/toolkits/json/json.d.ts +0 -36
- package/dist/agents/toolkits/json/json.js +0 -71
- package/dist/agents/toolkits/json/prompt.cjs +0 -27
- package/dist/agents/toolkits/json/prompt.d.ts +0 -2
- package/dist/agents/toolkits/json/prompt.js +0 -24
- package/dist/agents/toolkits/openapi/openapi.cjs +0 -111
- package/dist/agents/toolkits/openapi/openapi.d.ts +0 -64
- package/dist/agents/toolkits/openapi/openapi.js +0 -105
- package/dist/agents/toolkits/openapi/prompt.cjs +0 -32
- package/dist/agents/toolkits/openapi/prompt.d.ts +0 -3
- package/dist/agents/toolkits/openapi/prompt.js +0 -29
- package/dist/agents/toolkits/sql/index.cjs +0 -9
- package/dist/agents/toolkits/sql/index.d.ts +0 -2
- package/dist/agents/toolkits/sql/index.js +0 -2
- package/dist/agents/toolkits/sql/prompt.cjs +0 -20
- package/dist/agents/toolkits/sql/prompt.d.ts +0 -2
- package/dist/agents/toolkits/sql/prompt.js +0 -17
- package/dist/agents/toolkits/sql/sql.cjs +0 -77
- package/dist/agents/toolkits/sql/sql.d.ts +0 -32
- package/dist/agents/toolkits/sql/sql.js +0 -72
- package/dist/agents/toolkits/vectorstore/prompt.cjs +0 -11
- package/dist/agents/toolkits/vectorstore/prompt.d.ts +0 -2
- package/dist/agents/toolkits/vectorstore/prompt.js +0 -8
- package/dist/agents/toolkits/vectorstore/vectorstore.cjs +0 -137
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts +0 -55
- package/dist/agents/toolkits/vectorstore/vectorstore.js +0 -130
- package/dist/agents/types.cjs +0 -19
- package/dist/agents/types.js +0 -14
- package/dist/agents/xml/index.cjs +0 -185
- package/dist/agents/xml/index.d.ts +0 -122
- package/dist/agents/xml/index.js +0 -180
- package/dist/agents/xml/output_parser.cjs +0 -67
- package/dist/agents/xml/output_parser.d.ts +0 -35
- package/dist/agents/xml/output_parser.js +0 -63
- package/dist/agents/xml/prompt.cjs +0 -23
- package/dist/agents/xml/prompt.d.ts +0 -1
- package/dist/agents/xml/prompt.js +0 -20
- package/dist/cache/base.cjs +0 -17
- package/dist/cache/base.d.ts +0 -1
- package/dist/cache/base.js +0 -1
- package/dist/cache/file_system.cjs +0 -72
- package/dist/cache/file_system.d.ts +0 -34
- package/dist/cache/file_system.js +0 -65
- package/dist/callbacks/handlers/console.cjs +0 -17
- package/dist/callbacks/handlers/console.d.ts +0 -1
- package/dist/callbacks/handlers/console.js +0 -1
- package/dist/callbacks/handlers/run_collector.cjs +0 -17
- package/dist/callbacks/handlers/run_collector.d.ts +0 -1
- package/dist/callbacks/handlers/run_collector.js +0 -1
- package/dist/callbacks/handlers/tracer.cjs +0 -17
- package/dist/callbacks/handlers/tracer.d.ts +0 -1
- package/dist/callbacks/handlers/tracer.js +0 -1
- package/dist/callbacks/handlers/tracer_langchain.cjs +0 -17
- package/dist/callbacks/handlers/tracer_langchain.d.ts +0 -1
- package/dist/callbacks/handlers/tracer_langchain.js +0 -1
- package/dist/callbacks/index.cjs +0 -14
- package/dist/callbacks/index.d.ts +0 -5
- package/dist/callbacks/index.js +0 -5
- package/dist/callbacks/promises.cjs +0 -17
- package/dist/callbacks/promises.d.ts +0 -1
- package/dist/callbacks/promises.js +0 -1
- package/dist/chains/api/prompts.d.ts +0 -13
- package/dist/chains/combine_documents/base.d.ts +0 -13
- package/dist/chains/constitutional_ai/constitutional_prompts.d.ts +0 -19
- package/dist/chains/graph_qa/prompts.d.ts +0 -9
- package/dist/chains/question_answering/map_reduce_prompts.d.ts +0 -6
- package/dist/chains/question_answering/refine_prompts.d.ts +0 -17
- package/dist/chains/question_answering/stuff_prompts.d.ts +0 -7
- package/dist/chains/router/multi_prompt_prompt.d.ts +0 -2
- package/dist/chains/router/multi_retrieval_prompt.d.ts +0 -2
- package/dist/chains/router/utils.d.ts +0 -3
- package/dist/chains/serde.cjs +0 -2
- package/dist/chains/serde.js +0 -1
- package/dist/chains/summarization/refine_prompts.d.ts +0 -5
- package/dist/chains/summarization/stuff_prompts.d.ts +0 -4
- package/dist/document_transformers/openai_functions.cjs +0 -52
- package/dist/document_transformers/openai_functions.d.ts +0 -23
- package/dist/document_transformers/openai_functions.js +0 -46
- package/dist/evaluation/agents/index.d.ts +0 -1
- package/dist/evaluation/agents/prompt.d.ts +0 -6
- package/dist/evaluation/comparison/index.d.ts +0 -1
- package/dist/evaluation/comparison/prompt.d.ts +0 -21
- package/dist/evaluation/criteria/index.d.ts +0 -1
- package/dist/evaluation/criteria/prompt.d.ts +0 -12
- package/dist/evaluation/embedding_distance/index.d.ts +0 -1
- package/dist/evaluation/qa/index.d.ts +0 -1
- package/dist/evaluation/qa/prompt.d.ts +0 -11
- package/dist/evaluation/types.cjs +0 -2
- package/dist/evaluation/types.js +0 -1
- package/dist/experimental/autogpt/agent.cjs +0 -210
- package/dist/experimental/autogpt/agent.d.ts +0 -80
- package/dist/experimental/autogpt/agent.js +0 -206
- package/dist/experimental/autogpt/index.cjs +0 -10
- package/dist/experimental/autogpt/index.d.ts +0 -4
- package/dist/experimental/autogpt/index.js +0 -3
- package/dist/experimental/autogpt/output_parser.cjs +0 -85
- package/dist/experimental/autogpt/output_parser.d.ts +0 -33
- package/dist/experimental/autogpt/output_parser.js +0 -80
- package/dist/experimental/autogpt/prompt.cjs +0 -137
- package/dist/experimental/autogpt/prompt.d.ts +0 -58
- package/dist/experimental/autogpt/prompt.js +0 -133
- package/dist/experimental/autogpt/prompt_generator.cjs +0 -154
- package/dist/experimental/autogpt/prompt_generator.d.ts +0 -49
- package/dist/experimental/autogpt/prompt_generator.js +0 -149
- package/dist/experimental/autogpt/schema.cjs +0 -4
- package/dist/experimental/autogpt/schema.d.ts +0 -18
- package/dist/experimental/autogpt/schema.js +0 -1
- package/dist/experimental/babyagi/agent.cjs +0 -274
- package/dist/experimental/babyagi/agent.d.ts +0 -135
- package/dist/experimental/babyagi/agent.js +0 -270
- package/dist/experimental/babyagi/index.cjs +0 -11
- package/dist/experimental/babyagi/index.d.ts +0 -4
- package/dist/experimental/babyagi/index.js +0 -4
- package/dist/experimental/babyagi/task_creation.cjs +0 -42
- package/dist/experimental/babyagi/task_creation.d.ts +0 -16
- package/dist/experimental/babyagi/task_creation.js +0 -38
- package/dist/experimental/babyagi/task_execution.cjs +0 -32
- package/dist/experimental/babyagi/task_execution.d.ts +0 -15
- package/dist/experimental/babyagi/task_execution.js +0 -28
- package/dist/experimental/babyagi/task_prioritization.cjs +0 -34
- package/dist/experimental/babyagi/task_prioritization.d.ts +0 -14
- package/dist/experimental/babyagi/task_prioritization.js +0 -30
- package/dist/experimental/chains/violation_of_expectations/index.cjs +0 -5
- package/dist/experimental/chains/violation_of_expectations/index.d.ts +0 -1
- package/dist/experimental/chains/violation_of_expectations/index.js +0 -1
- package/dist/experimental/chains/violation_of_expectations/types.cjs +0 -49
- package/dist/experimental/chains/violation_of_expectations/types.d.ts +0 -69
- package/dist/experimental/chains/violation_of_expectations/types.js +0 -46
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.cjs +0 -336
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts +0 -149
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.js +0 -332
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.cjs +0 -49
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.d.ts +0 -5
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.js +0 -46
- package/dist/experimental/generative_agents/generative_agent.cjs +0 -397
- package/dist/experimental/generative_agents/generative_agent.d.ts +0 -160
- package/dist/experimental/generative_agents/generative_agent.js +0 -393
- package/dist/experimental/generative_agents/generative_agent_memory.cjs +0 -518
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -200
- package/dist/experimental/generative_agents/generative_agent_memory.js +0 -514
- package/dist/experimental/generative_agents/index.cjs +0 -7
- package/dist/experimental/generative_agents/index.d.ts +0 -2
- package/dist/experimental/generative_agents/index.js +0 -2
- package/dist/experimental/masking/index.cjs +0 -9
- package/dist/experimental/masking/index.d.ts +0 -4
- package/dist/experimental/masking/index.js +0 -3
- package/dist/experimental/masking/parser.cjs +0 -134
- package/dist/experimental/masking/parser.d.ts +0 -44
- package/dist/experimental/masking/parser.js +0 -130
- package/dist/experimental/masking/regex_masking_transformer.cjs +0 -145
- package/dist/experimental/masking/regex_masking_transformer.d.ts +0 -48
- package/dist/experimental/masking/regex_masking_transformer.js +0 -141
- package/dist/experimental/masking/transformer.cjs +0 -9
- package/dist/experimental/masking/transformer.d.ts +0 -7
- package/dist/experimental/masking/transformer.js +0 -5
- package/dist/experimental/masking/types.cjs +0 -2
- package/dist/experimental/masking/types.d.ts +0 -25
- package/dist/experimental/masking/types.js +0 -1
- package/dist/experimental/openai_assistant/index.cjs +0 -268
- package/dist/experimental/openai_assistant/index.d.ts +0 -68
- package/dist/experimental/openai_assistant/index.js +0 -264
- package/dist/experimental/openai_assistant/schema.cjs +0 -2
- package/dist/experimental/openai_assistant/schema.d.ts +0 -11
- package/dist/experimental/openai_assistant/schema.js +0 -1
- package/dist/experimental/openai_files/index.cjs +0 -88
- package/dist/experimental/openai_files/index.d.ts +0 -87
- package/dist/experimental/openai_files/index.js +0 -84
- package/dist/experimental/plan_and_execute/agent_executor.cjs +0 -172
- package/dist/experimental/plan_and_execute/agent_executor.d.ts +0 -86
- package/dist/experimental/plan_and_execute/agent_executor.js +0 -167
- package/dist/experimental/plan_and_execute/base.cjs +0 -97
- package/dist/experimental/plan_and_execute/base.d.ts +0 -84
- package/dist/experimental/plan_and_execute/base.js +0 -88
- package/dist/experimental/plan_and_execute/index.cjs +0 -14
- package/dist/experimental/plan_and_execute/index.d.ts +0 -3
- package/dist/experimental/plan_and_execute/index.js +0 -3
- package/dist/experimental/plan_and_execute/outputParser.cjs +0 -46
- package/dist/experimental/plan_and_execute/outputParser.d.ts +0 -25
- package/dist/experimental/plan_and_execute/outputParser.js +0 -42
- package/dist/experimental/plan_and_execute/prompt.cjs +0 -43
- package/dist/experimental/plan_and_execute/prompt.d.ts +0 -12
- package/dist/experimental/plan_and_execute/prompt.js +0 -39
- package/dist/experimental/prompts/custom_format.cjs +0 -78
- package/dist/experimental/prompts/custom_format.d.ts +0 -24
- package/dist/experimental/prompts/custom_format.js +0 -74
- package/dist/experimental/prompts/handlebars.cjs +0 -71
- package/dist/experimental/prompts/handlebars.d.ts +0 -13
- package/dist/experimental/prompts/handlebars.js +0 -62
- package/dist/indexes/index.cjs +0 -10
- package/dist/indexes/index.d.ts +0 -2
- package/dist/indexes/index.js +0 -2
- package/dist/load/import_constants.d.ts +0 -1
- package/dist/load/import_map.d.ts +0 -181
- package/dist/load/import_type.cjs +0 -3
- package/dist/load/import_type.js +0 -2
- package/dist/load/map_keys.cjs +0 -2
- package/dist/load/map_keys.js +0 -1
- package/dist/memory/base.cjs +0 -20
- package/dist/memory/base.d.ts +0 -2
- package/dist/memory/base.js +0 -2
- package/dist/memory/stores/entity/in_memory.d.ts +0 -40
- package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.d.ts +0 -24
- package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.d.ts +0 -24
- package/dist/output_parsers/expression_type_handlers/call_expression_handler.d.ts +0 -28
- package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.d.ts +0 -13
- package/dist/output_parsers/expression_type_handlers/identifier_handler.d.ts +0 -25
- package/dist/output_parsers/expression_type_handlers/member_expression_handler.d.ts +0 -23
- package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.d.ts +0 -22
- package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.d.ts +0 -22
- package/dist/output_parsers/expression_type_handlers/property_assignment_handler.d.ts +0 -23
- package/dist/output_parsers/expression_type_handlers/string_literal_handler.d.ts +0 -22
- package/dist/output_parsers/expression_type_handlers/types.cjs +0 -2
- package/dist/output_parsers/expression_type_handlers/types.js +0 -1
- package/dist/output_parsers/json.cjs +0 -5
- package/dist/output_parsers/json.d.ts +0 -1
- package/dist/output_parsers/json.js +0 -1
- package/dist/output_parsers/list.cjs +0 -7
- package/dist/output_parsers/list.d.ts +0 -1
- package/dist/output_parsers/list.js +0 -1
- package/dist/output_parsers/noop.d.ts +0 -26
- package/dist/output_parsers/prompts.d.ts +0 -3
- package/dist/prompts/base.cjs +0 -10
- package/dist/prompts/base.d.ts +0 -3
- package/dist/prompts/base.js +0 -3
- package/dist/prompts/chat.cjs +0 -15
- package/dist/prompts/chat.d.ts +0 -2
- package/dist/prompts/chat.js +0 -2
- package/dist/prompts/few_shot.cjs +0 -6
- package/dist/prompts/few_shot.d.ts +0 -1
- package/dist/prompts/few_shot.js +0 -1
- package/dist/prompts/index.cjs +0 -6
- package/dist/prompts/index.d.ts +0 -0
- package/dist/prompts/index.js +0 -6
- package/dist/prompts/pipeline.cjs +0 -5
- package/dist/prompts/pipeline.d.ts +0 -1
- package/dist/prompts/pipeline.js +0 -1
- package/dist/prompts/prompt.cjs +0 -5
- package/dist/prompts/prompt.d.ts +0 -1
- package/dist/prompts/prompt.js +0 -1
- package/dist/prompts/selectors/LengthBasedExampleSelector.cjs +0 -5
- package/dist/prompts/selectors/LengthBasedExampleSelector.d.ts +0 -1
- package/dist/prompts/selectors/LengthBasedExampleSelector.js +0 -1
- package/dist/prompts/selectors/SemanticSimilarityExampleSelector.cjs +0 -17
- package/dist/prompts/selectors/SemanticSimilarityExampleSelector.d.ts +0 -1
- package/dist/prompts/selectors/SemanticSimilarityExampleSelector.js +0 -1
- package/dist/prompts/selectors/conditional.cjs +0 -8
- package/dist/prompts/selectors/conditional.d.ts +0 -1
- package/dist/prompts/selectors/conditional.js +0 -1
- package/dist/prompts/serde.cjs +0 -2
- package/dist/prompts/serde.d.ts +0 -1
- package/dist/prompts/serde.js +0 -1
- package/dist/prompts/template.cjs +0 -11
- package/dist/prompts/template.d.ts +0 -1
- package/dist/prompts/template.js +0 -1
- package/dist/retrievers/document_compressors/chain_extract_prompt.d.ts +0 -1
- package/dist/retrievers/document_compressors/test/document_compressor.int.test.cjs +0 -28
- package/dist/retrievers/document_compressors/test/document_compressor.int.test.d.ts +0 -1
- package/dist/retrievers/document_compressors/test/document_compressor.int.test.js +0 -26
- package/dist/retrievers/self_query/base.cjs +0 -6
- package/dist/retrievers/self_query/base.d.ts +0 -1
- package/dist/retrievers/self_query/base.js +0 -1
- package/dist/runnables/remote.cjs +0 -17
- package/dist/runnables/remote.d.ts +0 -1
- package/dist/runnables/remote.js +0 -1
- package/dist/schema/prompt_template.cjs +0 -34
- package/dist/schema/prompt_template.d.ts +0 -13
- package/dist/schema/prompt_template.js +0 -30
- package/dist/schema/query_constructor.cjs +0 -32
- package/dist/schema/query_constructor.d.ts +0 -12
- package/dist/schema/query_constructor.js +0 -28
- package/dist/smith/config.cjs +0 -81
- package/dist/smith/config.d.ts +0 -245
- package/dist/smith/config.js +0 -74
- package/dist/smith/index.cjs +0 -20
- package/dist/smith/index.d.ts +0 -3
- package/dist/smith/index.js +0 -3
- package/dist/smith/name_generation.cjs +0 -725
- package/dist/smith/name_generation.d.ts +0 -1
- package/dist/smith/name_generation.js +0 -722
- package/dist/smith/progress.cjs +0 -69
- package/dist/smith/progress.d.ts +0 -22
- package/dist/smith/progress.js +0 -65
- package/dist/smith/runner_utils.cjs +0 -575
- package/dist/smith/runner_utils.d.ts +0 -90
- package/dist/smith/runner_utils.js +0 -572
- package/dist/stores/message/utils.cjs +0 -6
- package/dist/stores/message/utils.d.ts +0 -1
- package/dist/stores/message/utils.js +0 -1
- package/dist/tools/base.cjs +0 -7
- package/dist/tools/base.d.ts +0 -1
- package/dist/tools/base.js +0 -1
- package/dist/tools/convert_to_openai.cjs +0 -21
- package/dist/tools/convert_to_openai.d.ts +0 -5
- package/dist/tools/convert_to_openai.js +0 -16
- package/dist/tools/dynamic.cjs +0 -6
- package/dist/tools/dynamic.d.ts +0 -1
- package/dist/tools/dynamic.js +0 -1
- package/dist/types/type-utils.cjs +0 -2
- package/dist/types/type-utils.js +0 -1
- package/dist/util/async_caller.cjs +0 -17
- package/dist/util/async_caller.d.ts +0 -1
- package/dist/util/async_caller.js +0 -1
- package/dist/util/axios-fetch-adapter.cjs +0 -404
- package/dist/util/axios-fetch-adapter.d.ts +0 -6
- package/dist/util/axios-fetch-adapter.js +0 -398
- package/dist/util/axios-types.cjs +0 -2
- package/dist/util/axios-types.d.ts +0 -12
- package/dist/util/axios-types.js +0 -1
- package/dist/util/azure.cjs +0 -43
- package/dist/util/azure.d.ts +0 -30
- package/dist/util/azure.js +0 -40
- package/dist/util/entrypoint_deprecation.d.ts +0 -10
- package/dist/util/env.d.ts +0 -1
- package/dist/util/event-source-parse.cjs +0 -17
- package/dist/util/event-source-parse.d.ts +0 -1
- package/dist/util/event-source-parse.js +0 -1
- package/dist/util/extname.d.ts +0 -1
- package/dist/util/hub.d.ts +0 -2
- package/dist/util/ml-distance/distances.d.ts +0 -24
- package/dist/util/ml-distance-euclidean/euclidean.d.ts +0 -2
- package/dist/util/parse.d.ts +0 -2
- package/dist/util/prompt-layer.cjs +0 -27
- package/dist/util/prompt-layer.d.ts +0 -3
- package/dist/util/prompt-layer.js +0 -23
- package/dist/util/set.d.ts +0 -15
- package/dist/util/stream.cjs +0 -17
- package/dist/util/stream.d.ts +0 -1
- package/dist/util/stream.js +0 -1
- package/dist/util/testing/llms/fake.cjs +0 -82
- package/dist/util/testing/llms/fake.d.ts +0 -31
- package/dist/util/testing/llms/fake.js +0 -78
- package/dist/util/testing/tools/calculator.cjs +0 -47
- package/dist/util/testing/tools/calculator.d.ts +0 -19
- package/dist/util/testing/tools/calculator.js +0 -43
- package/dist/util/testing/tools/serpapi.cjs +0 -201
- package/dist/util/testing/tools/serpapi.d.ts +0 -302
- package/dist/util/testing/tools/serpapi.js +0 -197
- package/dist/util/testing/tools/tavily_search.cjs +0 -75
- package/dist/util/testing/tools/tavily_search.d.ts +0 -23
- package/dist/util/testing/tools/tavily_search.js +0 -71
- package/dist/util/tiktoken.cjs +0 -17
- package/dist/util/tiktoken.d.ts +0 -1
- package/dist/util/tiktoken.js +0 -1
- package/dist/util/types.cjs +0 -5
- package/dist/util/types.d.ts +0 -4
- package/dist/util/types.js +0 -4
- package/document.cjs +0 -1
- package/document.d.cts +0 -1
- package/document.d.ts +0 -1
- package/document.js +0 -1
- package/document_loaders/base.cjs +0 -1
- package/document_loaders/base.d.cts +0 -1
- package/document_loaders/base.d.ts +0 -1
- package/document_loaders/base.js +0 -1
- package/document_loaders/fs/buffer.cjs +0 -1
- package/document_loaders/fs/buffer.d.cts +0 -1
- package/document_loaders/fs/buffer.d.ts +0 -1
- package/document_loaders/fs/buffer.js +0 -1
- package/document_loaders/fs/directory.cjs +0 -1
- package/document_loaders/fs/directory.d.cts +0 -1
- package/document_loaders/fs/directory.d.ts +0 -1
- package/document_loaders/fs/directory.js +0 -1
- package/document_loaders/fs/json.cjs +0 -1
- package/document_loaders/fs/json.d.cts +0 -1
- package/document_loaders/fs/json.d.ts +0 -1
- package/document_loaders/fs/json.js +0 -1
- package/document_loaders/fs/multi_file.cjs +0 -1
- package/document_loaders/fs/multi_file.d.cts +0 -1
- package/document_loaders/fs/multi_file.d.ts +0 -1
- package/document_loaders/fs/multi_file.js +0 -1
- package/document_loaders/fs/text.cjs +0 -1
- package/document_loaders/fs/text.d.cts +0 -1
- package/document_loaders/fs/text.d.ts +0 -1
- package/document_loaders/fs/text.js +0 -1
- package/document_transformers/openai_functions.cjs +0 -1
- package/document_transformers/openai_functions.d.cts +0 -1
- package/document_transformers/openai_functions.d.ts +0 -1
- package/document_transformers/openai_functions.js +0 -1
- package/embeddings/cache_backed.cjs +0 -1
- package/embeddings/cache_backed.d.cts +0 -1
- package/embeddings/cache_backed.d.ts +0 -1
- package/embeddings/cache_backed.js +0 -1
- package/embeddings/fake.cjs +0 -1
- package/embeddings/fake.d.cts +0 -1
- package/embeddings/fake.d.ts +0 -1
- package/embeddings/fake.js +0 -1
- package/evaluation.cjs +0 -1
- package/evaluation.d.cts +0 -1
- package/evaluation.d.ts +0 -1
- package/evaluation.js +0 -1
- package/experimental/autogpt.cjs +0 -1
- package/experimental/autogpt.d.cts +0 -1
- package/experimental/autogpt.d.ts +0 -1
- package/experimental/autogpt.js +0 -1
- package/experimental/babyagi.cjs +0 -1
- package/experimental/babyagi.d.cts +0 -1
- package/experimental/babyagi.d.ts +0 -1
- package/experimental/babyagi.js +0 -1
- package/experimental/chains/violation_of_expectations.cjs +0 -1
- package/experimental/chains/violation_of_expectations.d.cts +0 -1
- package/experimental/chains/violation_of_expectations.d.ts +0 -1
- package/experimental/chains/violation_of_expectations.js +0 -1
- package/experimental/generative_agents.cjs +0 -1
- package/experimental/generative_agents.d.cts +0 -1
- package/experimental/generative_agents.d.ts +0 -1
- package/experimental/generative_agents.js +0 -1
- package/experimental/masking.cjs +0 -1
- package/experimental/masking.d.cts +0 -1
- package/experimental/masking.d.ts +0 -1
- package/experimental/masking.js +0 -1
- package/experimental/openai_assistant.cjs +0 -1
- package/experimental/openai_assistant.d.cts +0 -1
- package/experimental/openai_assistant.d.ts +0 -1
- package/experimental/openai_assistant.js +0 -1
- package/experimental/openai_files.cjs +0 -1
- package/experimental/openai_files.d.cts +0 -1
- package/experimental/openai_files.d.ts +0 -1
- package/experimental/openai_files.js +0 -1
- package/experimental/plan_and_execute.cjs +0 -1
- package/experimental/plan_and_execute.d.cts +0 -1
- package/experimental/plan_and_execute.d.ts +0 -1
- package/experimental/plan_and_execute.js +0 -1
- package/experimental/prompts/custom_format.cjs +0 -1
- package/experimental/prompts/custom_format.d.cts +0 -1
- package/experimental/prompts/custom_format.d.ts +0 -1
- package/experimental/prompts/custom_format.js +0 -1
- package/experimental/prompts/handlebars.cjs +0 -1
- package/experimental/prompts/handlebars.d.cts +0 -1
- package/experimental/prompts/handlebars.d.ts +0 -1
- package/experimental/prompts/handlebars.js +0 -1
- package/hub/node.cjs +0 -1
- package/hub/node.d.cts +0 -1
- package/hub/node.d.ts +0 -1
- package/hub/node.js +0 -1
- package/hub.cjs +0 -1
- package/hub.d.cts +0 -1
- package/hub.d.ts +0 -1
- package/hub.js +0 -1
- package/indexes.cjs +0 -1
- package/indexes.d.cts +0 -1
- package/indexes.d.ts +0 -1
- package/indexes.js +0 -1
- package/load/serializable.cjs +0 -1
- package/load/serializable.d.cts +0 -1
- package/load/serializable.d.ts +0 -1
- package/load/serializable.js +0 -1
- package/load.cjs +0 -1
- package/load.d.cts +0 -1
- package/load.d.ts +0 -1
- package/load.js +0 -1
- package/memory/chat_memory.cjs +0 -1
- package/memory/chat_memory.d.cts +0 -1
- package/memory/chat_memory.d.ts +0 -1
- package/memory/chat_memory.js +0 -1
- package/memory.cjs +0 -1
- package/memory.d.cts +0 -1
- package/memory.d.ts +0 -1
- package/memory.js +0 -1
- package/output_parsers/expression.cjs +0 -1
- package/output_parsers/expression.d.cts +0 -1
- package/output_parsers/expression.d.ts +0 -1
- package/output_parsers/expression.js +0 -1
- package/output_parsers.cjs +0 -1
- package/output_parsers.d.cts +0 -1
- package/output_parsers.d.ts +0 -1
- package/output_parsers.js +0 -1
- package/retrievers/contextual_compression.cjs +0 -1
- package/retrievers/contextual_compression.d.cts +0 -1
- package/retrievers/contextual_compression.d.ts +0 -1
- package/retrievers/contextual_compression.js +0 -1
- package/retrievers/document_compressors/chain_extract.cjs +0 -1
- package/retrievers/document_compressors/chain_extract.d.cts +0 -1
- package/retrievers/document_compressors/chain_extract.d.ts +0 -1
- package/retrievers/document_compressors/chain_extract.js +0 -1
- package/retrievers/document_compressors/embeddings_filter.cjs +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.cts +0 -1
- package/retrievers/document_compressors/embeddings_filter.d.ts +0 -1
- package/retrievers/document_compressors/embeddings_filter.js +0 -1
- package/retrievers/document_compressors.cjs +0 -1
- package/retrievers/document_compressors.d.cts +0 -1
- package/retrievers/document_compressors.d.ts +0 -1
- package/retrievers/document_compressors.js +0 -1
- package/retrievers/ensemble.cjs +0 -1
- package/retrievers/ensemble.d.cts +0 -1
- package/retrievers/ensemble.d.ts +0 -1
- package/retrievers/ensemble.js +0 -1
- package/retrievers/hyde.cjs +0 -1
- package/retrievers/hyde.d.cts +0 -1
- package/retrievers/hyde.d.ts +0 -1
- package/retrievers/hyde.js +0 -1
- package/retrievers/matryoshka_retriever.cjs +0 -1
- package/retrievers/matryoshka_retriever.d.cts +0 -1
- package/retrievers/matryoshka_retriever.d.ts +0 -1
- package/retrievers/matryoshka_retriever.js +0 -1
- package/retrievers/multi_query.cjs +0 -1
- package/retrievers/multi_query.d.cts +0 -1
- package/retrievers/multi_query.d.ts +0 -1
- package/retrievers/multi_query.js +0 -1
- package/retrievers/multi_vector.cjs +0 -1
- package/retrievers/multi_vector.d.cts +0 -1
- package/retrievers/multi_vector.d.ts +0 -1
- package/retrievers/multi_vector.js +0 -1
- package/retrievers/parent_document.cjs +0 -1
- package/retrievers/parent_document.d.cts +0 -1
- package/retrievers/parent_document.d.ts +0 -1
- package/retrievers/parent_document.js +0 -1
- package/retrievers/score_threshold.cjs +0 -1
- package/retrievers/score_threshold.d.cts +0 -1
- package/retrievers/score_threshold.d.ts +0 -1
- package/retrievers/score_threshold.js +0 -1
- package/retrievers/self_query/functional.cjs +0 -1
- package/retrievers/self_query/functional.d.cts +0 -1
- package/retrievers/self_query/functional.d.ts +0 -1
- package/retrievers/self_query/functional.js +0 -1
- package/retrievers/self_query.cjs +0 -1
- package/retrievers/self_query.d.cts +0 -1
- package/retrievers/self_query.d.ts +0 -1
- package/retrievers/self_query.js +0 -1
- package/retrievers/time_weighted.cjs +0 -1
- package/retrievers/time_weighted.d.cts +0 -1
- package/retrievers/time_weighted.d.ts +0 -1
- package/retrievers/time_weighted.js +0 -1
- package/runnables/remote.cjs +0 -1
- package/runnables/remote.d.cts +0 -1
- package/runnables/remote.d.ts +0 -1
- package/runnables/remote.js +0 -1
- package/schema/prompt_template.cjs +0 -1
- package/schema/prompt_template.d.cts +0 -1
- package/schema/prompt_template.d.ts +0 -1
- package/schema/prompt_template.js +0 -1
- package/schema/query_constructor.cjs +0 -1
- package/schema/query_constructor.d.cts +0 -1
- package/schema/query_constructor.d.ts +0 -1
- package/schema/query_constructor.js +0 -1
- package/smith.cjs +0 -1
- package/smith.d.cts +0 -1
- package/smith.d.ts +0 -1
- package/smith.js +0 -1
- package/sql_db.cjs +0 -1
- package/sql_db.d.cts +0 -1
- package/sql_db.d.ts +0 -1
- package/sql_db.js +0 -1
- package/storage/encoder_backed.cjs +0 -1
- package/storage/encoder_backed.d.cts +0 -1
- package/storage/encoder_backed.d.ts +0 -1
- package/storage/encoder_backed.js +0 -1
- package/storage/file_system.cjs +0 -1
- package/storage/file_system.d.cts +0 -1
- package/storage/file_system.d.ts +0 -1
- package/storage/file_system.js +0 -1
- package/storage/in_memory.cjs +0 -1
- package/storage/in_memory.d.cts +0 -1
- package/storage/in_memory.d.ts +0 -1
- package/storage/in_memory.js +0 -1
- package/stores/doc/base.cjs +0 -1
- package/stores/doc/base.d.cts +0 -1
- package/stores/doc/base.d.ts +0 -1
- package/stores/doc/base.js +0 -1
- package/stores/doc/in_memory.cjs +0 -1
- package/stores/doc/in_memory.d.cts +0 -1
- package/stores/doc/in_memory.d.ts +0 -1
- package/stores/doc/in_memory.js +0 -1
- package/stores/file/in_memory.cjs +0 -1
- package/stores/file/in_memory.d.cts +0 -1
- package/stores/file/in_memory.d.ts +0 -1
- package/stores/file/in_memory.js +0 -1
- package/stores/file/node.cjs +0 -1
- package/stores/file/node.d.cts +0 -1
- package/stores/file/node.d.ts +0 -1
- package/stores/file/node.js +0 -1
- package/stores/message/in_memory.cjs +0 -1
- package/stores/message/in_memory.d.cts +0 -1
- package/stores/message/in_memory.d.ts +0 -1
- package/stores/message/in_memory.js +0 -1
- package/text_splitter.cjs +0 -1
- package/text_splitter.d.cts +0 -1
- package/text_splitter.d.ts +0 -1
- package/text_splitter.js +0 -1
- package/tools/chain.cjs +0 -1
- package/tools/chain.d.cts +0 -1
- package/tools/chain.d.ts +0 -1
- package/tools/chain.js +0 -1
- package/tools/render.cjs +0 -1
- package/tools/render.d.cts +0 -1
- package/tools/render.d.ts +0 -1
- package/tools/render.js +0 -1
- package/tools/retriever.cjs +0 -1
- package/tools/retriever.d.cts +0 -1
- package/tools/retriever.d.ts +0 -1
- package/tools/retriever.js +0 -1
- package/tools/sql.cjs +0 -1
- package/tools/sql.d.cts +0 -1
- package/tools/sql.d.ts +0 -1
- package/tools/sql.js +0 -1
- package/tools/webbrowser.cjs +0 -1
- package/tools/webbrowser.d.cts +0 -1
- package/tools/webbrowser.d.ts +0 -1
- package/tools/webbrowser.js +0 -1
- package/tools.cjs +0 -1
- package/tools.d.cts +0 -1
- package/tools.d.ts +0 -1
- package/tools.js +0 -1
- package/util/document.cjs +0 -1
- package/util/document.d.cts +0 -1
- package/util/document.d.ts +0 -1
- package/util/document.js +0 -1
- package/util/math.cjs +0 -1
- package/util/math.d.cts +0 -1
- package/util/math.d.ts +0 -1
- package/util/math.js +0 -1
- package/util/time.cjs +0 -1
- package/util/time.d.cts +0 -1
- package/util/time.d.ts +0 -1
- package/util/time.js +0 -1
- package/vectorstores/memory.cjs +0 -1
- package/vectorstores/memory.d.cts +0 -1
- package/vectorstores/memory.d.ts +0 -1
- package/vectorstores/memory.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js"],"sourcesContent":["'use strict';\nmodule.exports = (promise, onFinally) => {\n\tonFinally = onFinally || (() => {});\n\n\treturn promise.then(\n\t\tval => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => val),\n\t\terr => new Promise(resolve => {\n\t\t\tresolve(onFinally());\n\t\t}).then(() => {\n\t\t\tthrow err;\n\t\t})\n\t);\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CACA,OAAO,UAAU,CAAC,SAAS,cAAc;EACxC,YAAY,cAAc,MAAM,CAAE;AAElC,SAAO,QAAQ,KACd,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM,IAAI,EAClB,SAAO,IAAI,QAAQ,aAAW;GAC7B,QAAQ,WAAW,CAAC;EACpB,GAAE,KAAK,MAAM;AACb,SAAM;EACN,EAAC,CACF;CACD"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
const require_index = require('../../../../eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs');
|
|
6
|
+
const require_index$1 = require('../../../../p-timeout@3.2.0/node_modules/p-timeout/index.cjs');
|
|
7
|
+
const require_priority_queue$1 = require('./priority-queue.cjs');
|
|
8
|
+
|
|
9
|
+
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
10
|
+
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js": ((exports) => {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const EventEmitter = require_index.require_eventemitter3();
|
|
13
|
+
const p_timeout_1 = require_index$1.require_p_timeout();
|
|
14
|
+
const priority_queue_1 = require_priority_queue$1.require_priority_queue();
|
|
15
|
+
const empty = () => {};
|
|
16
|
+
const timeoutError = new p_timeout_1.TimeoutError();
|
|
17
|
+
/**
|
|
18
|
+
Promise queue with concurrency control.
|
|
19
|
+
*/
|
|
20
|
+
var PQueue = class extends EventEmitter {
|
|
21
|
+
constructor(options) {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
super();
|
|
24
|
+
this._intervalCount = 0;
|
|
25
|
+
this._intervalEnd = 0;
|
|
26
|
+
this._pendingCount = 0;
|
|
27
|
+
this._resolveEmpty = empty;
|
|
28
|
+
this._resolveIdle = empty;
|
|
29
|
+
options = Object.assign({
|
|
30
|
+
carryoverConcurrencyCount: false,
|
|
31
|
+
intervalCap: Infinity,
|
|
32
|
+
interval: 0,
|
|
33
|
+
concurrency: Infinity,
|
|
34
|
+
autoStart: true,
|
|
35
|
+
queueClass: priority_queue_1.default
|
|
36
|
+
}, options);
|
|
37
|
+
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""}\` (${typeof options.intervalCap})`);
|
|
38
|
+
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ""}\` (${typeof options.interval})`);
|
|
39
|
+
this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
40
|
+
this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;
|
|
41
|
+
this._intervalCap = options.intervalCap;
|
|
42
|
+
this._interval = options.interval;
|
|
43
|
+
this._queue = new options.queueClass();
|
|
44
|
+
this._queueClass = options.queueClass;
|
|
45
|
+
this.concurrency = options.concurrency;
|
|
46
|
+
this._timeout = options.timeout;
|
|
47
|
+
this._throwOnTimeout = options.throwOnTimeout === true;
|
|
48
|
+
this._isPaused = options.autoStart === false;
|
|
49
|
+
}
|
|
50
|
+
get _doesIntervalAllowAnother() {
|
|
51
|
+
return this._isIntervalIgnored || this._intervalCount < this._intervalCap;
|
|
52
|
+
}
|
|
53
|
+
get _doesConcurrentAllowAnother() {
|
|
54
|
+
return this._pendingCount < this._concurrency;
|
|
55
|
+
}
|
|
56
|
+
_next() {
|
|
57
|
+
this._pendingCount--;
|
|
58
|
+
this._tryToStartAnother();
|
|
59
|
+
this.emit("next");
|
|
60
|
+
}
|
|
61
|
+
_resolvePromises() {
|
|
62
|
+
this._resolveEmpty();
|
|
63
|
+
this._resolveEmpty = empty;
|
|
64
|
+
if (this._pendingCount === 0) {
|
|
65
|
+
this._resolveIdle();
|
|
66
|
+
this._resolveIdle = empty;
|
|
67
|
+
this.emit("idle");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_onResumeInterval() {
|
|
71
|
+
this._onInterval();
|
|
72
|
+
this._initializeIntervalIfNeeded();
|
|
73
|
+
this._timeoutId = void 0;
|
|
74
|
+
}
|
|
75
|
+
_isIntervalPaused() {
|
|
76
|
+
const now = Date.now();
|
|
77
|
+
if (this._intervalId === void 0) {
|
|
78
|
+
const delay = this._intervalEnd - now;
|
|
79
|
+
if (delay < 0) this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
80
|
+
else {
|
|
81
|
+
if (this._timeoutId === void 0) this._timeoutId = setTimeout(() => {
|
|
82
|
+
this._onResumeInterval();
|
|
83
|
+
}, delay);
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
_tryToStartAnother() {
|
|
90
|
+
if (this._queue.size === 0) {
|
|
91
|
+
if (this._intervalId) clearInterval(this._intervalId);
|
|
92
|
+
this._intervalId = void 0;
|
|
93
|
+
this._resolvePromises();
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
if (!this._isPaused) {
|
|
97
|
+
const canInitializeInterval = !this._isIntervalPaused();
|
|
98
|
+
if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {
|
|
99
|
+
const job = this._queue.dequeue();
|
|
100
|
+
if (!job) return false;
|
|
101
|
+
this.emit("active");
|
|
102
|
+
job();
|
|
103
|
+
if (canInitializeInterval) this._initializeIntervalIfNeeded();
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
_initializeIntervalIfNeeded() {
|
|
110
|
+
if (this._isIntervalIgnored || this._intervalId !== void 0) return;
|
|
111
|
+
this._intervalId = setInterval(() => {
|
|
112
|
+
this._onInterval();
|
|
113
|
+
}, this._interval);
|
|
114
|
+
this._intervalEnd = Date.now() + this._interval;
|
|
115
|
+
}
|
|
116
|
+
_onInterval() {
|
|
117
|
+
if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {
|
|
118
|
+
clearInterval(this._intervalId);
|
|
119
|
+
this._intervalId = void 0;
|
|
120
|
+
}
|
|
121
|
+
this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
122
|
+
this._processQueue();
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
Executes all queued functions until it reaches the limit.
|
|
126
|
+
*/
|
|
127
|
+
_processQueue() {
|
|
128
|
+
while (this._tryToStartAnother());
|
|
129
|
+
}
|
|
130
|
+
get concurrency() {
|
|
131
|
+
return this._concurrency;
|
|
132
|
+
}
|
|
133
|
+
set concurrency(newConcurrency) {
|
|
134
|
+
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
135
|
+
this._concurrency = newConcurrency;
|
|
136
|
+
this._processQueue();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
Adds a sync or async task to the queue. Always returns a promise.
|
|
140
|
+
*/
|
|
141
|
+
async add(fn, options = {}) {
|
|
142
|
+
return new Promise((resolve, reject) => {
|
|
143
|
+
const run = async () => {
|
|
144
|
+
this._pendingCount++;
|
|
145
|
+
this._intervalCount++;
|
|
146
|
+
try {
|
|
147
|
+
const operation = this._timeout === void 0 && options.timeout === void 0 ? fn() : p_timeout_1.default(Promise.resolve(fn()), options.timeout === void 0 ? this._timeout : options.timeout, () => {
|
|
148
|
+
if (options.throwOnTimeout === void 0 ? this._throwOnTimeout : options.throwOnTimeout) reject(timeoutError);
|
|
149
|
+
return void 0;
|
|
150
|
+
});
|
|
151
|
+
resolve(await operation);
|
|
152
|
+
} catch (error) {
|
|
153
|
+
reject(error);
|
|
154
|
+
}
|
|
155
|
+
this._next();
|
|
156
|
+
};
|
|
157
|
+
this._queue.enqueue(run, options);
|
|
158
|
+
this._tryToStartAnother();
|
|
159
|
+
this.emit("add");
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
Same as `.add()`, but accepts an array of sync or async functions.
|
|
164
|
+
|
|
165
|
+
@returns A promise that resolves when all functions are resolved.
|
|
166
|
+
*/
|
|
167
|
+
async addAll(functions, options) {
|
|
168
|
+
return Promise.all(functions.map(async (function_) => this.add(function_, options)));
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
172
|
+
*/
|
|
173
|
+
start() {
|
|
174
|
+
if (!this._isPaused) return this;
|
|
175
|
+
this._isPaused = false;
|
|
176
|
+
this._processQueue();
|
|
177
|
+
return this;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
Put queue execution on hold.
|
|
181
|
+
*/
|
|
182
|
+
pause() {
|
|
183
|
+
this._isPaused = true;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
Clear the queue.
|
|
187
|
+
*/
|
|
188
|
+
clear() {
|
|
189
|
+
this._queue = new this._queueClass();
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
193
|
+
|
|
194
|
+
@returns A promise that settles when the queue becomes empty.
|
|
195
|
+
*/
|
|
196
|
+
async onEmpty() {
|
|
197
|
+
if (this._queue.size === 0) return;
|
|
198
|
+
return new Promise((resolve) => {
|
|
199
|
+
const existingResolve = this._resolveEmpty;
|
|
200
|
+
this._resolveEmpty = () => {
|
|
201
|
+
existingResolve();
|
|
202
|
+
resolve();
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
208
|
+
|
|
209
|
+
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
210
|
+
*/
|
|
211
|
+
async onIdle() {
|
|
212
|
+
if (this._pendingCount === 0 && this._queue.size === 0) return;
|
|
213
|
+
return new Promise((resolve) => {
|
|
214
|
+
const existingResolve = this._resolveIdle;
|
|
215
|
+
this._resolveIdle = () => {
|
|
216
|
+
existingResolve();
|
|
217
|
+
resolve();
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
Size of the queue.
|
|
223
|
+
*/
|
|
224
|
+
get size() {
|
|
225
|
+
return this._queue.size;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
Size of the queue, filtered by the given options.
|
|
229
|
+
|
|
230
|
+
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
231
|
+
*/
|
|
232
|
+
sizeBy(options) {
|
|
233
|
+
return this._queue.filter(options).length;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
Number of pending promises.
|
|
237
|
+
*/
|
|
238
|
+
get pending() {
|
|
239
|
+
return this._pendingCount;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
Whether the queue is currently paused.
|
|
243
|
+
*/
|
|
244
|
+
get isPaused() {
|
|
245
|
+
return this._isPaused;
|
|
246
|
+
}
|
|
247
|
+
get timeout() {
|
|
248
|
+
return this._timeout;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
Set the timeout for future operations.
|
|
252
|
+
*/
|
|
253
|
+
set timeout(milliseconds) {
|
|
254
|
+
this._timeout = milliseconds;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
exports.default = PQueue;
|
|
258
|
+
}) });
|
|
259
|
+
|
|
260
|
+
//#endregion
|
|
261
|
+
Object.defineProperty(exports, 'default', {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () {
|
|
264
|
+
return require_dist();
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst EventEmitter = require(\"eventemitter3\");\nconst p_timeout_1 = require(\"p-timeout\");\nconst priority_queue_1 = require(\"./priority-queue\");\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst empty = () => { };\nconst timeoutError = new p_timeout_1.TimeoutError();\n/**\nPromise queue with concurrency control.\n*/\nclass PQueue extends EventEmitter {\n constructor(options) {\n var _a, _b, _c, _d;\n super();\n this._intervalCount = 0;\n this._intervalEnd = 0;\n this._pendingCount = 0;\n this._resolveEmpty = empty;\n this._resolveIdle = empty;\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n options = Object.assign({ carryoverConcurrencyCount: false, intervalCap: Infinity, interval: 0, concurrency: Infinity, autoStart: true, queueClass: priority_queue_1.default }, options);\n if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) {\n throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ''}\\` (${typeof options.intervalCap})`);\n }\n if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) {\n throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ''}\\` (${typeof options.interval})`);\n }\n this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;\n this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;\n this._intervalCap = options.intervalCap;\n this._interval = options.interval;\n this._queue = new options.queueClass();\n this._queueClass = options.queueClass;\n this.concurrency = options.concurrency;\n this._timeout = options.timeout;\n this._throwOnTimeout = options.throwOnTimeout === true;\n this._isPaused = options.autoStart === false;\n }\n get _doesIntervalAllowAnother() {\n return this._isIntervalIgnored || this._intervalCount < this._intervalCap;\n }\n get _doesConcurrentAllowAnother() {\n return this._pendingCount < this._concurrency;\n }\n _next() {\n this._pendingCount--;\n this._tryToStartAnother();\n this.emit('next');\n }\n _resolvePromises() {\n this._resolveEmpty();\n this._resolveEmpty = empty;\n if (this._pendingCount === 0) {\n this._resolveIdle();\n this._resolveIdle = empty;\n this.emit('idle');\n }\n }\n _onResumeInterval() {\n this._onInterval();\n this._initializeIntervalIfNeeded();\n this._timeoutId = undefined;\n }\n _isIntervalPaused() {\n const now = Date.now();\n if (this._intervalId === undefined) {\n const delay = this._intervalEnd - now;\n if (delay < 0) {\n // Act as the interval was done\n // We don't need to resume it here because it will be resumed on line 160\n this._intervalCount = (this._carryoverConcurrencyCount) ? this._pendingCount : 0;\n }\n else {\n // Act as the interval is pending\n if (this._timeoutId === undefined) {\n this._timeoutId = setTimeout(() => {\n this._onResumeInterval();\n }, delay);\n }\n return true;\n }\n }\n return false;\n }\n _tryToStartAnother() {\n if (this._queue.size === 0) {\n // We can clear the interval (\"pause\")\n // Because we can redo it later (\"resume\")\n if (this._intervalId) {\n clearInterval(this._intervalId);\n }\n this._intervalId = undefined;\n this._resolvePromises();\n return false;\n }\n if (!this._isPaused) {\n const canInitializeInterval = !this._isIntervalPaused();\n if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {\n const job = this._queue.dequeue();\n if (!job) {\n return false;\n }\n this.emit('active');\n job();\n if (canInitializeInterval) {\n this._initializeIntervalIfNeeded();\n }\n return true;\n }\n }\n return false;\n }\n _initializeIntervalIfNeeded() {\n if (this._isIntervalIgnored || this._intervalId !== undefined) {\n return;\n }\n this._intervalId = setInterval(() => {\n this._onInterval();\n }, this._interval);\n this._intervalEnd = Date.now() + this._interval;\n }\n _onInterval() {\n if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = undefined;\n }\n this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;\n this._processQueue();\n }\n /**\n Executes all queued functions until it reaches the limit.\n */\n _processQueue() {\n // eslint-disable-next-line no-empty\n while (this._tryToStartAnother()) { }\n }\n get concurrency() {\n return this._concurrency;\n }\n set concurrency(newConcurrency) {\n if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) {\n throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${newConcurrency}\\` (${typeof newConcurrency})`);\n }\n this._concurrency = newConcurrency;\n this._processQueue();\n }\n /**\n Adds a sync or async task to the queue. Always returns a promise.\n */\n async add(fn, options = {}) {\n return new Promise((resolve, reject) => {\n const run = async () => {\n this._pendingCount++;\n this._intervalCount++;\n try {\n const operation = (this._timeout === undefined && options.timeout === undefined) ? fn() : p_timeout_1.default(Promise.resolve(fn()), (options.timeout === undefined ? this._timeout : options.timeout), () => {\n if (options.throwOnTimeout === undefined ? this._throwOnTimeout : options.throwOnTimeout) {\n reject(timeoutError);\n }\n return undefined;\n });\n resolve(await operation);\n }\n catch (error) {\n reject(error);\n }\n this._next();\n };\n this._queue.enqueue(run, options);\n this._tryToStartAnother();\n this.emit('add');\n });\n }\n /**\n Same as `.add()`, but accepts an array of sync or async functions.\n\n @returns A promise that resolves when all functions are resolved.\n */\n async addAll(functions, options) {\n return Promise.all(functions.map(async (function_) => this.add(function_, options)));\n }\n /**\n Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)\n */\n start() {\n if (!this._isPaused) {\n return this;\n }\n this._isPaused = false;\n this._processQueue();\n return this;\n }\n /**\n Put queue execution on hold.\n */\n pause() {\n this._isPaused = true;\n }\n /**\n Clear the queue.\n */\n clear() {\n this._queue = new this._queueClass();\n }\n /**\n Can be called multiple times. Useful if you for example add additional items at a later time.\n\n @returns A promise that settles when the queue becomes empty.\n */\n async onEmpty() {\n // Instantly resolve if the queue is empty\n if (this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveEmpty;\n this._resolveEmpty = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.\n\n @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.\n */\n async onIdle() {\n // Instantly resolve if none pending and if nothing else is queued\n if (this._pendingCount === 0 && this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveIdle;\n this._resolveIdle = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n Size of the queue.\n */\n get size() {\n return this._queue.size;\n }\n /**\n Size of the queue, filtered by the given options.\n\n For example, this can be used to find the number of items remaining in the queue with a specific priority level.\n */\n sizeBy(options) {\n // eslint-disable-next-line unicorn/no-fn-reference-in-iterator\n return this._queue.filter(options).length;\n }\n /**\n Number of pending promises.\n */\n get pending() {\n return this._pendingCount;\n }\n /**\n Whether the queue is currently paused.\n */\n get isPaused() {\n return this._isPaused;\n }\n get timeout() {\n return this._timeout;\n }\n /**\n Set the timeout for future operations.\n */\n set timeout(milliseconds) {\n this._timeout = milliseconds;\n }\n}\nexports.default = PQueue;\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
4
|
+
import { require_eventemitter3 } from "../../../../eventemitter3@4.0.7/node_modules/eventemitter3/index.js";
|
|
5
|
+
import { require_p_timeout } from "../../../../p-timeout@3.2.0/node_modules/p-timeout/index.js";
|
|
6
|
+
import { require_priority_queue } from "./priority-queue.js";
|
|
7
|
+
|
|
8
|
+
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js
|
|
9
|
+
var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js": ((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
const EventEmitter = require_eventemitter3();
|
|
12
|
+
const p_timeout_1 = require_p_timeout();
|
|
13
|
+
const priority_queue_1 = require_priority_queue();
|
|
14
|
+
const empty = () => {};
|
|
15
|
+
const timeoutError = new p_timeout_1.TimeoutError();
|
|
16
|
+
/**
|
|
17
|
+
Promise queue with concurrency control.
|
|
18
|
+
*/
|
|
19
|
+
var PQueue = class extends EventEmitter {
|
|
20
|
+
constructor(options) {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
super();
|
|
23
|
+
this._intervalCount = 0;
|
|
24
|
+
this._intervalEnd = 0;
|
|
25
|
+
this._pendingCount = 0;
|
|
26
|
+
this._resolveEmpty = empty;
|
|
27
|
+
this._resolveIdle = empty;
|
|
28
|
+
options = Object.assign({
|
|
29
|
+
carryoverConcurrencyCount: false,
|
|
30
|
+
intervalCap: Infinity,
|
|
31
|
+
interval: 0,
|
|
32
|
+
concurrency: Infinity,
|
|
33
|
+
autoStart: true,
|
|
34
|
+
queueClass: priority_queue_1.default
|
|
35
|
+
}, options);
|
|
36
|
+
if (!(typeof options.intervalCap === "number" && options.intervalCap >= 1)) throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ""}\` (${typeof options.intervalCap})`);
|
|
37
|
+
if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ""}\` (${typeof options.interval})`);
|
|
38
|
+
this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;
|
|
39
|
+
this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;
|
|
40
|
+
this._intervalCap = options.intervalCap;
|
|
41
|
+
this._interval = options.interval;
|
|
42
|
+
this._queue = new options.queueClass();
|
|
43
|
+
this._queueClass = options.queueClass;
|
|
44
|
+
this.concurrency = options.concurrency;
|
|
45
|
+
this._timeout = options.timeout;
|
|
46
|
+
this._throwOnTimeout = options.throwOnTimeout === true;
|
|
47
|
+
this._isPaused = options.autoStart === false;
|
|
48
|
+
}
|
|
49
|
+
get _doesIntervalAllowAnother() {
|
|
50
|
+
return this._isIntervalIgnored || this._intervalCount < this._intervalCap;
|
|
51
|
+
}
|
|
52
|
+
get _doesConcurrentAllowAnother() {
|
|
53
|
+
return this._pendingCount < this._concurrency;
|
|
54
|
+
}
|
|
55
|
+
_next() {
|
|
56
|
+
this._pendingCount--;
|
|
57
|
+
this._tryToStartAnother();
|
|
58
|
+
this.emit("next");
|
|
59
|
+
}
|
|
60
|
+
_resolvePromises() {
|
|
61
|
+
this._resolveEmpty();
|
|
62
|
+
this._resolveEmpty = empty;
|
|
63
|
+
if (this._pendingCount === 0) {
|
|
64
|
+
this._resolveIdle();
|
|
65
|
+
this._resolveIdle = empty;
|
|
66
|
+
this.emit("idle");
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
_onResumeInterval() {
|
|
70
|
+
this._onInterval();
|
|
71
|
+
this._initializeIntervalIfNeeded();
|
|
72
|
+
this._timeoutId = void 0;
|
|
73
|
+
}
|
|
74
|
+
_isIntervalPaused() {
|
|
75
|
+
const now = Date.now();
|
|
76
|
+
if (this._intervalId === void 0) {
|
|
77
|
+
const delay = this._intervalEnd - now;
|
|
78
|
+
if (delay < 0) this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
79
|
+
else {
|
|
80
|
+
if (this._timeoutId === void 0) this._timeoutId = setTimeout(() => {
|
|
81
|
+
this._onResumeInterval();
|
|
82
|
+
}, delay);
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
_tryToStartAnother() {
|
|
89
|
+
if (this._queue.size === 0) {
|
|
90
|
+
if (this._intervalId) clearInterval(this._intervalId);
|
|
91
|
+
this._intervalId = void 0;
|
|
92
|
+
this._resolvePromises();
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (!this._isPaused) {
|
|
96
|
+
const canInitializeInterval = !this._isIntervalPaused();
|
|
97
|
+
if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {
|
|
98
|
+
const job = this._queue.dequeue();
|
|
99
|
+
if (!job) return false;
|
|
100
|
+
this.emit("active");
|
|
101
|
+
job();
|
|
102
|
+
if (canInitializeInterval) this._initializeIntervalIfNeeded();
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
_initializeIntervalIfNeeded() {
|
|
109
|
+
if (this._isIntervalIgnored || this._intervalId !== void 0) return;
|
|
110
|
+
this._intervalId = setInterval(() => {
|
|
111
|
+
this._onInterval();
|
|
112
|
+
}, this._interval);
|
|
113
|
+
this._intervalEnd = Date.now() + this._interval;
|
|
114
|
+
}
|
|
115
|
+
_onInterval() {
|
|
116
|
+
if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {
|
|
117
|
+
clearInterval(this._intervalId);
|
|
118
|
+
this._intervalId = void 0;
|
|
119
|
+
}
|
|
120
|
+
this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;
|
|
121
|
+
this._processQueue();
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
Executes all queued functions until it reaches the limit.
|
|
125
|
+
*/
|
|
126
|
+
_processQueue() {
|
|
127
|
+
while (this._tryToStartAnother());
|
|
128
|
+
}
|
|
129
|
+
get concurrency() {
|
|
130
|
+
return this._concurrency;
|
|
131
|
+
}
|
|
132
|
+
set concurrency(newConcurrency) {
|
|
133
|
+
if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
|
|
134
|
+
this._concurrency = newConcurrency;
|
|
135
|
+
this._processQueue();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
Adds a sync or async task to the queue. Always returns a promise.
|
|
139
|
+
*/
|
|
140
|
+
async add(fn, options = {}) {
|
|
141
|
+
return new Promise((resolve, reject) => {
|
|
142
|
+
const run = async () => {
|
|
143
|
+
this._pendingCount++;
|
|
144
|
+
this._intervalCount++;
|
|
145
|
+
try {
|
|
146
|
+
const operation = this._timeout === void 0 && options.timeout === void 0 ? fn() : p_timeout_1.default(Promise.resolve(fn()), options.timeout === void 0 ? this._timeout : options.timeout, () => {
|
|
147
|
+
if (options.throwOnTimeout === void 0 ? this._throwOnTimeout : options.throwOnTimeout) reject(timeoutError);
|
|
148
|
+
return void 0;
|
|
149
|
+
});
|
|
150
|
+
resolve(await operation);
|
|
151
|
+
} catch (error) {
|
|
152
|
+
reject(error);
|
|
153
|
+
}
|
|
154
|
+
this._next();
|
|
155
|
+
};
|
|
156
|
+
this._queue.enqueue(run, options);
|
|
157
|
+
this._tryToStartAnother();
|
|
158
|
+
this.emit("add");
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
Same as `.add()`, but accepts an array of sync or async functions.
|
|
163
|
+
|
|
164
|
+
@returns A promise that resolves when all functions are resolved.
|
|
165
|
+
*/
|
|
166
|
+
async addAll(functions, options) {
|
|
167
|
+
return Promise.all(functions.map(async (function_) => this.add(function_, options)));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
|
|
171
|
+
*/
|
|
172
|
+
start() {
|
|
173
|
+
if (!this._isPaused) return this;
|
|
174
|
+
this._isPaused = false;
|
|
175
|
+
this._processQueue();
|
|
176
|
+
return this;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
Put queue execution on hold.
|
|
180
|
+
*/
|
|
181
|
+
pause() {
|
|
182
|
+
this._isPaused = true;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
Clear the queue.
|
|
186
|
+
*/
|
|
187
|
+
clear() {
|
|
188
|
+
this._queue = new this._queueClass();
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
Can be called multiple times. Useful if you for example add additional items at a later time.
|
|
192
|
+
|
|
193
|
+
@returns A promise that settles when the queue becomes empty.
|
|
194
|
+
*/
|
|
195
|
+
async onEmpty() {
|
|
196
|
+
if (this._queue.size === 0) return;
|
|
197
|
+
return new Promise((resolve) => {
|
|
198
|
+
const existingResolve = this._resolveEmpty;
|
|
199
|
+
this._resolveEmpty = () => {
|
|
200
|
+
existingResolve();
|
|
201
|
+
resolve();
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
|
|
207
|
+
|
|
208
|
+
@returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
|
|
209
|
+
*/
|
|
210
|
+
async onIdle() {
|
|
211
|
+
if (this._pendingCount === 0 && this._queue.size === 0) return;
|
|
212
|
+
return new Promise((resolve) => {
|
|
213
|
+
const existingResolve = this._resolveIdle;
|
|
214
|
+
this._resolveIdle = () => {
|
|
215
|
+
existingResolve();
|
|
216
|
+
resolve();
|
|
217
|
+
};
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
Size of the queue.
|
|
222
|
+
*/
|
|
223
|
+
get size() {
|
|
224
|
+
return this._queue.size;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
Size of the queue, filtered by the given options.
|
|
228
|
+
|
|
229
|
+
For example, this can be used to find the number of items remaining in the queue with a specific priority level.
|
|
230
|
+
*/
|
|
231
|
+
sizeBy(options) {
|
|
232
|
+
return this._queue.filter(options).length;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
Number of pending promises.
|
|
236
|
+
*/
|
|
237
|
+
get pending() {
|
|
238
|
+
return this._pendingCount;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
Whether the queue is currently paused.
|
|
242
|
+
*/
|
|
243
|
+
get isPaused() {
|
|
244
|
+
return this._isPaused;
|
|
245
|
+
}
|
|
246
|
+
get timeout() {
|
|
247
|
+
return this._timeout;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
Set the timeout for future operations.
|
|
251
|
+
*/
|
|
252
|
+
set timeout(milliseconds) {
|
|
253
|
+
this._timeout = milliseconds;
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
exports.default = PQueue;
|
|
257
|
+
}) });
|
|
258
|
+
|
|
259
|
+
//#endregion
|
|
260
|
+
export default require_dist();
|
|
261
|
+
|
|
262
|
+
export { require_dist };
|
|
263
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst EventEmitter = require(\"eventemitter3\");\nconst p_timeout_1 = require(\"p-timeout\");\nconst priority_queue_1 = require(\"./priority-queue\");\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst empty = () => { };\nconst timeoutError = new p_timeout_1.TimeoutError();\n/**\nPromise queue with concurrency control.\n*/\nclass PQueue extends EventEmitter {\n constructor(options) {\n var _a, _b, _c, _d;\n super();\n this._intervalCount = 0;\n this._intervalEnd = 0;\n this._pendingCount = 0;\n this._resolveEmpty = empty;\n this._resolveIdle = empty;\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n options = Object.assign({ carryoverConcurrencyCount: false, intervalCap: Infinity, interval: 0, concurrency: Infinity, autoStart: true, queueClass: priority_queue_1.default }, options);\n if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) {\n throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${(_b = (_a = options.intervalCap) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ''}\\` (${typeof options.intervalCap})`);\n }\n if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) {\n throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${(_d = (_c = options.interval) === null || _c === void 0 ? void 0 : _c.toString()) !== null && _d !== void 0 ? _d : ''}\\` (${typeof options.interval})`);\n }\n this._carryoverConcurrencyCount = options.carryoverConcurrencyCount;\n this._isIntervalIgnored = options.intervalCap === Infinity || options.interval === 0;\n this._intervalCap = options.intervalCap;\n this._interval = options.interval;\n this._queue = new options.queueClass();\n this._queueClass = options.queueClass;\n this.concurrency = options.concurrency;\n this._timeout = options.timeout;\n this._throwOnTimeout = options.throwOnTimeout === true;\n this._isPaused = options.autoStart === false;\n }\n get _doesIntervalAllowAnother() {\n return this._isIntervalIgnored || this._intervalCount < this._intervalCap;\n }\n get _doesConcurrentAllowAnother() {\n return this._pendingCount < this._concurrency;\n }\n _next() {\n this._pendingCount--;\n this._tryToStartAnother();\n this.emit('next');\n }\n _resolvePromises() {\n this._resolveEmpty();\n this._resolveEmpty = empty;\n if (this._pendingCount === 0) {\n this._resolveIdle();\n this._resolveIdle = empty;\n this.emit('idle');\n }\n }\n _onResumeInterval() {\n this._onInterval();\n this._initializeIntervalIfNeeded();\n this._timeoutId = undefined;\n }\n _isIntervalPaused() {\n const now = Date.now();\n if (this._intervalId === undefined) {\n const delay = this._intervalEnd - now;\n if (delay < 0) {\n // Act as the interval was done\n // We don't need to resume it here because it will be resumed on line 160\n this._intervalCount = (this._carryoverConcurrencyCount) ? this._pendingCount : 0;\n }\n else {\n // Act as the interval is pending\n if (this._timeoutId === undefined) {\n this._timeoutId = setTimeout(() => {\n this._onResumeInterval();\n }, delay);\n }\n return true;\n }\n }\n return false;\n }\n _tryToStartAnother() {\n if (this._queue.size === 0) {\n // We can clear the interval (\"pause\")\n // Because we can redo it later (\"resume\")\n if (this._intervalId) {\n clearInterval(this._intervalId);\n }\n this._intervalId = undefined;\n this._resolvePromises();\n return false;\n }\n if (!this._isPaused) {\n const canInitializeInterval = !this._isIntervalPaused();\n if (this._doesIntervalAllowAnother && this._doesConcurrentAllowAnother) {\n const job = this._queue.dequeue();\n if (!job) {\n return false;\n }\n this.emit('active');\n job();\n if (canInitializeInterval) {\n this._initializeIntervalIfNeeded();\n }\n return true;\n }\n }\n return false;\n }\n _initializeIntervalIfNeeded() {\n if (this._isIntervalIgnored || this._intervalId !== undefined) {\n return;\n }\n this._intervalId = setInterval(() => {\n this._onInterval();\n }, this._interval);\n this._intervalEnd = Date.now() + this._interval;\n }\n _onInterval() {\n if (this._intervalCount === 0 && this._pendingCount === 0 && this._intervalId) {\n clearInterval(this._intervalId);\n this._intervalId = undefined;\n }\n this._intervalCount = this._carryoverConcurrencyCount ? this._pendingCount : 0;\n this._processQueue();\n }\n /**\n Executes all queued functions until it reaches the limit.\n */\n _processQueue() {\n // eslint-disable-next-line no-empty\n while (this._tryToStartAnother()) { }\n }\n get concurrency() {\n return this._concurrency;\n }\n set concurrency(newConcurrency) {\n if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) {\n throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${newConcurrency}\\` (${typeof newConcurrency})`);\n }\n this._concurrency = newConcurrency;\n this._processQueue();\n }\n /**\n Adds a sync or async task to the queue. Always returns a promise.\n */\n async add(fn, options = {}) {\n return new Promise((resolve, reject) => {\n const run = async () => {\n this._pendingCount++;\n this._intervalCount++;\n try {\n const operation = (this._timeout === undefined && options.timeout === undefined) ? fn() : p_timeout_1.default(Promise.resolve(fn()), (options.timeout === undefined ? this._timeout : options.timeout), () => {\n if (options.throwOnTimeout === undefined ? this._throwOnTimeout : options.throwOnTimeout) {\n reject(timeoutError);\n }\n return undefined;\n });\n resolve(await operation);\n }\n catch (error) {\n reject(error);\n }\n this._next();\n };\n this._queue.enqueue(run, options);\n this._tryToStartAnother();\n this.emit('add');\n });\n }\n /**\n Same as `.add()`, but accepts an array of sync or async functions.\n\n @returns A promise that resolves when all functions are resolved.\n */\n async addAll(functions, options) {\n return Promise.all(functions.map(async (function_) => this.add(function_, options)));\n }\n /**\n Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)\n */\n start() {\n if (!this._isPaused) {\n return this;\n }\n this._isPaused = false;\n this._processQueue();\n return this;\n }\n /**\n Put queue execution on hold.\n */\n pause() {\n this._isPaused = true;\n }\n /**\n Clear the queue.\n */\n clear() {\n this._queue = new this._queueClass();\n }\n /**\n Can be called multiple times. Useful if you for example add additional items at a later time.\n\n @returns A promise that settles when the queue becomes empty.\n */\n async onEmpty() {\n // Instantly resolve if the queue is empty\n if (this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveEmpty;\n this._resolveEmpty = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.\n\n @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.\n */\n async onIdle() {\n // Instantly resolve if none pending and if nothing else is queued\n if (this._pendingCount === 0 && this._queue.size === 0) {\n return;\n }\n return new Promise(resolve => {\n const existingResolve = this._resolveIdle;\n this._resolveIdle = () => {\n existingResolve();\n resolve();\n };\n });\n }\n /**\n Size of the queue.\n */\n get size() {\n return this._queue.size;\n }\n /**\n Size of the queue, filtered by the given options.\n\n For example, this can be used to find the number of items remaining in the queue with a specific priority level.\n */\n sizeBy(options) {\n // eslint-disable-next-line unicorn/no-fn-reference-in-iterator\n return this._queue.filter(options).length;\n }\n /**\n Number of pending promises.\n */\n get pending() {\n return this._pendingCount;\n }\n /**\n Whether the queue is currently paused.\n */\n get isPaused() {\n return this._isPaused;\n }\n get timeout() {\n return this._timeout;\n }\n /**\n Set the timeout for future operations.\n */\n set timeout(milliseconds) {\n this._timeout = milliseconds;\n }\n}\nexports.default = PQueue;\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
+
|
|
6
|
+
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js
|
|
7
|
+
var require_lower_bound = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js": ((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
function lowerBound(array, value, comparator) {
|
|
10
|
+
let first = 0;
|
|
11
|
+
let count = array.length;
|
|
12
|
+
while (count > 0) {
|
|
13
|
+
const step = count / 2 | 0;
|
|
14
|
+
let it = first + step;
|
|
15
|
+
if (comparator(array[it], value) <= 0) {
|
|
16
|
+
first = ++it;
|
|
17
|
+
count -= step + 1;
|
|
18
|
+
} else count = step;
|
|
19
|
+
}
|
|
20
|
+
return first;
|
|
21
|
+
}
|
|
22
|
+
exports.default = lowerBound;
|
|
23
|
+
}) });
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
Object.defineProperty(exports, 'default', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return require_lower_bound();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=lower-bound.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lower-bound.cjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Port of lower_bound from https://en.cppreference.com/w/cpp/algorithm/lower_bound\n// Used to compute insertion index to keep queue sorted after insertion\nfunction lowerBound(array, value, comparator) {\n let first = 0;\n let count = array.length;\n while (count > 0) {\n const step = (count / 2) | 0;\n let it = first + step;\n if (comparator(array[it], value) <= 0) {\n first = ++it;\n count -= step + 1;\n }\n else {\n count = step;\n }\n }\n return first;\n}\nexports.default = lowerBound;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAM,EAAC;CAG7D,SAAS,WAAW,OAAO,OAAO,YAAY;EAC1C,IAAI,QAAQ;EACZ,IAAI,QAAQ,MAAM;AAClB,SAAO,QAAQ,GAAG;GACd,MAAM,OAAQ,QAAQ,IAAK;GAC3B,IAAI,KAAK,QAAQ;AACjB,OAAI,WAAW,MAAM,KAAK,MAAM,IAAI,GAAG;IACnC,QAAQ,EAAE;IACV,SAAS,OAAO;GACnB,OAEG,QAAQ;EAEf;AACD,SAAO;CACV;CACD,QAAQ,UAAU"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { __commonJS } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js
|
|
6
|
+
var require_lower_bound = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js": ((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
function lowerBound(array, value, comparator) {
|
|
9
|
+
let first = 0;
|
|
10
|
+
let count = array.length;
|
|
11
|
+
while (count > 0) {
|
|
12
|
+
const step = count / 2 | 0;
|
|
13
|
+
let it = first + step;
|
|
14
|
+
if (comparator(array[it], value) <= 0) {
|
|
15
|
+
first = ++it;
|
|
16
|
+
count -= step + 1;
|
|
17
|
+
} else count = step;
|
|
18
|
+
}
|
|
19
|
+
return first;
|
|
20
|
+
}
|
|
21
|
+
exports.default = lowerBound;
|
|
22
|
+
}) });
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export default require_lower_bound();
|
|
26
|
+
|
|
27
|
+
export { require_lower_bound };
|
|
28
|
+
//# sourceMappingURL=lower-bound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lower-bound.js","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// Port of lower_bound from https://en.cppreference.com/w/cpp/algorithm/lower_bound\n// Used to compute insertion index to keep queue sorted after insertion\nfunction lowerBound(array, value, comparator) {\n let first = 0;\n let count = array.length;\n while (count > 0) {\n const step = (count / 2) | 0;\n let it = first + step;\n if (comparator(array[it], value) <= 0) {\n first = ++it;\n count -= step + 1;\n }\n else {\n count = step;\n }\n }\n return first;\n}\nexports.default = lowerBound;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAM,EAAC;CAG7D,SAAS,WAAW,OAAO,OAAO,YAAY;EAC1C,IAAI,QAAQ;EACZ,IAAI,QAAQ,MAAM;AAClB,SAAO,QAAQ,GAAG;GACd,MAAM,OAAQ,QAAQ,IAAK;GAC3B,IAAI,KAAK,QAAQ;AACjB,OAAI,WAAW,MAAM,KAAK,MAAM,IAAI,GAAG;IACnC,QAAQ,EAAE;IACV,SAAS,OAAO;GACnB,OAEG,QAAQ;EAEf;AACD,SAAO;CACV;CACD,QAAQ,UAAU"}
|