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,69 @@
|
|
|
1
|
+
import { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
|
|
2
|
+
import { CallbackManager, CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
|
|
3
|
+
import { TextSplitter } from "@langchain/textsplitters";
|
|
4
|
+
import { Tool, ToolParams } from "@langchain/core/tools";
|
|
5
|
+
import { EmbeddingsInterface } from "@langchain/core/embeddings";
|
|
6
|
+
|
|
7
|
+
//#region src/tools/webbrowser.d.ts
|
|
8
|
+
declare const parseInputs: (inputs: string) => [string, string];
|
|
9
|
+
declare const getText: (html: string, baseUrl: string, summary: boolean) => string;
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
+
type Headers = Record<string, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Configuration options for fetch requests, similar to axios config but for fetch
|
|
14
|
+
*/
|
|
15
|
+
interface RequestConfig extends Omit<RequestInit, "headers"> {
|
|
16
|
+
withCredentials?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Defines the arguments that can be passed to the WebBrowser constructor.
|
|
20
|
+
* It extends the ToolParams interface and includes properties for a
|
|
21
|
+
* language model, embeddings, HTTP headers, an Axios configuration, a
|
|
22
|
+
* callback manager, and a text splitter.
|
|
23
|
+
*/
|
|
24
|
+
interface WebBrowserArgs extends ToolParams {
|
|
25
|
+
model: BaseLanguageModelInterface;
|
|
26
|
+
embeddings: EmbeddingsInterface;
|
|
27
|
+
headers?: Headers;
|
|
28
|
+
requestConfig?: RequestConfig;
|
|
29
|
+
/** @deprecated */
|
|
30
|
+
callbackManager?: CallbackManager;
|
|
31
|
+
textSplitter?: TextSplitter;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A class designed to interact with web pages, either to extract
|
|
35
|
+
* information from them or to summarize their content. It uses the native
|
|
36
|
+
* fetch API to send HTTP requests and the cheerio library to parse the
|
|
37
|
+
* returned HTML.
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const browser = new WebBrowser({
|
|
41
|
+
* model: new ChatOpenAI({ model: "gpt-4o-mini", temperature: 0 }),
|
|
42
|
+
* embeddings: new OpenAIEmbeddings({}),
|
|
43
|
+
* });
|
|
44
|
+
* const result = await browser.invoke("https:exampleurl.com");
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
declare class WebBrowser extends Tool {
|
|
48
|
+
static lc_name(): string;
|
|
49
|
+
get lc_namespace(): string[];
|
|
50
|
+
private model;
|
|
51
|
+
private embeddings;
|
|
52
|
+
private headers;
|
|
53
|
+
private requestConfig;
|
|
54
|
+
private textSplitter;
|
|
55
|
+
constructor({
|
|
56
|
+
model,
|
|
57
|
+
headers,
|
|
58
|
+
embeddings,
|
|
59
|
+
requestConfig,
|
|
60
|
+
textSplitter
|
|
61
|
+
}: WebBrowserArgs);
|
|
62
|
+
/** @ignore */
|
|
63
|
+
_call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
export { RequestConfig, WebBrowser, WebBrowserArgs, getText, parseInputs };
|
|
69
|
+
//# sourceMappingURL=webbrowser.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webbrowser.d.cts","names":["BaseLanguageModelInterface","EmbeddingsInterface","CallbackManager","CallbackManagerForToolRun","Tool","ToolParams","TextSplitter","parseInputs","getText","Headers","Record","RequestConfig","RequestInit","Omit","WebBrowserArgs","WebBrowser","model","headers","embeddings","requestConfig","textSplitter","Promise"],"sources":["../../src/tools/webbrowser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport { CallbackManager, CallbackManagerForToolRun } from \"@langchain/core/callbacks/manager\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nimport { TextSplitter } from \"@langchain/textsplitters\";\nexport declare const parseInputs: (inputs: string) => [string, string];\nexport declare const getText: (html: string, baseUrl: string, summary: boolean) => string;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Headers = Record<string, any>;\n/**\n * Configuration options for fetch requests, similar to axios config but for fetch\n */\nexport interface RequestConfig extends Omit<RequestInit, \"headers\"> {\n withCredentials?: boolean;\n}\n/**\n * Defines the arguments that can be passed to the WebBrowser constructor.\n * It extends the ToolParams interface and includes properties for a\n * language model, embeddings, HTTP headers, an Axios configuration, a\n * callback manager, and a text splitter.\n */\nexport interface WebBrowserArgs extends ToolParams {\n model: BaseLanguageModelInterface;\n embeddings: EmbeddingsInterface;\n headers?: Headers;\n requestConfig?: RequestConfig;\n /** @deprecated */\n callbackManager?: CallbackManager;\n textSplitter?: TextSplitter;\n}\n/**\n * A class designed to interact with web pages, either to extract\n * information from them or to summarize their content. It uses the native\n * fetch API to send HTTP requests and the cheerio library to parse the\n * returned HTML.\n * @example\n * ```typescript\n * const browser = new WebBrowser({\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * embeddings: new OpenAIEmbeddings({}),\n * });\n * const result = await browser.invoke(\"https:exampleurl.com\");\n * ```\n */\nexport declare class WebBrowser extends Tool {\n static lc_name(): string;\n get lc_namespace(): string[];\n private model;\n private embeddings;\n private headers;\n private requestConfig;\n private textSplitter;\n constructor({ model, headers, embeddings, requestConfig, textSplitter }: WebBrowserArgs);\n /** @ignore */\n _call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;\n name: string;\n description: string;\n}\nexport {};\n"],"mappings":";;;;;;;cAKqBO;cACAC;AADrB;AACA,KAEKC,OAAAA,GAAUC,MAF0E,CAAA,MAAA,EAAA,GAAA,CAAA;AAAC;AAM1F;;AAA4CE,UAA3BD,aAAAA,SAAsBE,IAAKD,CAAAA,WAAAA,EAAAA,SAAAA,CAAAA,CAAAA;EAAW,eAAhBC,CAAAA,EAAAA,OAAAA;AAAI;AAS3C;;;;;;AAMsBX,UANLY,cAAAA,SAAuBT,UAMlBH,CAAAA;EAAe,KAClBI,EANRN,0BAMQM;EAAY,UAPSD,EAExBJ,mBAFwBI;EAAU,OAAA,CAAA,EAGpCI,OAHoC;EAuB7BM,aAAU,CAAA,EAnBXJ,aAmBW;EAAA;EAAA,eAQbK,CAAAA,EAzBId,eAyBJc;EAAK,YAAEC,CAAAA,EAxBNX,YAwBMW;;;;;;;;AARmB;;;;;;;;cAAvBF,UAAAA,SAAmBX,IAAAA;;;;;;;;;;;;;;KAQqCU;;qCAEtCX,4BAA4BkB"}
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
|
|
2
|
-
import type { EmbeddingsInterface } from "@langchain/core/embeddings";
|
|
3
|
-
import { AxiosRequestConfig } from "axios";
|
|
4
|
-
import { CallbackManager, CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
|
|
5
1
|
import { Tool, ToolParams } from "@langchain/core/tools";
|
|
6
|
-
import { TextSplitter } from "
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { TextSplitter } from "@langchain/textsplitters";
|
|
3
|
+
import { CallbackManager, CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
|
|
4
|
+
import { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
|
|
5
|
+
import { EmbeddingsInterface } from "@langchain/core/embeddings";
|
|
6
|
+
|
|
7
|
+
//#region src/tools/webbrowser.d.ts
|
|
8
|
+
declare const parseInputs: (inputs: string) => [string, string];
|
|
9
|
+
declare const getText: (html: string, baseUrl: string, summary: boolean) => string;
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
11
|
type Headers = Record<string, any>;
|
|
12
|
+
/**
|
|
13
|
+
* Configuration options for fetch requests, similar to axios config but for fetch
|
|
14
|
+
*/
|
|
15
|
+
interface RequestConfig extends Omit<RequestInit, "headers"> {
|
|
16
|
+
withCredentials?: boolean;
|
|
17
|
+
}
|
|
10
18
|
/**
|
|
11
19
|
* Defines the arguments that can be passed to the WebBrowser constructor.
|
|
12
20
|
* It extends the ToolParams interface and includes properties for a
|
|
13
21
|
* language model, embeddings, HTTP headers, an Axios configuration, a
|
|
14
22
|
* callback manager, and a text splitter.
|
|
15
23
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
interface WebBrowserArgs extends ToolParams {
|
|
25
|
+
model: BaseLanguageModelInterface;
|
|
26
|
+
embeddings: EmbeddingsInterface;
|
|
27
|
+
headers?: Headers;
|
|
28
|
+
requestConfig?: RequestConfig;
|
|
29
|
+
/** @deprecated */
|
|
30
|
+
callbackManager?: CallbackManager;
|
|
31
|
+
textSplitter?: TextSplitter;
|
|
24
32
|
}
|
|
25
33
|
/**
|
|
26
34
|
* A class designed to interact with web pages, either to extract
|
|
27
|
-
* information from them or to summarize their content. It uses the
|
|
28
|
-
*
|
|
35
|
+
* information from them or to summarize their content. It uses the native
|
|
36
|
+
* fetch API to send HTTP requests and the cheerio library to parse the
|
|
29
37
|
* returned HTML.
|
|
30
38
|
* @example
|
|
31
39
|
* ```typescript
|
|
@@ -36,18 +44,26 @@ export interface WebBrowserArgs extends ToolParams {
|
|
|
36
44
|
* const result = await browser.invoke("https:exampleurl.com");
|
|
37
45
|
* ```
|
|
38
46
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
declare class WebBrowser extends Tool {
|
|
48
|
+
static lc_name(): string;
|
|
49
|
+
get lc_namespace(): string[];
|
|
50
|
+
private model;
|
|
51
|
+
private embeddings;
|
|
52
|
+
private headers;
|
|
53
|
+
private requestConfig;
|
|
54
|
+
private textSplitter;
|
|
55
|
+
constructor({
|
|
56
|
+
model,
|
|
57
|
+
headers,
|
|
58
|
+
embeddings,
|
|
59
|
+
requestConfig,
|
|
60
|
+
textSplitter
|
|
61
|
+
}: WebBrowserArgs);
|
|
62
|
+
/** @ignore */
|
|
63
|
+
_call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;
|
|
64
|
+
name: string;
|
|
65
|
+
description: string;
|
|
52
66
|
}
|
|
53
|
-
|
|
67
|
+
//#endregion
|
|
68
|
+
export { RequestConfig, WebBrowser, WebBrowserArgs, getText, parseInputs };
|
|
69
|
+
//# sourceMappingURL=webbrowser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webbrowser.d.ts","names":["BaseLanguageModelInterface","EmbeddingsInterface","CallbackManager","CallbackManagerForToolRun","Tool","ToolParams","TextSplitter","parseInputs","getText","Headers","Record","RequestConfig","RequestInit","Omit","WebBrowserArgs","WebBrowser","model","headers","embeddings","requestConfig","textSplitter","Promise"],"sources":["../../src/tools/webbrowser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport { CallbackManager, CallbackManagerForToolRun } from \"@langchain/core/callbacks/manager\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nimport { TextSplitter } from \"@langchain/textsplitters\";\nexport declare const parseInputs: (inputs: string) => [string, string];\nexport declare const getText: (html: string, baseUrl: string, summary: boolean) => string;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Headers = Record<string, any>;\n/**\n * Configuration options for fetch requests, similar to axios config but for fetch\n */\nexport interface RequestConfig extends Omit<RequestInit, \"headers\"> {\n withCredentials?: boolean;\n}\n/**\n * Defines the arguments that can be passed to the WebBrowser constructor.\n * It extends the ToolParams interface and includes properties for a\n * language model, embeddings, HTTP headers, an Axios configuration, a\n * callback manager, and a text splitter.\n */\nexport interface WebBrowserArgs extends ToolParams {\n model: BaseLanguageModelInterface;\n embeddings: EmbeddingsInterface;\n headers?: Headers;\n requestConfig?: RequestConfig;\n /** @deprecated */\n callbackManager?: CallbackManager;\n textSplitter?: TextSplitter;\n}\n/**\n * A class designed to interact with web pages, either to extract\n * information from them or to summarize their content. It uses the native\n * fetch API to send HTTP requests and the cheerio library to parse the\n * returned HTML.\n * @example\n * ```typescript\n * const browser = new WebBrowser({\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * embeddings: new OpenAIEmbeddings({}),\n * });\n * const result = await browser.invoke(\"https:exampleurl.com\");\n * ```\n */\nexport declare class WebBrowser extends Tool {\n static lc_name(): string;\n get lc_namespace(): string[];\n private model;\n private embeddings;\n private headers;\n private requestConfig;\n private textSplitter;\n constructor({ model, headers, embeddings, requestConfig, textSplitter }: WebBrowserArgs);\n /** @ignore */\n _call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;\n name: string;\n description: string;\n}\nexport {};\n"],"mappings":";;;;;;;cAKqBO;cACAC;AADrB;AACA,KAEKC,OAAAA,GAAUC,MAF0E,CAAA,MAAA,EAAA,GAAA,CAAA;AAAC;AAM1F;;AAA4CE,UAA3BD,aAAAA,SAAsBE,IAAKD,CAAAA,WAAAA,EAAAA,SAAAA,CAAAA,CAAAA;EAAW,eAAhBC,CAAAA,EAAAA,OAAAA;AAAI;AAS3C;;;;;;AAMsBX,UANLY,cAAAA,SAAuBT,UAMlBH,CAAAA;EAAe,KAClBI,EANRN,0BAMQM;EAAY,UAPSD,EAExBJ,mBAFwBI;EAAU,OAAA,CAAA,EAGpCI,OAHoC;EAuB7BM,aAAU,CAAA,EAnBXJ,aAmBW;EAAA;EAAA,eAQbK,CAAAA,EAzBId,eAyBJc;EAAK,YAAEC,CAAAA,EAxBNX,YAwBMW;;;;;;;;AARmB;;;;;;;;cAAvBF,UAAAA,SAAmBX,IAAAA;;;;;;;;;;;;;;KAQqCU;;qCAEtCX,4BAA4BkB"}
|
package/dist/tools/webbrowser.js
CHANGED
|
@@ -1,223 +1,168 @@
|
|
|
1
|
+
import { __export } from "../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { formatDocumentsAsString } from "../util/document.js";
|
|
3
|
+
import { MemoryVectorStore } from "../vectorstores/memory.js";
|
|
1
4
|
import { Document } from "@langchain/core/documents";
|
|
2
|
-
import axiosMod from "axios";
|
|
3
|
-
import * as cheerio from "cheerio";
|
|
4
|
-
import { isNode } from "@langchain/core/utils/env";
|
|
5
|
-
import { Tool } from "@langchain/core/tools";
|
|
6
5
|
import { RunnableSequence } from "@langchain/core/runnables";
|
|
6
|
+
import { Tool } from "@langchain/core/tools";
|
|
7
|
+
import { RecursiveCharacterTextSplitter } from "@langchain/textsplitters";
|
|
7
8
|
import { StringOutputParser } from "@langchain/core/output_parsers";
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
import * as cheerio from "cheerio";
|
|
10
|
+
|
|
11
|
+
//#region src/tools/webbrowser.ts
|
|
12
|
+
var webbrowser_exports = {};
|
|
13
|
+
__export(webbrowser_exports, {
|
|
14
|
+
WebBrowser: () => WebBrowser,
|
|
15
|
+
getText: () => getText,
|
|
16
|
+
parseInputs: () => parseInputs
|
|
17
|
+
});
|
|
18
|
+
const parseInputs = (inputs) => {
|
|
19
|
+
const [baseUrl, task] = inputs.split(",").map((input) => {
|
|
20
|
+
let t = input.trim();
|
|
21
|
+
t = t.startsWith("\"") ? t.slice(1) : t;
|
|
22
|
+
t = t.endsWith("\"") ? t.slice(0, -1) : t;
|
|
23
|
+
t = t.endsWith("/") ? t.slice(0, -1) : t;
|
|
24
|
+
return t.trim();
|
|
25
|
+
});
|
|
26
|
+
return [baseUrl, task];
|
|
22
27
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
href = "";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const imgAlt = $el.find("img[alt]").attr("alt")?.trim();
|
|
47
|
-
if (imgAlt) {
|
|
48
|
-
content += ` ${imgAlt}`;
|
|
49
|
-
}
|
|
50
|
-
text += ` [${content}](${href})`;
|
|
51
|
-
}
|
|
52
|
-
// otherwise just print the content
|
|
53
|
-
else if (content !== "") {
|
|
54
|
-
text += ` ${content}`;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
return text.trim().replace(/\n+/g, " ");
|
|
28
|
+
const getText = (html, baseUrl, summary) => {
|
|
29
|
+
const $ = cheerio.load(html, { scriptingEnabled: true });
|
|
30
|
+
let text = "";
|
|
31
|
+
const rootElement = summary ? "body " : "*";
|
|
32
|
+
$(`${rootElement}:not(style):not(script):not(svg)`).each((_i, elem) => {
|
|
33
|
+
let content = $(elem).clone().children().remove().end().text().trim();
|
|
34
|
+
const $el = $(elem);
|
|
35
|
+
let href = $el.attr("href");
|
|
36
|
+
if ($el.prop("tagName")?.toLowerCase() === "a" && href) {
|
|
37
|
+
if (!href.startsWith("http")) try {
|
|
38
|
+
href = new URL(href, baseUrl).toString();
|
|
39
|
+
} catch {
|
|
40
|
+
href = "";
|
|
41
|
+
}
|
|
42
|
+
const imgAlt = $el.find("img[alt]").attr("alt")?.trim();
|
|
43
|
+
if (imgAlt) content += ` ${imgAlt}`;
|
|
44
|
+
text += ` [${content}](${href})`;
|
|
45
|
+
} else if (content !== "") text += ` ${content}`;
|
|
46
|
+
});
|
|
47
|
+
return text.trim().replace(/\n+/g, " ");
|
|
58
48
|
};
|
|
59
49
|
const getHtml = async (baseUrl, h, config) => {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
!allowedContentTypes.includes(contentTypeArray[0])) {
|
|
90
|
-
throw new Error("returned page was not utf8");
|
|
91
|
-
}
|
|
92
|
-
return htmlResponse.data;
|
|
50
|
+
const domain = new URL(baseUrl).hostname;
|
|
51
|
+
const headers = { ...h };
|
|
52
|
+
headers.Host = domain;
|
|
53
|
+
headers["Alt-Used"] = domain;
|
|
54
|
+
let htmlResponse;
|
|
55
|
+
try {
|
|
56
|
+
const fetchOptions = {
|
|
57
|
+
method: "GET",
|
|
58
|
+
headers,
|
|
59
|
+
credentials: config.withCredentials ? "include" : "same-origin",
|
|
60
|
+
...config
|
|
61
|
+
};
|
|
62
|
+
htmlResponse = await fetch(baseUrl, fetchOptions);
|
|
63
|
+
if (!htmlResponse.ok) throw new Error(`http response ${htmlResponse.status}`);
|
|
64
|
+
} catch (e) {
|
|
65
|
+
if (e && typeof e === "object" && "message" in e && typeof e.message === "string" && e.message.includes("http response")) throw e;
|
|
66
|
+
throw e;
|
|
67
|
+
}
|
|
68
|
+
const allowedContentTypes = [
|
|
69
|
+
"text/html",
|
|
70
|
+
"application/json",
|
|
71
|
+
"application/xml",
|
|
72
|
+
"application/javascript",
|
|
73
|
+
"text/plain"
|
|
74
|
+
];
|
|
75
|
+
const contentType = htmlResponse.headers.get("content-type") || "";
|
|
76
|
+
const contentTypeArray = contentType.split(";");
|
|
77
|
+
if (contentTypeArray[0] && !allowedContentTypes.includes(contentTypeArray[0])) throw new Error("returned page was not utf8");
|
|
78
|
+
return htmlResponse.text();
|
|
93
79
|
};
|
|
94
80
|
const DEFAULT_HEADERS = {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
81
|
+
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
|
|
82
|
+
"Accept-Encoding": "gzip, deflate",
|
|
83
|
+
"Accept-Language": "en-US,en;q=0.5",
|
|
84
|
+
"Alt-Used": "LEAVE-THIS-KEY-SET-BY-TOOL",
|
|
85
|
+
Connection: "keep-alive",
|
|
86
|
+
Host: "LEAVE-THIS-KEY-SET-BY-TOOL",
|
|
87
|
+
Referer: "https://www.google.com/",
|
|
88
|
+
"Sec-Fetch-Dest": "document",
|
|
89
|
+
"Sec-Fetch-Mode": "navigate",
|
|
90
|
+
"Sec-Fetch-Site": "cross-site",
|
|
91
|
+
"Upgrade-Insecure-Requests": "1",
|
|
92
|
+
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0"
|
|
107
93
|
};
|
|
108
94
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
new RecursiveCharacterTextSplitter({
|
|
184
|
-
chunkSize: 2000,
|
|
185
|
-
chunkOverlap: 200,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
/** @ignore */
|
|
189
|
-
async _call(inputs, runManager) {
|
|
190
|
-
const [baseUrl, task] = parseInputs(inputs);
|
|
191
|
-
const doSummary = !task;
|
|
192
|
-
let text;
|
|
193
|
-
try {
|
|
194
|
-
const html = await getHtml(baseUrl, this.headers, this.axiosConfig);
|
|
195
|
-
text = getText(html, baseUrl, doSummary);
|
|
196
|
-
}
|
|
197
|
-
catch (e) {
|
|
198
|
-
if (e) {
|
|
199
|
-
return e.toString();
|
|
200
|
-
}
|
|
201
|
-
return "There was a problem connecting to the site";
|
|
202
|
-
}
|
|
203
|
-
const texts = await this.textSplitter.splitText(text);
|
|
204
|
-
let context;
|
|
205
|
-
// if we want a summary grab first 4
|
|
206
|
-
if (doSummary) {
|
|
207
|
-
context = texts.slice(0, 4).join("\n");
|
|
208
|
-
}
|
|
209
|
-
// search term well embed and grab top 4
|
|
210
|
-
else {
|
|
211
|
-
const docs = texts.map((pageContent) => new Document({
|
|
212
|
-
pageContent,
|
|
213
|
-
metadata: [],
|
|
214
|
-
}));
|
|
215
|
-
const vectorStore = await MemoryVectorStore.fromDocuments(docs, this.embeddings);
|
|
216
|
-
const results = await vectorStore.similaritySearch(task, 4, undefined, runManager?.getChild("vectorstore"));
|
|
217
|
-
context = formatDocumentsAsString(results);
|
|
218
|
-
}
|
|
219
|
-
const input = `Text:${context}\n\nI need ${doSummary ? "a summary" : task} from the above text, also provide up to 5 markdown links from within that would be of interest (always including URL and text). Links should be provided, if present, in markdown syntax as a list under the heading "Relevant Links:".`;
|
|
220
|
-
const chain = RunnableSequence.from([this.model, new StringOutputParser()]);
|
|
221
|
-
return chain.invoke(input, runManager?.getChild());
|
|
222
|
-
}
|
|
223
|
-
}
|
|
95
|
+
* A class designed to interact with web pages, either to extract
|
|
96
|
+
* information from them or to summarize their content. It uses the native
|
|
97
|
+
* fetch API to send HTTP requests and the cheerio library to parse the
|
|
98
|
+
* returned HTML.
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* const browser = new WebBrowser({
|
|
102
|
+
* model: new ChatOpenAI({ model: "gpt-4o-mini", temperature: 0 }),
|
|
103
|
+
* embeddings: new OpenAIEmbeddings({}),
|
|
104
|
+
* });
|
|
105
|
+
* const result = await browser.invoke("https:exampleurl.com");
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
var WebBrowser = class extends Tool {
|
|
109
|
+
static lc_name() {
|
|
110
|
+
return "WebBrowser";
|
|
111
|
+
}
|
|
112
|
+
get lc_namespace() {
|
|
113
|
+
return [...super.lc_namespace, "webbrowser"];
|
|
114
|
+
}
|
|
115
|
+
model;
|
|
116
|
+
embeddings;
|
|
117
|
+
headers;
|
|
118
|
+
requestConfig;
|
|
119
|
+
textSplitter;
|
|
120
|
+
constructor({ model, headers, embeddings, requestConfig, textSplitter }) {
|
|
121
|
+
super(...arguments);
|
|
122
|
+
this.model = model;
|
|
123
|
+
this.embeddings = embeddings;
|
|
124
|
+
this.headers = headers ?? DEFAULT_HEADERS;
|
|
125
|
+
this.requestConfig = {
|
|
126
|
+
withCredentials: true,
|
|
127
|
+
...requestConfig
|
|
128
|
+
};
|
|
129
|
+
this.textSplitter = textSplitter ?? new RecursiveCharacterTextSplitter({
|
|
130
|
+
chunkSize: 2e3,
|
|
131
|
+
chunkOverlap: 200
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/** @ignore */
|
|
135
|
+
async _call(inputs, runManager) {
|
|
136
|
+
const [baseUrl, task] = parseInputs(inputs);
|
|
137
|
+
const doSummary = !task;
|
|
138
|
+
let text;
|
|
139
|
+
try {
|
|
140
|
+
const html = await getHtml(baseUrl, this.headers, this.requestConfig);
|
|
141
|
+
text = getText(html, baseUrl, doSummary);
|
|
142
|
+
} catch (e) {
|
|
143
|
+
if (e) return e.toString();
|
|
144
|
+
return "There was a problem connecting to the site";
|
|
145
|
+
}
|
|
146
|
+
const texts = await this.textSplitter.splitText(text);
|
|
147
|
+
let context;
|
|
148
|
+
if (doSummary) context = texts.slice(0, 4).join("\n");
|
|
149
|
+
else {
|
|
150
|
+
const docs = texts.map((pageContent) => new Document({
|
|
151
|
+
pageContent,
|
|
152
|
+
metadata: []
|
|
153
|
+
}));
|
|
154
|
+
const vectorStore = await MemoryVectorStore.fromDocuments(docs, this.embeddings);
|
|
155
|
+
const results = await vectorStore.similaritySearch(task, 4, void 0, runManager?.getChild("vectorstore"));
|
|
156
|
+
context = formatDocumentsAsString(results);
|
|
157
|
+
}
|
|
158
|
+
const input = `Text:${context}\n\nI need ${doSummary ? "a summary" : task} from the above text, also provide up to 5 markdown links from within that would be of interest (always including URL and text). Links should be provided, if present, in markdown syntax as a list under the heading "Relevant Links:".`;
|
|
159
|
+
const chain = RunnableSequence.from([this.model, new StringOutputParser()]);
|
|
160
|
+
return chain.invoke(input, runManager?.getChild());
|
|
161
|
+
}
|
|
162
|
+
name = "web-browser";
|
|
163
|
+
description = `useful for when you need to find something on or summarize a webpage. input should be a comma separated list of "ONE valid http URL including protocol","what you want to find on the page or empty string for a summary".`;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
//#endregion
|
|
167
|
+
export { WebBrowser, getText, parseInputs, webbrowser_exports };
|
|
168
|
+
//# sourceMappingURL=webbrowser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webbrowser.js","names":["inputs: string","html: string","baseUrl: string","summary: boolean","elem: any","h: Headers","config: RequestConfig","fetchOptions: RequestInit","runManager?: CallbackManagerForToolRun"],"sources":["../../src/tools/webbrowser.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { Document } from \"@langchain/core/documents\";\nimport type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\n\nimport * as cheerio from \"cheerio\";\nimport {\n CallbackManager,\n CallbackManagerForToolRun,\n} from \"@langchain/core/callbacks/manager\";\n\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\nimport { StringOutputParser } from \"@langchain/core/output_parsers\";\nimport {\n RecursiveCharacterTextSplitter,\n TextSplitter,\n} from \"@langchain/textsplitters\";\nimport { MemoryVectorStore } from \"../vectorstores/memory.js\";\n\nimport { formatDocumentsAsString } from \"../util/document.js\";\n\nexport const parseInputs = (inputs: string): [string, string] => {\n const [baseUrl, task] = inputs.split(\",\").map((input) => {\n let t = input.trim();\n t = t.startsWith('\"') ? t.slice(1) : t;\n t = t.endsWith('\"') ? t.slice(0, -1) : t;\n // it likes to put / at the end of urls, wont matter for task\n t = t.endsWith(\"/\") ? t.slice(0, -1) : t;\n return t.trim();\n });\n\n return [baseUrl, task];\n};\n\nexport const getText = (\n html: string,\n baseUrl: string,\n summary: boolean\n): string => {\n // scriptingEnabled so noscript elements are parsed\n const $ = cheerio.load(html, { scriptingEnabled: true });\n\n let text = \"\";\n\n // lets only get the body if its a summary, dont need to summarize header or footer etc\n const rootElement = summary ? \"body \" : \"*\";\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n $(`${rootElement}:not(style):not(script):not(svg)`).each((_i, elem: any) => {\n // we dont want duplicated content as we drill down so remove children\n let content = $(elem).clone().children().remove().end().text().trim();\n const $el = $(elem);\n\n // if its an ahref, print the content and url\n let href = $el.attr(\"href\");\n if ($el.prop(\"tagName\")?.toLowerCase() === \"a\" && href) {\n if (!href.startsWith(\"http\")) {\n try {\n href = new URL(href, baseUrl).toString();\n } catch {\n // if this fails thats fine, just no url for this\n href = \"\";\n }\n }\n\n const imgAlt = $el.find(\"img[alt]\").attr(\"alt\")?.trim();\n if (imgAlt) {\n content += ` ${imgAlt}`;\n }\n\n text += ` [${content}](${href})`;\n }\n // otherwise just print the content\n else if (content !== \"\") {\n text += ` ${content}`;\n }\n });\n\n return text.trim().replace(/\\n+/g, \" \");\n};\n\nconst getHtml = async (baseUrl: string, h: Headers, config: RequestConfig) => {\n const domain = new URL(baseUrl).hostname;\n\n const headers = { ...h };\n // these appear to be positional, which means they have to exist in the headers passed in\n headers.Host = domain;\n headers[\"Alt-Used\"] = domain;\n\n let htmlResponse;\n try {\n const fetchOptions: RequestInit = {\n method: \"GET\",\n headers,\n credentials: config.withCredentials ? \"include\" : \"same-origin\",\n ...config,\n };\n\n htmlResponse = await fetch(baseUrl, fetchOptions);\n\n if (!htmlResponse.ok) {\n throw new Error(`http response ${htmlResponse.status}`);\n }\n } catch (e) {\n if (\n e &&\n typeof e === \"object\" &&\n \"message\" in e &&\n typeof e.message === \"string\" &&\n e.message.includes(\"http response\")\n ) {\n throw e;\n }\n throw e;\n }\n\n const allowedContentTypes = [\n \"text/html\",\n \"application/json\",\n \"application/xml\",\n \"application/javascript\",\n \"text/plain\",\n ];\n\n const contentType = htmlResponse.headers.get(\"content-type\") || \"\";\n const contentTypeArray = contentType.split(\";\");\n if (\n contentTypeArray[0] &&\n !allowedContentTypes.includes(contentTypeArray[0])\n ) {\n throw new Error(\"returned page was not utf8\");\n }\n return htmlResponse.text();\n};\n\nconst DEFAULT_HEADERS = {\n Accept:\n \"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8\",\n \"Accept-Encoding\": \"gzip, deflate\",\n \"Accept-Language\": \"en-US,en;q=0.5\",\n \"Alt-Used\": \"LEAVE-THIS-KEY-SET-BY-TOOL\",\n Connection: \"keep-alive\",\n Host: \"LEAVE-THIS-KEY-SET-BY-TOOL\",\n Referer: \"https://www.google.com/\",\n \"Sec-Fetch-Dest\": \"document\",\n \"Sec-Fetch-Mode\": \"navigate\",\n \"Sec-Fetch-Site\": \"cross-site\",\n \"Upgrade-Insecure-Requests\": \"1\",\n \"User-Agent\":\n \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0\",\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Headers = Record<string, any>;\n\n/**\n * Configuration options for fetch requests, similar to axios config but for fetch\n */\nexport interface RequestConfig extends Omit<RequestInit, \"headers\"> {\n withCredentials?: boolean;\n}\n\n/**\n * Defines the arguments that can be passed to the WebBrowser constructor.\n * It extends the ToolParams interface and includes properties for a\n * language model, embeddings, HTTP headers, an Axios configuration, a\n * callback manager, and a text splitter.\n */\nexport interface WebBrowserArgs extends ToolParams {\n model: BaseLanguageModelInterface;\n\n embeddings: EmbeddingsInterface;\n\n headers?: Headers;\n\n requestConfig?: RequestConfig;\n\n /** @deprecated */\n callbackManager?: CallbackManager;\n\n textSplitter?: TextSplitter;\n}\n\n/**\n * A class designed to interact with web pages, either to extract\n * information from them or to summarize their content. It uses the native\n * fetch API to send HTTP requests and the cheerio library to parse the\n * returned HTML.\n * @example\n * ```typescript\n * const browser = new WebBrowser({\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * embeddings: new OpenAIEmbeddings({}),\n * });\n * const result = await browser.invoke(\"https:exampleurl.com\");\n * ```\n */\nexport class WebBrowser extends Tool {\n static lc_name() {\n return \"WebBrowser\";\n }\n\n get lc_namespace() {\n return [...super.lc_namespace, \"webbrowser\"];\n }\n\n private model: BaseLanguageModelInterface;\n\n private embeddings: EmbeddingsInterface;\n\n private headers: Headers;\n\n private requestConfig: RequestConfig;\n\n private textSplitter: TextSplitter;\n\n constructor({\n model,\n headers,\n embeddings,\n requestConfig,\n textSplitter,\n }: WebBrowserArgs) {\n super(...arguments);\n\n this.model = model;\n this.embeddings = embeddings;\n this.headers = headers ?? DEFAULT_HEADERS;\n this.requestConfig = {\n withCredentials: true,\n ...requestConfig,\n };\n this.textSplitter =\n textSplitter ??\n new RecursiveCharacterTextSplitter({\n chunkSize: 2000,\n chunkOverlap: 200,\n });\n }\n\n /** @ignore */\n async _call(inputs: string, runManager?: CallbackManagerForToolRun) {\n const [baseUrl, task] = parseInputs(inputs);\n const doSummary = !task;\n\n let text;\n try {\n const html = await getHtml(baseUrl, this.headers, this.requestConfig);\n text = getText(html, baseUrl, doSummary);\n } catch (e) {\n if (e) {\n return e.toString();\n }\n return \"There was a problem connecting to the site\";\n }\n\n const texts = await this.textSplitter.splitText(text);\n\n let context;\n // if we want a summary grab first 4\n if (doSummary) {\n context = texts.slice(0, 4).join(\"\\n\");\n }\n // search term well embed and grab top 4\n else {\n const docs = texts.map(\n (pageContent) =>\n new Document({\n pageContent,\n metadata: [],\n })\n );\n\n const vectorStore = await MemoryVectorStore.fromDocuments(\n docs,\n this.embeddings\n );\n const results = await vectorStore.similaritySearch(\n task,\n 4,\n undefined,\n runManager?.getChild(\"vectorstore\")\n );\n context = formatDocumentsAsString(results);\n }\n\n const input = `Text:${context}\\n\\nI need ${\n doSummary ? \"a summary\" : task\n } from the above text, also provide up to 5 markdown links from within that would be of interest (always including URL and text). Links should be provided, if present, in markdown syntax as a list under the heading \"Relevant Links:\".`;\n\n const chain = RunnableSequence.from([this.model, new StringOutputParser()]);\n return chain.invoke(input, runManager?.getChild());\n }\n\n name = \"web-browser\";\n\n description = `useful for when you need to find something on or summarize a webpage. input should be a comma separated list of \"ONE valid http URL including protocol\",\"what you want to find on the page or empty string for a summary\".`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,MAAa,cAAc,CAACA,WAAqC;CAC/D,MAAM,CAAC,SAAS,KAAK,GAAG,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU;EACvD,IAAI,IAAI,MAAM,MAAM;EACpB,IAAI,EAAE,WAAW,KAAI,GAAG,EAAE,MAAM,EAAE,GAAG;EACrC,IAAI,EAAE,SAAS,KAAI,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG;EAEvC,IAAI,EAAE,SAAS,IAAI,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG;AACvC,SAAO,EAAE,MAAM;CAChB,EAAC;AAEF,QAAO,CAAC,SAAS,IAAK;AACvB;AAED,MAAa,UAAU,CACrBC,MACAC,SACAC,YACW;CAEX,MAAM,IAAI,QAAQ,KAAK,MAAM,EAAE,kBAAkB,KAAM,EAAC;CAExD,IAAI,OAAO;CAGX,MAAM,cAAc,UAAU,UAAU;CAGxC,EAAE,GAAG,YAAY,gCAAgC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAIC,SAAc;EAE1E,IAAI,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM;EACrE,MAAM,MAAM,EAAE,KAAK;EAGnB,IAAI,OAAO,IAAI,KAAK,OAAO;AAC3B,MAAI,IAAI,KAAK,UAAU,EAAE,aAAa,KAAK,OAAO,MAAM;AACtD,OAAI,CAAC,KAAK,WAAW,OAAO,CAC1B,KAAI;IACF,OAAO,IAAI,IAAI,MAAM,SAAS,UAAU;GACzC,QAAO;IAEN,OAAO;GACR;GAGH,MAAM,SAAS,IAAI,KAAK,WAAW,CAAC,KAAK,MAAM,EAAE,MAAM;AACvD,OAAI,QACF,WAAW,CAAC,CAAC,EAAE,QAAQ;GAGzB,QAAQ,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,CAAC;EACjC,WAEQ,YAAY,IACnB,QAAQ,CAAC,CAAC,EAAE,SAAS;CAExB,EAAC;AAEF,QAAO,KAAK,MAAM,CAAC,QAAQ,QAAQ,IAAI;AACxC;AAED,MAAM,UAAU,OAAOF,SAAiBG,GAAYC,WAA0B;CAC5E,MAAM,SAAS,IAAI,IAAI,SAAS;CAEhC,MAAM,UAAU,EAAE,GAAG,EAAG;CAExB,QAAQ,OAAO;CACf,QAAQ,cAAc;CAEtB,IAAI;AACJ,KAAI;EACF,MAAMC,eAA4B;GAChC,QAAQ;GACR;GACA,aAAa,OAAO,kBAAkB,YAAY;GAClD,GAAG;EACJ;EAED,eAAe,MAAM,MAAM,SAAS,aAAa;AAEjD,MAAI,CAAC,aAAa,GAChB,OAAM,IAAI,MAAM,CAAC,cAAc,EAAE,aAAa,QAAQ;CAEzD,SAAQ,GAAG;AACV,MACE,KACA,OAAO,MAAM,YACb,aAAa,KACb,OAAO,EAAE,YAAY,YACrB,EAAE,QAAQ,SAAS,gBAAgB,CAEnC,OAAM;AAER,QAAM;CACP;CAED,MAAM,sBAAsB;EAC1B;EACA;EACA;EACA;EACA;CACD;CAED,MAAM,cAAc,aAAa,QAAQ,IAAI,eAAe,IAAI;CAChE,MAAM,mBAAmB,YAAY,MAAM,IAAI;AAC/C,KACE,iBAAiB,MACjB,CAAC,oBAAoB,SAAS,iBAAiB,GAAG,CAElD,OAAM,IAAI,MAAM;AAElB,QAAO,aAAa,MAAM;AAC3B;AAED,MAAM,kBAAkB;CACtB,QACE;CACF,mBAAmB;CACnB,mBAAmB;CACnB,YAAY;CACZ,YAAY;CACZ,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,6BAA6B;CAC7B,cACE;AACH;;;;;;;;;;;;;;;AA+CD,IAAa,aAAb,cAAgC,KAAK;CACnC,OAAO,UAAU;AACf,SAAO;CACR;CAED,IAAI,eAAe;AACjB,SAAO,CAAC,GAAG,MAAM,cAAc,YAAa;CAC7C;CAED,AAAQ;CAER,AAAQ;CAER,AAAQ;CAER,AAAQ;CAER,AAAQ;CAER,YAAY,EACV,OACA,SACA,YACA,eACA,cACe,EAAE;EACjB,MAAM,GAAG,UAAU;EAEnB,KAAK,QAAQ;EACb,KAAK,aAAa;EAClB,KAAK,UAAU,WAAW;EAC1B,KAAK,gBAAgB;GACnB,iBAAiB;GACjB,GAAG;EACJ;EACD,KAAK,eACH,gBACA,IAAI,+BAA+B;GACjC,WAAW;GACX,cAAc;EACf;CACJ;;CAGD,MAAM,MAAMP,QAAgBQ,YAAwC;EAClE,MAAM,CAAC,SAAS,KAAK,GAAG,YAAY,OAAO;EAC3C,MAAM,YAAY,CAAC;EAEnB,IAAI;AACJ,MAAI;GACF,MAAM,OAAO,MAAM,QAAQ,SAAS,KAAK,SAAS,KAAK,cAAc;GACrE,OAAO,QAAQ,MAAM,SAAS,UAAU;EACzC,SAAQ,GAAG;AACV,OAAI,EACF,QAAO,EAAE,UAAU;AAErB,UAAO;EACR;EAED,MAAM,QAAQ,MAAM,KAAK,aAAa,UAAU,KAAK;EAErD,IAAI;AAEJ,MAAI,WACF,UAAU,MAAM,MAAM,GAAG,EAAE,CAAC,KAAK,KAAK;OAGnC;GACH,MAAM,OAAO,MAAM,IACjB,CAAC,gBACC,IAAI,SAAS;IACX;IACA,UAAU,CAAE;GACb,GACJ;GAED,MAAM,cAAc,MAAM,kBAAkB,cAC1C,MACA,KAAK,WACN;GACD,MAAM,UAAU,MAAM,YAAY,iBAChC,MACA,GACA,QACA,YAAY,SAAS,cAAc,CACpC;GACD,UAAU,wBAAwB,QAAQ;EAC3C;EAED,MAAM,QAAQ,CAAC,KAAK,EAAE,QAAQ,WAAW,EACvC,YAAY,cAAc,KAC3B,wOAAwO,CAAC;EAE1O,MAAM,QAAQ,iBAAiB,KAAK,CAAC,KAAK,OAAO,IAAI,oBAAqB,EAAC;AAC3E,SAAO,MAAM,OAAO,OAAO,YAAY,UAAU,CAAC;CACnD;CAED,OAAO;CAEP,cAAc,CAAC,0NAA0N,CAAC;AAC3O"}
|