@langchain/classic 1.0.4 → 1.0.6-dev-1765431816670
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/_virtual/rolldown_runtime.cjs +0 -4
- package/dist/_virtual/rolldown_runtime.js +1 -10
- package/dist/agents/agent.d.cts +3 -23
- package/dist/agents/agent.d.cts.map +1 -1
- package/dist/agents/agent.d.ts +3 -23
- package/dist/agents/agent.d.ts.map +1 -1
- package/dist/agents/chat/index.d.cts.map +1 -1
- package/dist/agents/chat/index.d.ts.map +1 -1
- package/dist/agents/chat/outputParser.d.cts +2 -2
- package/dist/agents/chat/outputParser.d.cts.map +1 -1
- package/dist/agents/chat/outputParser.d.ts.map +1 -1
- package/dist/agents/chat_convo/index.d.cts.map +1 -1
- package/dist/agents/chat_convo/index.d.ts.map +1 -1
- package/dist/agents/chat_convo/outputParser.d.cts.map +1 -1
- package/dist/agents/chat_convo/outputParser.d.ts.map +1 -1
- package/dist/agents/executor.d.cts +1 -10
- package/dist/agents/executor.d.cts.map +1 -1
- package/dist/agents/executor.d.ts +1 -10
- package/dist/agents/executor.d.ts.map +1 -1
- package/dist/agents/format_scratchpad/log.d.cts.map +1 -1
- package/dist/agents/format_scratchpad/log.d.ts.map +1 -1
- package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -1
- package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -1
- package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -1
- package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -1
- package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -1
- package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -1
- package/dist/agents/format_scratchpad/xml.d.cts.map +1 -1
- package/dist/agents/format_scratchpad/xml.d.ts.map +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/initialize.d.cts +1 -10
- package/dist/agents/initialize.d.cts.map +1 -1
- package/dist/agents/initialize.d.ts +1 -10
- package/dist/agents/initialize.d.ts.map +1 -1
- package/dist/agents/load.d.cts +2 -10
- package/dist/agents/load.d.cts.map +1 -1
- package/dist/agents/load.d.ts +2 -10
- package/dist/agents/load.d.ts.map +1 -1
- package/dist/agents/mrkl/index.d.cts.map +1 -1
- package/dist/agents/mrkl/index.d.ts.map +1 -1
- package/dist/agents/mrkl/outputParser.d.cts +1 -1
- package/dist/agents/mrkl/outputParser.d.cts.map +1 -1
- package/dist/agents/mrkl/outputParser.d.ts.map +1 -1
- package/dist/agents/openai_functions/index.d.cts.map +1 -1
- package/dist/agents/openai_functions/index.d.ts +1 -0
- package/dist/agents/openai_functions/index.d.ts.map +1 -1
- package/dist/agents/openai_functions/output_parser.d.cts.map +1 -1
- package/dist/agents/openai_functions/output_parser.d.ts.map +1 -1
- package/dist/agents/openai_tools/index.d.cts +3 -5
- package/dist/agents/openai_tools/index.d.cts.map +1 -1
- package/dist/agents/openai_tools/index.d.ts +3 -5
- package/dist/agents/openai_tools/index.d.ts.map +1 -1
- package/dist/agents/openai_tools/output_parser.d.cts.map +1 -1
- package/dist/agents/openai_tools/output_parser.d.ts.map +1 -1
- package/dist/agents/react/index.d.cts +2 -2
- package/dist/agents/react/index.d.cts.map +1 -1
- package/dist/agents/react/index.d.ts +2 -2
- package/dist/agents/react/index.d.ts.map +1 -1
- package/dist/agents/react/output_parser.d.cts.map +1 -1
- package/dist/agents/react/output_parser.d.ts.map +1 -1
- package/dist/agents/structured_chat/index.d.cts +2 -2
- package/dist/agents/structured_chat/index.d.cts.map +1 -1
- package/dist/agents/structured_chat/index.d.ts +2 -2
- package/dist/agents/structured_chat/index.d.ts.map +1 -1
- package/dist/agents/structured_chat/outputParser.d.cts.map +1 -1
- package/dist/agents/structured_chat/outputParser.d.ts.map +1 -1
- package/dist/agents/tool_calling/index.d.cts +2 -2
- package/dist/agents/tool_calling/index.d.cts.map +1 -1
- package/dist/agents/tool_calling/index.d.ts +2 -2
- package/dist/agents/tool_calling/index.d.ts.map +1 -1
- package/dist/agents/tool_calling/output_parser.d.cts.map +1 -1
- package/dist/agents/tool_calling/output_parser.d.ts +1 -0
- package/dist/agents/tool_calling/output_parser.d.ts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -1
- package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -1
- package/dist/agents/toolkits/json/json.d.cts.map +1 -1
- package/dist/agents/toolkits/json/json.d.ts.map +1 -1
- package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -1
- package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -1
- package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -1
- package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -1
- package/dist/agents/toolkits/sql/sql.d.cts.map +1 -1
- package/dist/agents/toolkits/sql/sql.d.ts.map +1 -1
- package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -1
- package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -1
- package/dist/agents/types.d.cts +0 -7
- package/dist/agents/types.d.cts.map +1 -1
- package/dist/agents/types.d.ts +0 -7
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/xml/index.d.cts.map +1 -1
- package/dist/agents/xml/index.d.ts.map +1 -1
- package/dist/agents/xml/output_parser.d.cts.map +1 -1
- package/dist/agents/xml/output_parser.d.ts.map +1 -1
- package/dist/cache/file_system.d.cts.map +1 -1
- package/dist/cache/file_system.d.ts.map +1 -1
- package/dist/callbacks/handlers/console.d.cts +1 -3
- package/dist/callbacks/handlers/console.d.cts.map +1 -1
- package/dist/callbacks/handlers/console.d.ts +1 -3
- package/dist/callbacks/handlers/console.d.ts.map +1 -1
- package/dist/callbacks/handlers/run_collector.d.cts +1 -3
- package/dist/callbacks/handlers/run_collector.d.cts.map +1 -1
- package/dist/callbacks/handlers/run_collector.d.ts +1 -3
- package/dist/callbacks/handlers/run_collector.d.ts.map +1 -1
- package/dist/callbacks/handlers/tracer.d.cts +1 -3
- package/dist/callbacks/handlers/tracer.d.cts.map +1 -1
- package/dist/callbacks/handlers/tracer.d.ts +1 -3
- package/dist/callbacks/handlers/tracer.d.ts.map +1 -1
- package/dist/callbacks/handlers/tracer_langchain.d.cts +1 -3
- package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -1
- package/dist/callbacks/handlers/tracer_langchain.d.ts +1 -3
- package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -1
- package/dist/callbacks/index.d.cts +8 -0
- package/dist/callbacks/index.d.ts +8 -0
- package/dist/callbacks/promises.d.cts +1 -3
- package/dist/callbacks/promises.d.cts.map +1 -1
- package/dist/callbacks/promises.d.ts +1 -3
- package/dist/callbacks/promises.d.ts.map +1 -1
- package/dist/chains/analyze_documents_chain.d.cts +0 -1
- package/dist/chains/analyze_documents_chain.d.cts.map +1 -1
- package/dist/chains/analyze_documents_chain.d.ts +0 -1
- package/dist/chains/analyze_documents_chain.d.ts.map +1 -1
- package/dist/chains/api/api_chain.d.cts.map +1 -1
- package/dist/chains/api/api_chain.d.ts.map +1 -1
- package/dist/chains/base.d.cts +1 -4
- package/dist/chains/base.d.cts.map +1 -1
- package/dist/chains/base.d.ts +1 -4
- package/dist/chains/base.d.ts.map +1 -1
- package/dist/chains/chat_vector_db_chain.d.cts +0 -1
- package/dist/chains/chat_vector_db_chain.d.cts.map +1 -1
- package/dist/chains/chat_vector_db_chain.d.ts +0 -1
- package/dist/chains/chat_vector_db_chain.d.ts.map +1 -1
- package/dist/chains/combine_docs_chain.d.cts +2 -2
- package/dist/chains/combine_docs_chain.d.cts.map +1 -1
- package/dist/chains/combine_docs_chain.d.ts +2 -2
- package/dist/chains/combine_docs_chain.d.ts.map +1 -1
- package/dist/chains/combine_documents/reduce.d.cts +1 -3
- package/dist/chains/combine_documents/reduce.d.cts.map +1 -1
- package/dist/chains/combine_documents/reduce.d.ts +1 -3
- package/dist/chains/combine_documents/reduce.d.ts.map +1 -1
- package/dist/chains/combine_documents/stuff.d.cts.map +1 -1
- package/dist/chains/combine_documents/stuff.d.ts.map +1 -1
- package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -1
- package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -1
- package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -1
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -1
- package/dist/chains/conversation.d.cts.map +1 -1
- package/dist/chains/conversation.d.ts.map +1 -1
- package/dist/chains/conversational_retrieval_chain.d.cts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -1
- package/dist/chains/conversational_retrieval_chain.d.ts +1 -2
- package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -1
- package/dist/chains/graph_qa/cypher.d.cts +0 -3
- package/dist/chains/graph_qa/cypher.d.cts.map +1 -1
- package/dist/chains/graph_qa/cypher.d.ts +0 -3
- package/dist/chains/graph_qa/cypher.d.ts.map +1 -1
- package/dist/chains/history_aware_retriever.d.cts.map +1 -1
- package/dist/chains/history_aware_retriever.d.ts.map +1 -1
- package/dist/chains/llm_chain.d.cts +0 -1
- package/dist/chains/llm_chain.d.cts.map +1 -1
- package/dist/chains/llm_chain.d.ts +0 -1
- package/dist/chains/llm_chain.d.ts.map +1 -1
- package/dist/chains/load.d.cts +2 -2
- package/dist/chains/load.d.cts.map +1 -1
- package/dist/chains/load.d.ts +2 -2
- package/dist/chains/load.d.ts.map +1 -1
- package/dist/chains/openai_functions/base.d.cts +4 -16
- package/dist/chains/openai_functions/base.d.cts.map +1 -1
- package/dist/chains/openai_functions/base.d.ts +4 -16
- package/dist/chains/openai_functions/base.d.ts.map +1 -1
- package/dist/chains/openai_functions/extraction.d.cts.map +1 -1
- package/dist/chains/openai_functions/extraction.d.ts.map +1 -1
- package/dist/chains/openai_functions/openapi.d.cts +1 -4
- package/dist/chains/openai_functions/openapi.d.cts.map +1 -1
- package/dist/chains/openai_functions/openapi.d.ts +1 -4
- package/dist/chains/openai_functions/openapi.d.ts.map +1 -1
- package/dist/chains/openai_functions/tagging.d.cts.map +1 -1
- package/dist/chains/openai_functions/tagging.d.ts.map +1 -1
- package/dist/chains/openai_moderation.d.cts.map +1 -1
- package/dist/chains/openai_moderation.d.ts.map +1 -1
- package/dist/chains/query_constructor/index.d.cts +1 -3
- package/dist/chains/query_constructor/index.d.cts.map +1 -1
- package/dist/chains/query_constructor/index.d.ts +1 -3
- package/dist/chains/query_constructor/index.d.ts.map +1 -1
- package/dist/chains/query_constructor/parser.d.cts.map +1 -1
- package/dist/chains/query_constructor/parser.d.ts.map +1 -1
- package/dist/chains/query_constructor/prompt.d.cts.map +1 -1
- package/dist/chains/query_constructor/prompt.d.ts.map +1 -1
- package/dist/chains/question_answering/load.d.cts +2 -2
- package/dist/chains/question_answering/load.d.cts.map +1 -1
- package/dist/chains/question_answering/load.d.ts +2 -2
- package/dist/chains/question_answering/load.d.ts.map +1 -1
- package/dist/chains/retrieval.d.cts +1 -4
- package/dist/chains/retrieval.d.cts.map +1 -1
- package/dist/chains/retrieval.d.ts +1 -4
- package/dist/chains/retrieval.d.ts.map +1 -1
- package/dist/chains/retrieval_qa.d.cts +0 -1
- package/dist/chains/retrieval_qa.d.cts.map +1 -1
- package/dist/chains/retrieval_qa.d.ts +0 -1
- package/dist/chains/retrieval_qa.d.ts.map +1 -1
- package/dist/chains/router/llm_router.d.cts.map +1 -1
- package/dist/chains/router/llm_router.d.ts.map +1 -1
- package/dist/chains/router/multi_prompt.d.cts.map +1 -1
- package/dist/chains/router/multi_prompt.d.ts.map +1 -1
- package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -1
- package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -1
- package/dist/chains/router/multi_route.d.cts.map +1 -1
- package/dist/chains/router/multi_route.d.ts.map +1 -1
- package/dist/chains/sequential_chain.d.cts.map +1 -1
- package/dist/chains/sequential_chain.d.ts.map +1 -1
- package/dist/chains/serde.d.cts.map +1 -1
- package/dist/chains/serde.d.ts.map +1 -1
- package/dist/chains/sql_db/sql_db_chain.d.cts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -1
- package/dist/chains/sql_db/sql_db_chain.d.ts +0 -5
- package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -1
- package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -1
- package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -1
- package/dist/chains/summarization/load.d.cts +2 -2
- package/dist/chains/summarization/load.d.cts.map +1 -1
- package/dist/chains/summarization/load.d.ts +2 -2
- package/dist/chains/summarization/load.d.ts.map +1 -1
- package/dist/chains/transform.d.cts.map +1 -1
- package/dist/chains/transform.d.ts.map +1 -1
- package/dist/chains/vector_db_qa.d.cts +0 -1
- package/dist/chains/vector_db_qa.d.cts.map +1 -1
- package/dist/chains/vector_db_qa.d.ts +0 -1
- package/dist/chains/vector_db_qa.d.ts.map +1 -1
- package/dist/chat_models/universal.d.cts +4 -21
- package/dist/chat_models/universal.d.cts.map +1 -1
- package/dist/chat_models/universal.d.ts +4 -21
- package/dist/chat_models/universal.d.ts.map +1 -1
- package/dist/document_loaders/fs/buffer.d.cts.map +1 -1
- package/dist/document_loaders/fs/buffer.d.ts.map +1 -1
- package/dist/document_loaders/fs/directory.d.cts +0 -2
- package/dist/document_loaders/fs/directory.d.cts.map +1 -1
- package/dist/document_loaders/fs/directory.d.ts +0 -2
- package/dist/document_loaders/fs/directory.d.ts.map +1 -1
- package/dist/document_loaders/fs/json.d.cts.map +1 -1
- package/dist/document_loaders/fs/json.d.ts.map +1 -1
- package/dist/document_loaders/fs/multi_file.d.cts.map +1 -1
- package/dist/document_loaders/fs/multi_file.d.ts.map +1 -1
- package/dist/document_loaders/fs/text.d.cts.map +1 -1
- package/dist/document_loaders/fs/text.d.ts.map +1 -1
- package/dist/document_transformers/openai_functions.d.cts.map +1 -1
- package/dist/document_transformers/openai_functions.d.ts +1 -1
- package/dist/document_transformers/openai_functions.d.ts.map +1 -1
- package/dist/embeddings/cache_backed.d.cts.map +1 -1
- package/dist/embeddings/cache_backed.d.ts.map +1 -1
- package/dist/evaluation/agents/index.d.ts +1 -0
- package/dist/evaluation/agents/trajectory.d.cts +2 -2
- package/dist/evaluation/agents/trajectory.d.cts.map +1 -1
- package/dist/evaluation/agents/trajectory.d.ts +2 -2
- package/dist/evaluation/agents/trajectory.d.ts.map +1 -1
- package/dist/evaluation/base.d.cts +1 -10
- package/dist/evaluation/base.d.cts.map +1 -1
- package/dist/evaluation/base.d.ts +2 -10
- package/dist/evaluation/base.d.ts.map +1 -1
- package/dist/evaluation/comparison/index.d.ts +1 -0
- package/dist/evaluation/comparison/pairwise.d.cts +3 -3
- package/dist/evaluation/comparison/pairwise.d.cts.map +1 -1
- package/dist/evaluation/comparison/pairwise.d.ts +3 -3
- package/dist/evaluation/comparison/pairwise.d.ts.map +1 -1
- package/dist/evaluation/criteria/criteria.d.cts +3 -5
- package/dist/evaluation/criteria/criteria.d.cts.map +1 -1
- package/dist/evaluation/criteria/criteria.d.ts +3 -5
- package/dist/evaluation/criteria/criteria.d.ts.map +1 -1
- package/dist/evaluation/criteria/index.d.ts +1 -0
- package/dist/evaluation/embedding_distance/base.d.cts.map +1 -1
- package/dist/evaluation/embedding_distance/base.d.ts.map +1 -1
- package/dist/evaluation/embedding_distance/index.d.ts +1 -0
- package/dist/evaluation/index.d.ts +5 -0
- package/dist/evaluation/loader.d.cts.map +1 -1
- package/dist/evaluation/loader.d.ts +2 -0
- package/dist/evaluation/loader.d.ts.map +1 -1
- package/dist/evaluation/qa/eval_chain.d.cts.map +1 -1
- package/dist/evaluation/qa/eval_chain.d.ts.map +1 -1
- package/dist/evaluation/qa/index.d.ts +1 -0
- package/dist/evaluation/types.d.cts.map +1 -1
- package/dist/evaluation/types.d.ts.map +1 -1
- package/dist/experimental/autogpt/agent.d.cts +0 -2
- package/dist/experimental/autogpt/agent.d.cts.map +1 -1
- package/dist/experimental/autogpt/agent.d.ts +0 -2
- package/dist/experimental/autogpt/agent.d.ts.map +1 -1
- package/dist/experimental/autogpt/output_parser.d.cts.map +1 -1
- package/dist/experimental/autogpt/output_parser.d.ts.map +1 -1
- package/dist/experimental/autogpt/prompt.d.cts.map +1 -1
- package/dist/experimental/autogpt/prompt.d.ts.map +1 -1
- package/dist/experimental/autogpt/schema.d.cts +0 -1
- package/dist/experimental/autogpt/schema.d.cts.map +1 -1
- package/dist/experimental/autogpt/schema.d.ts +0 -1
- package/dist/experimental/autogpt/schema.d.ts.map +1 -1
- package/dist/experimental/babyagi/agent.d.cts.map +1 -1
- package/dist/experimental/babyagi/agent.d.ts.map +1 -1
- package/dist/experimental/babyagi/task_creation.d.cts.map +1 -1
- package/dist/experimental/babyagi/task_creation.d.ts.map +1 -1
- package/dist/experimental/babyagi/task_execution.d.cts.map +1 -1
- package/dist/experimental/babyagi/task_execution.d.ts.map +1 -1
- package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -1
- package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -1
- package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -1
- package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -1
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts.map +1 -1
- package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -1
- package/dist/experimental/generative_agents/generative_agent.d.cts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -1
- package/dist/experimental/generative_agents/generative_agent.d.ts +8 -16
- package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -1
- package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -1
- package/dist/experimental/masking/parser.d.cts.map +1 -1
- package/dist/experimental/masking/parser.d.ts.map +1 -1
- package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -1
- package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -1
- package/dist/experimental/masking/transformer.d.cts.map +1 -1
- package/dist/experimental/masking/transformer.d.ts.map +1 -1
- package/dist/experimental/masking/types.d.cts.map +1 -1
- package/dist/experimental/masking/types.d.ts.map +1 -1
- package/dist/experimental/openai_assistant/index.d.cts +1 -5
- package/dist/experimental/openai_assistant/index.d.cts.map +1 -1
- package/dist/experimental/openai_assistant/index.d.ts +1 -5
- package/dist/experimental/openai_assistant/index.d.ts.map +1 -1
- package/dist/experimental/openai_assistant/schema.d.cts +0 -1
- package/dist/experimental/openai_assistant/schema.d.cts.map +1 -1
- package/dist/experimental/openai_assistant/schema.d.ts +0 -1
- package/dist/experimental/openai_assistant/schema.d.ts.map +1 -1
- package/dist/experimental/openai_files/index.d.cts.map +1 -1
- package/dist/experimental/openai_files/index.d.ts.map +1 -1
- package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -1
- package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -1
- package/dist/experimental/plan_and_execute/base.d.cts.map +1 -1
- package/dist/experimental/plan_and_execute/base.d.ts.map +1 -1
- package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -1
- package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -1
- package/dist/experimental/prompts/custom_format.d.cts +2 -8
- package/dist/experimental/prompts/custom_format.d.cts.map +1 -1
- package/dist/experimental/prompts/custom_format.d.ts +2 -8
- package/dist/experimental/prompts/custom_format.d.ts.map +1 -1
- package/dist/experimental/prompts/handlebars.d.cts +2 -6
- package/dist/experimental/prompts/handlebars.d.cts.map +1 -1
- package/dist/experimental/prompts/handlebars.d.ts +2 -6
- package/dist/experimental/prompts/handlebars.d.ts.map +1 -1
- package/dist/hub/base.cjs +1 -1
- package/dist/hub/base.cjs.map +1 -1
- package/dist/hub/base.d.cts.map +1 -1
- package/dist/hub/base.d.ts.map +1 -1
- package/dist/hub/base.js +1 -1
- package/dist/hub/index.d.cts +0 -1
- package/dist/hub/index.d.cts.map +1 -1
- package/dist/hub/index.d.ts +0 -1
- package/dist/hub/index.d.ts.map +1 -1
- package/dist/hub/node.d.cts.map +1 -1
- package/dist/hub/node.d.ts.map +1 -1
- package/dist/load/import_constants.cjs +25 -24
- package/dist/load/import_constants.cjs.map +1 -1
- package/dist/load/import_constants.js +25 -24
- package/dist/load/import_constants.js.map +1 -1
- package/dist/load/import_map.cjs +47 -47
- package/dist/load/import_map.cjs.map +1 -1
- package/dist/load/import_map.js +54 -54
- package/dist/load/import_map.js.map +1 -1
- package/dist/load/import_type.d.cts +0 -1
- package/dist/load/import_type.d.cts.map +1 -1
- package/dist/load/import_type.d.ts +0 -1
- package/dist/load/import_type.d.ts.map +1 -1
- package/dist/load/index.d.cts +1 -7
- package/dist/load/index.d.cts.map +1 -1
- package/dist/load/index.d.ts +1 -7
- package/dist/load/index.d.ts.map +1 -1
- package/dist/load/map_keys.d.cts +0 -1
- package/dist/load/map_keys.d.cts.map +1 -1
- package/dist/load/map_keys.d.ts +0 -1
- package/dist/load/map_keys.d.ts.map +1 -1
- package/dist/load/serializable.d.cts +1 -10
- package/dist/load/serializable.d.ts +1 -10
- package/dist/memory/buffer_memory.d.cts.map +1 -1
- package/dist/memory/buffer_memory.d.ts.map +1 -1
- package/dist/memory/buffer_token_memory.d.cts +1 -6
- package/dist/memory/buffer_token_memory.d.cts.map +1 -1
- package/dist/memory/buffer_token_memory.d.ts +1 -6
- package/dist/memory/buffer_token_memory.d.ts.map +1 -1
- package/dist/memory/buffer_window_memory.d.cts.map +1 -1
- package/dist/memory/buffer_window_memory.d.ts.map +1 -1
- package/dist/memory/chat_memory.d.cts.map +1 -1
- package/dist/memory/chat_memory.d.ts.map +1 -1
- package/dist/memory/combined_memory.d.cts.map +1 -1
- package/dist/memory/combined_memory.d.ts.map +1 -1
- package/dist/memory/entity_memory.d.cts +0 -5
- package/dist/memory/entity_memory.d.cts.map +1 -1
- package/dist/memory/entity_memory.d.ts +0 -5
- package/dist/memory/entity_memory.d.ts.map +1 -1
- package/dist/memory/prompt.d.cts.map +1 -1
- package/dist/memory/prompt.d.ts.map +1 -1
- package/dist/memory/stores/entity/base.d.cts.map +1 -1
- package/dist/memory/stores/entity/base.d.ts.map +1 -1
- package/dist/memory/summary.d.cts.map +1 -1
- package/dist/memory/summary.d.ts.map +1 -1
- package/dist/memory/summary_buffer.d.cts.map +1 -1
- package/dist/memory/summary_buffer.d.ts.map +1 -1
- package/dist/memory/vector_store.d.cts.map +1 -1
- package/dist/memory/vector_store.d.ts.map +1 -1
- package/dist/output_parsers/combining.d.cts +0 -1
- package/dist/output_parsers/combining.d.cts.map +1 -1
- package/dist/output_parsers/combining.d.ts +0 -1
- package/dist/output_parsers/combining.d.ts.map +1 -1
- package/dist/output_parsers/datetime.d.cts.map +1 -1
- package/dist/output_parsers/datetime.d.ts.map +1 -1
- package/dist/output_parsers/expression.d.cts.map +1 -1
- package/dist/output_parsers/expression.d.ts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/base.d.cts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/base.d.ts +0 -1
- package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -1
- package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -1
- package/dist/output_parsers/fix.d.cts.map +1 -1
- package/dist/output_parsers/fix.d.ts.map +1 -1
- package/dist/output_parsers/http_response.d.cts.map +1 -1
- package/dist/output_parsers/http_response.d.ts.map +1 -1
- package/dist/output_parsers/openai_functions.d.cts.map +1 -1
- package/dist/output_parsers/openai_functions.d.ts.map +1 -1
- package/dist/output_parsers/openai_tools.d.cts +1 -4
- package/dist/output_parsers/openai_tools.d.cts.map +1 -1
- package/dist/output_parsers/openai_tools.d.ts +1 -4
- package/dist/output_parsers/openai_tools.d.ts.map +1 -1
- package/dist/output_parsers/regex.d.cts.map +1 -1
- package/dist/output_parsers/regex.d.ts.map +1 -1
- package/dist/output_parsers/router.d.cts.map +1 -1
- package/dist/output_parsers/router.d.ts.map +1 -1
- package/dist/output_parsers/structured.d.cts +2 -2
- package/dist/output_parsers/structured.d.cts.map +1 -1
- package/dist/output_parsers/structured.d.ts +2 -2
- package/dist/output_parsers/structured.d.ts.map +1 -1
- package/dist/retrievers/contextual_compression.d.cts.map +1 -1
- package/dist/retrievers/contextual_compression.d.ts.map +1 -1
- package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -1
- package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -1
- package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -1
- package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.cts +0 -1
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.ts +0 -1
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
- package/dist/retrievers/ensemble.d.cts.map +1 -1
- package/dist/retrievers/ensemble.d.ts.map +1 -1
- package/dist/retrievers/hyde.d.cts.map +1 -1
- package/dist/retrievers/hyde.d.ts.map +1 -1
- package/dist/retrievers/matryoshka_retriever.d.cts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -1
- package/dist/retrievers/matryoshka_retriever.d.ts +0 -1
- package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -1
- package/dist/retrievers/multi_query.d.cts +0 -2
- package/dist/retrievers/multi_query.d.cts.map +1 -1
- package/dist/retrievers/multi_query.d.ts +0 -2
- package/dist/retrievers/multi_query.d.ts.map +1 -1
- package/dist/retrievers/multi_vector.d.cts.map +1 -1
- package/dist/retrievers/multi_vector.d.ts +1 -1
- package/dist/retrievers/multi_vector.d.ts.map +1 -1
- package/dist/retrievers/parent_document.d.cts +0 -1
- package/dist/retrievers/parent_document.d.cts.map +1 -1
- package/dist/retrievers/parent_document.d.ts +0 -1
- package/dist/retrievers/parent_document.d.ts.map +1 -1
- package/dist/retrievers/score_threshold.d.cts.map +1 -1
- package/dist/retrievers/score_threshold.d.ts.map +1 -1
- package/dist/retrievers/self_query/index.cjs +1 -1
- package/dist/retrievers/self_query/index.d.cts.map +1 -1
- package/dist/retrievers/self_query/index.d.ts +1 -1
- package/dist/retrievers/self_query/index.d.ts.map +1 -1
- package/dist/retrievers/self_query/index.js +1 -1
- package/dist/retrievers/time_weighted.d.cts.map +1 -1
- package/dist/retrievers/time_weighted.d.ts +1 -1
- package/dist/retrievers/time_weighted.d.ts.map +1 -1
- package/dist/schema/prompt_template.d.cts +2 -2
- package/dist/schema/prompt_template.d.cts.map +1 -1
- package/dist/schema/prompt_template.d.ts +2 -2
- package/dist/schema/prompt_template.d.ts.map +1 -1
- package/dist/schema/query_constructor.d.cts.map +1 -1
- package/dist/schema/query_constructor.d.ts.map +1 -1
- package/dist/smith/config.d.cts +1 -11
- package/dist/smith/config.d.cts.map +1 -1
- package/dist/smith/config.d.ts +2 -11
- package/dist/smith/config.d.ts.map +1 -1
- package/dist/smith/runner_utils.cjs +4 -6
- package/dist/smith/runner_utils.cjs.map +1 -1
- package/dist/smith/runner_utils.d.cts +2 -7
- package/dist/smith/runner_utils.d.cts.map +1 -1
- package/dist/smith/runner_utils.d.ts +2 -7
- package/dist/smith/runner_utils.d.ts.map +1 -1
- package/dist/smith/runner_utils.js +1 -3
- package/dist/smith/runner_utils.js.map +1 -1
- package/dist/sql_db.d.cts.map +1 -1
- package/dist/sql_db.d.ts.map +1 -1
- package/dist/storage/encoder_backed.d.cts +0 -1
- package/dist/storage/encoder_backed.d.cts.map +1 -1
- package/dist/storage/encoder_backed.d.ts +0 -1
- package/dist/storage/encoder_backed.d.ts.map +1 -1
- package/dist/storage/file_system.d.cts.map +1 -1
- package/dist/storage/file_system.d.ts.map +1 -1
- package/dist/stores/doc/base.d.cts.map +1 -1
- package/dist/stores/doc/base.d.ts.map +1 -1
- package/dist/stores/doc/in_memory.d.cts +0 -1
- package/dist/stores/doc/in_memory.d.cts.map +1 -1
- package/dist/stores/doc/in_memory.d.ts +0 -1
- package/dist/stores/doc/in_memory.d.ts.map +1 -1
- package/dist/stores/file/base.d.cts.map +1 -1
- package/dist/stores/file/base.d.ts.map +1 -1
- package/dist/stores/file/in_memory.d.cts.map +1 -1
- package/dist/stores/file/in_memory.d.ts.map +1 -1
- package/dist/stores/file/node.d.cts.map +1 -1
- package/dist/stores/file/node.d.ts.map +1 -1
- package/dist/text_splitter.d.cts +1 -3
- package/dist/text_splitter.d.cts.map +1 -1
- package/dist/text_splitter.d.ts +1 -3
- package/dist/text_splitter.d.ts.map +1 -1
- package/dist/tools/chain.d.cts.map +1 -1
- package/dist/tools/chain.d.ts.map +1 -1
- package/dist/tools/fs.d.cts.map +1 -1
- package/dist/tools/fs.d.ts.map +1 -1
- package/dist/tools/json.d.cts.map +1 -1
- package/dist/tools/json.d.ts.map +1 -1
- package/dist/tools/render.d.cts.map +1 -1
- package/dist/tools/render.d.ts.map +1 -1
- package/dist/tools/requests.d.cts.map +1 -1
- package/dist/tools/requests.d.ts.map +1 -1
- package/dist/tools/retriever.d.cts.map +1 -1
- package/dist/tools/retriever.d.ts.map +1 -1
- package/dist/tools/sql.d.cts.map +1 -1
- package/dist/tools/sql.d.ts.map +1 -1
- package/dist/tools/vectorstore.d.cts.map +1 -1
- package/dist/tools/vectorstore.d.ts.map +1 -1
- package/dist/tools/webbrowser.d.cts +0 -1
- package/dist/tools/webbrowser.d.cts.map +1 -1
- package/dist/tools/webbrowser.d.ts +0 -1
- package/dist/tools/webbrowser.d.ts.map +1 -1
- package/dist/types/expression-parser.d.cts +0 -3
- package/dist/types/expression-parser.d.cts.map +1 -1
- package/dist/types/expression-parser.d.ts +0 -3
- package/dist/types/expression-parser.d.ts.map +1 -1
- package/dist/types/type-utils.d.cts +0 -2
- package/dist/types/type-utils.d.cts.map +1 -1
- package/dist/types/type-utils.d.ts +0 -2
- package/dist/types/type-utils.d.ts.map +1 -1
- package/dist/util/document.d.cts.map +1 -1
- package/dist/util/document.d.ts.map +1 -1
- package/dist/util/hub.cjs +2 -2
- package/dist/util/hub.cjs.map +1 -1
- package/dist/util/hub.js +1 -1
- package/dist/util/hub.js.map +1 -1
- package/dist/util/is-network-error/index.cjs +27 -0
- package/dist/util/is-network-error/index.cjs.map +1 -0
- package/dist/util/is-network-error/index.js +26 -0
- package/dist/util/is-network-error/index.js.map +1 -0
- package/dist/util/load.d.cts +0 -1
- package/dist/util/load.d.cts.map +1 -1
- package/dist/util/load.d.ts +0 -1
- package/dist/util/load.d.ts.map +1 -1
- package/dist/util/ml-distance/similarities.d.cts.map +1 -1
- package/dist/util/ml-distance/similarities.d.ts.map +1 -1
- package/dist/util/openapi.d.cts +0 -2
- package/dist/util/openapi.d.cts.map +1 -1
- package/dist/util/openapi.d.ts +0 -2
- package/dist/util/openapi.d.ts.map +1 -1
- package/dist/util/p-retry/index.cjs +141 -0
- package/dist/util/p-retry/index.cjs.map +1 -0
- package/dist/util/p-retry/index.js +141 -0
- package/dist/util/p-retry/index.js.map +1 -0
- package/dist/util/sql_utils.d.cts.map +1 -1
- package/dist/util/sql_utils.d.ts.map +1 -1
- package/dist/util/time.d.cts.map +1 -1
- package/dist/util/time.d.ts.map +1 -1
- package/dist/vectorstores/memory.d.cts +0 -1
- package/dist/vectorstores/memory.d.cts.map +1 -1
- package/dist/vectorstores/memory.d.ts +0 -1
- package/dist/vectorstores/memory.d.ts.map +1 -1
- package/package.json +766 -690
- package/dist/langchain-core/dist/load/map_keys.d.cts +0 -10
- package/dist/langchain-core/dist/load/map_keys.d.cts.map +0 -1
- package/dist/langchain-core/dist/load/serializable.d.cts +0 -82
- package/dist/langchain-core/dist/load/serializable.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/base.d.cts +0 -127
- package/dist/langchain-core/dist/messages/base.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/content/base.d.cts +0 -22
- package/dist/langchain-core/dist/messages/content/base.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/content/data.d.cts +0 -96
- package/dist/langchain-core/dist/messages/content/data.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/content/index.d.cts +0 -121
- package/dist/langchain-core/dist/messages/content/index.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts +0 -110
- package/dist/langchain-core/dist/messages/content/multimodal.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/content/tools.d.cts +0 -130
- package/dist/langchain-core/dist/messages/content/tools.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/format.d.cts +0 -8
- package/dist/langchain-core/dist/messages/format.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/message.d.cts +0 -598
- package/dist/langchain-core/dist/messages/message.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/metadata.d.cts +0 -100
- package/dist/langchain-core/dist/messages/metadata.d.cts.map +0 -1
- package/dist/langchain-core/dist/messages/utils.d.cts +0 -75
- package/dist/langchain-core/dist/messages/utils.d.cts.map +0 -1
- package/dist/langchain-core/dist/prompt_values.d.cts +0 -13
- package/dist/langchain-core/dist/prompt_values.d.cts.map +0 -1
- package/dist/langchain-core/dist/tools/types.d.cts +0 -41
- package/dist/langchain-core/dist/tools/types.d.cts.map +0 -1
- package/dist/langchain-core/dist/utils/types/index.d.cts +0 -8
- package/dist/langchain-core/dist/utils/types/index.d.cts.map +0 -1
- package/dist/libs/langchain-core/dist/callbacks/base.d.ts +0 -1
- package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +0 -2
- package/dist/libs/langchain-core/dist/language_models/base.d.ts +0 -6
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts +0 -10
- package/dist/libs/langchain-core/dist/load/map_keys.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/load/serializable.d.ts +0 -82
- package/dist/libs/langchain-core/dist/load/serializable.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/base.d.ts +0 -127
- package/dist/libs/langchain-core/dist/messages/base.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts +0 -22
- package/dist/libs/langchain-core/dist/messages/content/base.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts +0 -96
- package/dist/libs/langchain-core/dist/messages/content/data.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts +0 -121
- package/dist/libs/langchain-core/dist/messages/content/index.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +0 -110
- package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +0 -130
- package/dist/libs/langchain-core/dist/messages/content/tools.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/format.d.ts +0 -8
- package/dist/libs/langchain-core/dist/messages/format.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/message.d.ts +0 -598
- package/dist/libs/langchain-core/dist/messages/message.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts +0 -100
- package/dist/libs/langchain-core/dist/messages/metadata.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/messages/utils.d.ts +0 -75
- package/dist/libs/langchain-core/dist/messages/utils.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/prompt_values.d.ts +0 -13
- package/dist/libs/langchain-core/dist/prompt_values.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/runnables/base.d.ts +0 -8
- package/dist/libs/langchain-core/dist/runnables/graph.d.ts +0 -1
- package/dist/libs/langchain-core/dist/runnables/types.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tools/types.d.ts +0 -47
- package/dist/libs/langchain-core/dist/tools/types.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/tracers/base.d.ts +0 -2
- package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +0 -1
- package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +0 -3
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts +0 -10
- package/dist/libs/langchain-core/dist/utils/types/index.d.ts.map +0 -1
- package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -16
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +0 -4
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +0 -1
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +0 -2
- package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +0 -2
- package/dist/load/serializable.d.cts.map +0 -1
- package/dist/load/serializable.d.ts.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
- package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +0 -3096
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +0 -3095
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -71
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -38
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -221
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -703
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -702
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -7
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -29
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -28
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -115
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -113
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -14
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -94
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -136
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -131
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -102
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -99
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -140
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -18
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -16
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -10
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -30
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -13
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -12
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +0 -6
- package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +0 -6
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
- package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
- package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
- package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SerializedMapReduceDocumentsChain, SerializedRefineDocumentsChain, SerializedStuffDocumentsChain } from "./serde.cjs";
|
|
2
2
|
import { BaseChain, ChainInputs } from "./base.cjs";
|
|
3
3
|
import { LLMChain } from "./llm_chain.cjs";
|
|
4
|
-
import { BasePromptValueInterface } from "../langchain-core/dist/prompt_values.cjs";
|
|
5
4
|
import { ChainValues } from "@langchain/core/utils/types";
|
|
6
5
|
import { BasePromptTemplate } from "@langchain/core/prompts";
|
|
6
|
+
import * as _langchain_core_prompt_values0 from "@langchain/core/prompt_values";
|
|
7
7
|
import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
8
8
|
import { Document } from "@langchain/core/documents";
|
|
9
9
|
|
|
@@ -103,7 +103,7 @@ declare class RefineDocumentsChain extends BaseChain implements RefineDocumentsC
|
|
|
103
103
|
initialResponseName: string;
|
|
104
104
|
refineLLMChain: LLMChain;
|
|
105
105
|
get defaultDocumentPrompt(): BasePromptTemplate;
|
|
106
|
-
documentPrompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
|
|
106
|
+
documentPrompt: BasePromptTemplate<any, _langchain_core_prompt_values0.BasePromptValueInterface, any>;
|
|
107
107
|
get inputKeys(): string[];
|
|
108
108
|
get outputKeys(): string[];
|
|
109
109
|
constructor(fields: RefineDocumentsChainInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combine_docs_chain.d.cts","names":["Document","ChainValues","CallbackManagerForChainRun","BasePromptTemplate","SerializedStuffDocumentsChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","BaseChain","ChainInputs","LLMChain","StuffDocumentsChainInput","StuffDocumentsChain","Promise","MapReduceDocumentsChainInput","MapReduceDocumentsChain","RefineDocumentsChainInput","RefineDocumentsChain","
|
|
1
|
+
{"version":3,"file":"combine_docs_chain.d.cts","names":["Document","ChainValues","CallbackManagerForChainRun","BasePromptTemplate","SerializedStuffDocumentsChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","BaseChain","ChainInputs","LLMChain","StuffDocumentsChainInput","StuffDocumentsChain","Promise","MapReduceDocumentsChainInput","MapReduceDocumentsChain","RefineDocumentsChainInput","RefineDocumentsChain","_langchain_core_prompt_values0","BasePromptValueInterface","Record"],"sources":["../../src/chains/combine_docs_chain.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport type { SerializedStuffDocumentsChain, SerializedMapReduceDocumentsChain, SerializedRefineDocumentsChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\n/**\n * Interface for the input properties of the StuffDocumentsChain class.\n */\nexport interface StuffDocumentsChainInput extends ChainInputs {\n /** LLM Wrapper to use after formatting documents */\n llmChain: LLMChain;\n inputKey?: string;\n /** Variable name in the LLM chain to put the documents in */\n documentVariableName?: string;\n}\n/**\n * Chain that combines documents by stuffing into context.\n * @augments BaseChain\n * @augments StuffDocumentsChainInput\n */\nexport declare class StuffDocumentsChain extends BaseChain implements StuffDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n documentVariableName: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: StuffDocumentsChainInput);\n /** @ignore */\n _prepInputs(values: ChainValues): ChainValues;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"stuff_documents_chain\";\n static deserialize(data: SerializedStuffDocumentsChain): Promise<StuffDocumentsChain>;\n serialize(): SerializedStuffDocumentsChain;\n}\n/**\n * Interface for the input properties of the MapReduceDocumentsChain\n * class.\n */\nexport interface MapReduceDocumentsChainInput extends StuffDocumentsChainInput {\n /** The maximum number of tokens before requiring to do the reduction */\n maxTokens?: number;\n /** The maximum number of iterations to run through the map */\n maxIterations?: number;\n /** Ensures that the map step is taken regardless of max tokens */\n ensureMapStep?: boolean;\n /** Chain to use to combine results of applying llm_chain to documents. */\n combineDocumentChain: StuffDocumentsChain;\n /** Return the results of the map steps in the output. */\n returnIntermediateSteps?: boolean;\n}\n/**\n * Combine documents by mapping a chain over them, then combining results.\n * @augments BaseChain\n * @augments StuffDocumentsChainInput\n */\nexport declare class MapReduceDocumentsChain extends BaseChain implements MapReduceDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n documentVariableName: string;\n returnIntermediateSteps: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n maxTokens: number;\n maxIterations: number;\n ensureMapStep: boolean;\n combineDocumentChain: StuffDocumentsChain;\n constructor(fields: MapReduceDocumentsChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"map_reduce_documents_chain\";\n static deserialize(data: SerializedMapReduceDocumentsChain): Promise<MapReduceDocumentsChain>;\n serialize(): SerializedMapReduceDocumentsChain;\n}\n/**\n * Interface for the input properties of the RefineDocumentsChain class.\n */\nexport interface RefineDocumentsChainInput extends StuffDocumentsChainInput {\n refineLLMChain: LLMChain;\n documentPrompt?: BasePromptTemplate;\n initialResponseName?: string;\n documentVariableName?: string;\n outputKey?: string;\n}\n/**\n * Combine documents by doing a first pass and then refining on more documents.\n * @augments BaseChain\n * @augments RefineDocumentsChainInput\n */\nexport declare class RefineDocumentsChain extends BaseChain implements RefineDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n outputKey: string;\n documentVariableName: string;\n initialResponseName: string;\n refineLLMChain: LLMChain;\n get defaultDocumentPrompt(): BasePromptTemplate;\n documentPrompt: BasePromptTemplate<any, import(\"@langchain/core/prompt_values\").BasePromptValueInterface, any>;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: RefineDocumentsChainInput);\n /** @ignore */\n _constructInitialInputs(doc: Document, rest: Record<string, unknown>): Promise<{\n [x: string]: unknown;\n }>;\n /** @ignore */\n _constructRefineInputs(doc: Document, res: string): Promise<{\n [x: string]: unknown;\n }>;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"refine_documents_chain\";\n static deserialize(data: SerializedRefineDocumentsChain): Promise<RefineDocumentsChain>;\n serialize(): SerializedRefineDocumentsChain;\n}\n//# sourceMappingURL=combine_docs_chain.d.ts.map"],"mappings":";;;;;;;;;;;;;AAUiBU,UAAAA,wBAAAA,SAAiCF,WAAAA,CAAAA;EAY7BG;EAEPF,QAAAA,EAZAA,QAYAA;EAKUC,QAAAA,CAAAA,EAAAA,MAAAA;EAEAT;EAAcA,oBAAAA,CAAAA,EAAAA,MAAAA;;;;;;;AAIuBW,cAbxCD,mBAAAA,SAA4BJ,SAAAA,YAAqBG,wBAaTE,CAAAA;EAC5CR,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAdgCG,QAAAA,EAEnCE,QAFmCF;EAAqBG,QAAAA,EAAAA,MAAAA;EAAwB,oBAAA,EAAA,MAAA;EAoB7EG,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAiBIC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAuB;EAE9BL,WAAAA,CAAAA,MAAAA,EAhCUC,wBAgCVD;EASYE;EACFE,WAAAA,CAAAA,MAAAA,EAxCAZ,WAwCAY,CAAAA,EAxCcZ,WAwCdY;EAENZ;EAA0BC,KAAAA,CAAAA,MAAAA,EAxC1BD,WAwC0BC,EAAAA,UAAAA,CAAAA,EAxCAA,0BAwCAA,CAAAA,EAxC6BU,OAwC7BV,CAxCqCD,WAwCrCC,CAAAA;EAAqCD,UAAAA,CAAAA,CAAAA,EAAAA,uBAAAA;EAARW,OAAAA,WAAAA,CAAAA,IAAAA,EAtC5CR,6BAsC4CQ,CAAAA,EAtCZA,OAsCYA,CAtCJD,mBAsCIC,CAAAA;EAE5CP,SAAAA,CAAAA,CAAAA,EAvCZD,6BAuCYC;;;;;;AAhByE,UAjBrFQ,4BAAAA,SAAqCH,wBAiBgD,CAAA;EAsBrFK;EACGN,SAAAA,CAAAA,EAAAA,MAAAA;EACCN;EAF8BO,aAAAA,CAAAA,EAAAA,MAAAA;EAAwB;EAYtDM,aAAAA,CAAAA,EAAAA,OAAoB;EAE3BP;EAKMA,oBAAAA,EAlDME,mBAkDNF;EACaN;EAAkBc,uBAAAA,CAAAA,EAAAA,OACiCC;;;;;;;AAS5BN,cApDnCE,uBAAAA,SAAgCP,SAAAA,YAAqBM,4BAoDlBD,CAAAA;EAItCX,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA0BC,QAAAA,EAtD9BO,QAsD8BP;EAAqCD,QAAAA,EAAAA,MAAAA;EAARW,oBAAAA,EAAAA,MAAAA;EAE5CN,uBAAAA,EAAAA,OAAAA;EAAyCU,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAARJ,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAC7CN,SAAAA,EAAAA,MAAAA;EAzBiCC,aAAAA,EAAAA,MAAAA;EAAqBQ,aAAAA,EAAAA,OAAAA;EAAyB,oBAAA,EAvBtEJ,mBAuBsE;sBAtBxEE;;gBAENZ,0BAA0BC,6BAA6BU,QAAQX;;2BAEpDI,oCAAoCO,QAAQE;eACxDT;;;;;UAKAU,yBAAAA,SAAkCL;kBAC/BD;mBACCN;;;;;;;;;;cAUAa,oBAAAA,SAA6BT,SAAAA,YAAqBQ;;YAEzDN;;;;;kBAKMA;+BACaN;kBACbA,wBAD+Bc,8BAAAA,CACiCC,wBAAAA;;;sBAG5DH;;+BAESf,gBAAgBmB,0BAA0BP;;;;8BAI3CZ,wBAAwBY;;;;gBAItCX,0BAA0BC,6BAA6BU,QAAQX;;2BAEpDK,iCAAiCM,QAAQI;eACrDV"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SerializedMapReduceDocumentsChain, SerializedRefineDocumentsChain, SerializedStuffDocumentsChain } from "./serde.js";
|
|
2
2
|
import { BaseChain, ChainInputs } from "./base.js";
|
|
3
3
|
import { LLMChain } from "./llm_chain.js";
|
|
4
|
-
import { BasePromptValueInterface } from "../libs/langchain-core/dist/prompt_values.js";
|
|
5
4
|
import { Document } from "@langchain/core/documents";
|
|
6
5
|
import { BasePromptTemplate } from "@langchain/core/prompts";
|
|
7
6
|
import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
8
7
|
import { ChainValues } from "@langchain/core/utils/types";
|
|
8
|
+
import * as _langchain_core_prompt_values0 from "@langchain/core/prompt_values";
|
|
9
9
|
|
|
10
10
|
//#region src/chains/combine_docs_chain.d.ts
|
|
11
11
|
/**
|
|
@@ -103,7 +103,7 @@ declare class RefineDocumentsChain extends BaseChain implements RefineDocumentsC
|
|
|
103
103
|
initialResponseName: string;
|
|
104
104
|
refineLLMChain: LLMChain;
|
|
105
105
|
get defaultDocumentPrompt(): BasePromptTemplate;
|
|
106
|
-
documentPrompt: BasePromptTemplate<any, BasePromptValueInterface, any>;
|
|
106
|
+
documentPrompt: BasePromptTemplate<any, _langchain_core_prompt_values0.BasePromptValueInterface, any>;
|
|
107
107
|
get inputKeys(): string[];
|
|
108
108
|
get outputKeys(): string[];
|
|
109
109
|
constructor(fields: RefineDocumentsChainInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combine_docs_chain.d.ts","names":["Document","ChainValues","CallbackManagerForChainRun","BasePromptTemplate","SerializedStuffDocumentsChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","BaseChain","ChainInputs","LLMChain","StuffDocumentsChainInput","StuffDocumentsChain","Promise","MapReduceDocumentsChainInput","MapReduceDocumentsChain","RefineDocumentsChainInput","RefineDocumentsChain","
|
|
1
|
+
{"version":3,"file":"combine_docs_chain.d.ts","names":["Document","ChainValues","CallbackManagerForChainRun","BasePromptTemplate","SerializedStuffDocumentsChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","BaseChain","ChainInputs","LLMChain","StuffDocumentsChainInput","StuffDocumentsChain","Promise","MapReduceDocumentsChainInput","MapReduceDocumentsChain","RefineDocumentsChainInput","RefineDocumentsChain","_langchain_core_prompt_values0","BasePromptValueInterface","Record"],"sources":["../../src/chains/combine_docs_chain.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport type { SerializedStuffDocumentsChain, SerializedMapReduceDocumentsChain, SerializedRefineDocumentsChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\n/**\n * Interface for the input properties of the StuffDocumentsChain class.\n */\nexport interface StuffDocumentsChainInput extends ChainInputs {\n /** LLM Wrapper to use after formatting documents */\n llmChain: LLMChain;\n inputKey?: string;\n /** Variable name in the LLM chain to put the documents in */\n documentVariableName?: string;\n}\n/**\n * Chain that combines documents by stuffing into context.\n * @augments BaseChain\n * @augments StuffDocumentsChainInput\n */\nexport declare class StuffDocumentsChain extends BaseChain implements StuffDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n documentVariableName: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: StuffDocumentsChainInput);\n /** @ignore */\n _prepInputs(values: ChainValues): ChainValues;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"stuff_documents_chain\";\n static deserialize(data: SerializedStuffDocumentsChain): Promise<StuffDocumentsChain>;\n serialize(): SerializedStuffDocumentsChain;\n}\n/**\n * Interface for the input properties of the MapReduceDocumentsChain\n * class.\n */\nexport interface MapReduceDocumentsChainInput extends StuffDocumentsChainInput {\n /** The maximum number of tokens before requiring to do the reduction */\n maxTokens?: number;\n /** The maximum number of iterations to run through the map */\n maxIterations?: number;\n /** Ensures that the map step is taken regardless of max tokens */\n ensureMapStep?: boolean;\n /** Chain to use to combine results of applying llm_chain to documents. */\n combineDocumentChain: StuffDocumentsChain;\n /** Return the results of the map steps in the output. */\n returnIntermediateSteps?: boolean;\n}\n/**\n * Combine documents by mapping a chain over them, then combining results.\n * @augments BaseChain\n * @augments StuffDocumentsChainInput\n */\nexport declare class MapReduceDocumentsChain extends BaseChain implements MapReduceDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n documentVariableName: string;\n returnIntermediateSteps: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n maxTokens: number;\n maxIterations: number;\n ensureMapStep: boolean;\n combineDocumentChain: StuffDocumentsChain;\n constructor(fields: MapReduceDocumentsChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"map_reduce_documents_chain\";\n static deserialize(data: SerializedMapReduceDocumentsChain): Promise<MapReduceDocumentsChain>;\n serialize(): SerializedMapReduceDocumentsChain;\n}\n/**\n * Interface for the input properties of the RefineDocumentsChain class.\n */\nexport interface RefineDocumentsChainInput extends StuffDocumentsChainInput {\n refineLLMChain: LLMChain;\n documentPrompt?: BasePromptTemplate;\n initialResponseName?: string;\n documentVariableName?: string;\n outputKey?: string;\n}\n/**\n * Combine documents by doing a first pass and then refining on more documents.\n * @augments BaseChain\n * @augments RefineDocumentsChainInput\n */\nexport declare class RefineDocumentsChain extends BaseChain implements RefineDocumentsChainInput {\n static lc_name(): string;\n llmChain: LLMChain;\n inputKey: string;\n outputKey: string;\n documentVariableName: string;\n initialResponseName: string;\n refineLLMChain: LLMChain;\n get defaultDocumentPrompt(): BasePromptTemplate;\n documentPrompt: BasePromptTemplate<any, import(\"@langchain/core/prompt_values\").BasePromptValueInterface, any>;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: RefineDocumentsChainInput);\n /** @ignore */\n _constructInitialInputs(doc: Document, rest: Record<string, unknown>): Promise<{\n [x: string]: unknown;\n }>;\n /** @ignore */\n _constructRefineInputs(doc: Document, res: string): Promise<{\n [x: string]: unknown;\n }>;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"refine_documents_chain\";\n static deserialize(data: SerializedRefineDocumentsChain): Promise<RefineDocumentsChain>;\n serialize(): SerializedRefineDocumentsChain;\n}\n//# sourceMappingURL=combine_docs_chain.d.ts.map"],"mappings":";;;;;;;;;;;;;AAUiBU,UAAAA,wBAAAA,SAAiCF,WAAAA,CAAAA;EAY7BG;EAEPF,QAAAA,EAZAA,QAYAA;EAKUC,QAAAA,CAAAA,EAAAA,MAAAA;EAEAT;EAAcA,oBAAAA,CAAAA,EAAAA,MAAAA;;;;;;;AAIuBW,cAbxCD,mBAAAA,SAA4BJ,SAAAA,YAAqBG,wBAaTE,CAAAA;EAC5CR,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAdgCG,QAAAA,EAEnCE,QAFmCF;EAAqBG,QAAAA,EAAAA,MAAAA;EAAwB,oBAAA,EAAA,MAAA;EAoB7EG,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAiBIC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAuB;EAE9BL,WAAAA,CAAAA,MAAAA,EAhCUC,wBAgCVD;EASYE;EACFE,WAAAA,CAAAA,MAAAA,EAxCAZ,WAwCAY,CAAAA,EAxCcZ,WAwCdY;EAENZ;EAA0BC,KAAAA,CAAAA,MAAAA,EAxC1BD,WAwC0BC,EAAAA,UAAAA,CAAAA,EAxCAA,0BAwCAA,CAAAA,EAxC6BU,OAwC7BV,CAxCqCD,WAwCrCC,CAAAA;EAAqCD,UAAAA,CAAAA,CAAAA,EAAAA,uBAAAA;EAARW,OAAAA,WAAAA,CAAAA,IAAAA,EAtC5CR,6BAsC4CQ,CAAAA,EAtCZA,OAsCYA,CAtCJD,mBAsCIC,CAAAA;EAE5CP,SAAAA,CAAAA,CAAAA,EAvCZD,6BAuCYC;;;;;;AAhByE,UAjBrFQ,4BAAAA,SAAqCH,wBAiBgD,CAAA;EAsBrFK;EACGN,SAAAA,CAAAA,EAAAA,MAAAA;EACCN;EAF8BO,aAAAA,CAAAA,EAAAA,MAAAA;EAAwB;EAYtDM,aAAAA,CAAAA,EAAAA,OAAoB;EAE3BP;EAKMA,oBAAAA,EAlDME,mBAkDNF;EACaN;EAAkBc,uBAAAA,CAAAA,EAAAA,OACiCC;;;;;;;AAS5BN,cApDnCE,uBAAAA,SAAgCP,SAAAA,YAAqBM,4BAoDlBD,CAAAA;EAItCX,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA0BC,QAAAA,EAtD9BO,QAsD8BP;EAAqCD,QAAAA,EAAAA,MAAAA;EAARW,oBAAAA,EAAAA,MAAAA;EAE5CN,uBAAAA,EAAAA,OAAAA;EAAyCU,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAARJ,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAC7CN,SAAAA,EAAAA,MAAAA;EAzBiCC,aAAAA,EAAAA,MAAAA;EAAqBQ,aAAAA,EAAAA,OAAAA;EAAyB,oBAAA,EAvBtEJ,mBAuBsE;sBAtBxEE;;gBAENZ,0BAA0BC,6BAA6BU,QAAQX;;2BAEpDI,oCAAoCO,QAAQE;eACxDT;;;;;UAKAU,yBAAAA,SAAkCL;kBAC/BD;mBACCN;;;;;;;;;;cAUAa,oBAAAA,SAA6BT,SAAAA,YAAqBQ;;YAEzDN;;;;;kBAKMA;+BACaN;kBACbA,wBAD+Bc,8BAAAA,CACiCC,wBAAAA;;;sBAG5DH;;+BAESf,gBAAgBmB,0BAA0BP;;;;8BAI3CZ,wBAAwBY;;;;gBAItCX,0BAA0BC,6BAA6BU,QAAQX;;2BAEpDK,iCAAiCM,QAAQI;eACrDV"}
|
|
@@ -13,9 +13,7 @@ import { Document } from "@langchain/core/documents";
|
|
|
13
13
|
*
|
|
14
14
|
* @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.
|
|
15
15
|
*/
|
|
16
|
-
declare function splitListOfDocs(docs: Document[],
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
-
lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];
|
|
16
|
+
declare function splitListOfDocs(docs: Document[], lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];
|
|
19
17
|
/**
|
|
20
18
|
* Collapses a list of documents into a single document.
|
|
21
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduce.d.cts","names":["Document","splitListOfDocs","collapseDocs","Promise"],"sources":["../../../src/chains/combine_documents/reduce.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Splits a list of documents into sublists based on a maximum token limit.\n *\n * @param {Document[]} docs - The list of documents to be split.\n * @param {Function} lengthFunc - A function that calculates the number of tokens in a list of documents.\n * @param {number} tokenMax - The maximum number of tokens allowed in a sublist.\n *\n * @returns {Document[][]} - A list of document sublists, each sublist contains documents whose total number of tokens does not exceed the tokenMax.\n *\n * @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.\n */\nexport declare function splitListOfDocs(docs: Document[],
|
|
1
|
+
{"version":3,"file":"reduce.d.cts","names":["Document","splitListOfDocs","collapseDocs","Promise"],"sources":["../../../src/chains/combine_documents/reduce.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Splits a list of documents into sublists based on a maximum token limit.\n *\n * @param {Document[]} docs - The list of documents to be split.\n * @param {Function} lengthFunc - A function that calculates the number of tokens in a list of documents.\n * @param {number} tokenMax - The maximum number of tokens allowed in a sublist.\n *\n * @returns {Document[][]} - A list of document sublists, each sublist contains documents whose total number of tokens does not exceed the tokenMax.\n *\n * @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.\n */\nexport declare function splitListOfDocs(docs: Document[], lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];\n/**\n * Collapses a list of documents into a single document.\n *\n * This function takes a list of documents and a function to combine the content of these documents.\n * It combines the content of the documents using the provided function and merges the metadata of all documents.\n * If a metadata key is present in multiple documents, the values are concatenated with a comma separator.\n *\n * @param {Document[]} docs - The list of documents to be collapsed.\n * @param {Function} combineDocumentFunc - A function that combines the content of a list of documents into a single string. This function should return a promise that resolves to the combined string.\n *\n * @returns {Promise<Document>} - A promise that resolves to a single document with combined content and merged metadata.\n *\n * @throws {Error} - Throws an error if the combineDocumentFunc does not return a promise or if the promise does not resolve to a string.\n */\nexport declare function collapseDocs(docs: Document[], combineDocumentFunc: (docs: Document[]) => Promise<string>): Promise<Document>;\n//# sourceMappingURL=reduce.d.ts.map"],"mappings":";;;;;;AAYA;AAeA;;;;;;AAA2H;;iBAfnGC,eAAAA,OAAsBD,oEAAoEA;;;;;;;;;;;;;;;iBAe1FE,YAAAA,OAAmBF,wCAAwCA,eAAeG,kBAAkBA,QAAQH"}
|
|
@@ -13,9 +13,7 @@ import { Document } from "@langchain/core/documents";
|
|
|
13
13
|
*
|
|
14
14
|
* @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.
|
|
15
15
|
*/
|
|
16
|
-
declare function splitListOfDocs(docs: Document[],
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
|
-
lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];
|
|
16
|
+
declare function splitListOfDocs(docs: Document[], lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];
|
|
19
17
|
/**
|
|
20
18
|
* Collapses a list of documents into a single document.
|
|
21
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduce.d.ts","names":["Document","splitListOfDocs","collapseDocs","Promise"],"sources":["../../../src/chains/combine_documents/reduce.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Splits a list of documents into sublists based on a maximum token limit.\n *\n * @param {Document[]} docs - The list of documents to be split.\n * @param {Function} lengthFunc - A function that calculates the number of tokens in a list of documents.\n * @param {number} tokenMax - The maximum number of tokens allowed in a sublist.\n *\n * @returns {Document[][]} - A list of document sublists, each sublist contains documents whose total number of tokens does not exceed the tokenMax.\n *\n * @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.\n */\nexport declare function splitListOfDocs(docs: Document[],
|
|
1
|
+
{"version":3,"file":"reduce.d.ts","names":["Document","splitListOfDocs","collapseDocs","Promise"],"sources":["../../../src/chains/combine_documents/reduce.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n/**\n * Splits a list of documents into sublists based on a maximum token limit.\n *\n * @param {Document[]} docs - The list of documents to be split.\n * @param {Function} lengthFunc - A function that calculates the number of tokens in a list of documents.\n * @param {number} tokenMax - The maximum number of tokens allowed in a sublist.\n *\n * @returns {Document[][]} - A list of document sublists, each sublist contains documents whose total number of tokens does not exceed the tokenMax.\n *\n * @throws {Error} - Throws an error if a single document has more tokens than the tokenMax.\n */\nexport declare function splitListOfDocs(docs: Document[], lengthFunc: (...args: any[]) => any, tokenMax: number): Document[][];\n/**\n * Collapses a list of documents into a single document.\n *\n * This function takes a list of documents and a function to combine the content of these documents.\n * It combines the content of the documents using the provided function and merges the metadata of all documents.\n * If a metadata key is present in multiple documents, the values are concatenated with a comma separator.\n *\n * @param {Document[]} docs - The list of documents to be collapsed.\n * @param {Function} combineDocumentFunc - A function that combines the content of a list of documents into a single string. This function should return a promise that resolves to the combined string.\n *\n * @returns {Promise<Document>} - A promise that resolves to a single document with combined content and merged metadata.\n *\n * @throws {Error} - Throws an error if the combineDocumentFunc does not return a promise or if the promise does not resolve to a string.\n */\nexport declare function collapseDocs(docs: Document[], combineDocumentFunc: (docs: Document[]) => Promise<string>): Promise<Document>;\n//# sourceMappingURL=reduce.d.ts.map"],"mappings":";;;;;;AAYA;AAeA;;;;;;AAA2H;;iBAfnGC,eAAAA,OAAsBD,oEAAoEA;;;;;;;;;;;;;;;iBAe1FE,YAAAA,OAAmBF,wCAAwCA,eAAeG,kBAAkBA,QAAQH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stuff.d.cts","names":["LanguageModelLike","BaseOutputParser","BasePromptTemplate","RunnableSequence","createStuffDocumentsChain","llm","prompt","outputParser","documentPrompt","documentSeparator","
|
|
1
|
+
{"version":3,"file":"stuff.d.cts","names":["LanguageModelLike","BaseOutputParser","BasePromptTemplate","RunnableSequence","createStuffDocumentsChain","RunOutput","llm","prompt","outputParser","documentPrompt","documentSeparator","Record","Error","Exclude","Promise"],"sources":["../../../src/chains/combine_documents/stuff.d.ts"],"sourcesContent":["import { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport { BaseOutputParser } from \"@langchain/core/output_parsers\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\n/**\n * Create a chain that passes a list of documents to a model.\n *\n * @param llm Language model to use for responding.\n * @param prompt Prompt template. Must contain input variable \"context\", which will be\n used for passing in the formatted documents.\n * @param outputParser Output parser. Defaults to `StringOutputParser`.\n * @param documentPrompt Prompt used for formatting each document into a string. Input\n variables can be \"page_content\" or any metadata keys that are in all documents.\n \"page_content\" will automatically retrieve the `Document.page_content`, and all\n other inputs variables will be automatically retrieved from the `Document.metadata` dictionary. Default to a prompt that only contains `Document.page_content`.\n * @param documentSeparator String separator to use between formatted document strings.\n * @returns An LCEL `Runnable` chain.\n Expects a dictionary as input with a list of `Document`s being passed under\n the \"context\" key.\n Return type depends on the `output_parser` used.\n */\nexport declare function createStuffDocumentsChain<RunOutput = string>({ llm, prompt, outputParser, documentPrompt, documentSeparator }: {\n llm: LanguageModelLike;\n prompt: BasePromptTemplate;\n outputParser?: BaseOutputParser<RunOutput>;\n documentPrompt?: BasePromptTemplate;\n documentSeparator?: string;\n}): Promise<RunnableSequence<Record<string, unknown>, Exclude<RunOutput, Error>>>;\n//# sourceMappingURL=stuff.d.ts.map"],"mappings":";;;;;;;;;AAqBA;;;;;;;;;;;;;;;AAMYG,iBANYC,yBAMZD,CAAAA,YAAAA,MAAAA,CAAAA,CAAAA;EAAAA,GAAAA;EAAAA,MAAAA;EAAAA,YAAAA;EAAAA,cAAAA;EAAAA;CAAAA,EAAAA;EAARW,GAAAA,EALKd,iBAKLc;EAAO,MAAA,EAJCZ,kBAID;iBAHQD,iBAAiBI;mBACfH;;IAEjBY,QAAQX,iBAAiBQ,yBAAyBE,QAAQR,WAAWO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stuff.d.ts","names":["LanguageModelLike","BaseOutputParser","BasePromptTemplate","RunnableSequence","createStuffDocumentsChain","llm","prompt","outputParser","documentPrompt","documentSeparator","
|
|
1
|
+
{"version":3,"file":"stuff.d.ts","names":["LanguageModelLike","BaseOutputParser","BasePromptTemplate","RunnableSequence","createStuffDocumentsChain","RunOutput","llm","prompt","outputParser","documentPrompt","documentSeparator","Record","Error","Exclude","Promise"],"sources":["../../../src/chains/combine_documents/stuff.d.ts"],"sourcesContent":["import { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport { BaseOutputParser } from \"@langchain/core/output_parsers\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\n/**\n * Create a chain that passes a list of documents to a model.\n *\n * @param llm Language model to use for responding.\n * @param prompt Prompt template. Must contain input variable \"context\", which will be\n used for passing in the formatted documents.\n * @param outputParser Output parser. Defaults to `StringOutputParser`.\n * @param documentPrompt Prompt used for formatting each document into a string. Input\n variables can be \"page_content\" or any metadata keys that are in all documents.\n \"page_content\" will automatically retrieve the `Document.page_content`, and all\n other inputs variables will be automatically retrieved from the `Document.metadata` dictionary. Default to a prompt that only contains `Document.page_content`.\n * @param documentSeparator String separator to use between formatted document strings.\n * @returns An LCEL `Runnable` chain.\n Expects a dictionary as input with a list of `Document`s being passed under\n the \"context\" key.\n Return type depends on the `output_parser` used.\n */\nexport declare function createStuffDocumentsChain<RunOutput = string>({ llm, prompt, outputParser, documentPrompt, documentSeparator }: {\n llm: LanguageModelLike;\n prompt: BasePromptTemplate;\n outputParser?: BaseOutputParser<RunOutput>;\n documentPrompt?: BasePromptTemplate;\n documentSeparator?: string;\n}): Promise<RunnableSequence<Record<string, unknown>, Exclude<RunOutput, Error>>>;\n//# sourceMappingURL=stuff.d.ts.map"],"mappings":";;;;;;;;;AAqBA;;;;;;;;;;;;;;;AAMYG,iBANYC,yBAMZD,CAAAA,YAAAA,MAAAA,CAAAA,CAAAA;EAAAA,GAAAA;EAAAA,MAAAA;EAAAA,YAAAA;EAAAA,cAAAA;EAAAA;CAAAA,EAAAA;EAARW,GAAAA,EALKd,iBAKLc;EAAO,MAAA,EAJCZ,kBAID;iBAHQD,iBAAiBI;mBACfH;;IAEjBY,QAAQX,iBAAiBQ,yBAAyBE,QAAQR,WAAWO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constitutional_chain.d.cts","names":["BaseLanguageModelInterface","ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","LLMChain","SerializedBaseChain","ConstitutionalPrinciple","ConstitutionalChainInput","ConstitutionalChain","Promise","Omit"],"sources":["../../../src/chains/constitutional_ai/constitutional_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { SerializedBaseChain } from \"../serde.js\";\nimport { ConstitutionalPrinciple } from \"./constitutional_principle.js\";\n/**\n * Interface for the input of a ConstitutionalChain. Extends ChainInputs.\n */\nexport interface ConstitutionalChainInput extends ChainInputs {\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n}\n/**\n * Class representing a ConstitutionalChain. Extends BaseChain and\n * implements ConstitutionalChainInput.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = new ConstitutionalChain({\n * llm: new OpenAI({ temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\n * Question: {question}\n * Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.run({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalChain extends BaseChain implements ConstitutionalChainInput {\n static lc_name(): string;\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: ConstitutionalChainInput);\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n /**\n * Static method that returns an array of ConstitutionalPrinciple objects\n * based on the provided names.\n * @param names Optional array of principle names.\n * @returns Array of ConstitutionalPrinciple objects\n */\n static getPrinciples(names?: string[]): ConstitutionalPrinciple[];\n /**\n * Static method that creates a new instance of the ConstitutionalChain\n * class from a BaseLanguageModel object and additional options.\n * @param llm BaseLanguageModel instance.\n * @param options Options for the ConstitutionalChain.\n * @returns New instance of ConstitutionalChain\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ConstitutionalChainInput, \"critiqueChain\" | \"revisionChain\"> & {\n critiqueChain?: LLMChain;\n revisionChain?: LLMChain;\n }): ConstitutionalChain;\n private static _parseCritique;\n _chainType(): \"constitutional_chain\";\n serialize(): SerializedBaseChain;\n}\n"],"mappings":";;;;;;;;;;;;AAUA;
|
|
1
|
+
{"version":3,"file":"constitutional_chain.d.cts","names":["BaseLanguageModelInterface","ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","LLMChain","SerializedBaseChain","ConstitutionalPrinciple","ConstitutionalChainInput","ConstitutionalChain","Promise","Omit"],"sources":["../../../src/chains/constitutional_ai/constitutional_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { SerializedBaseChain } from \"../serde.js\";\nimport { ConstitutionalPrinciple } from \"./constitutional_principle.js\";\n/**\n * Interface for the input of a ConstitutionalChain. Extends ChainInputs.\n */\nexport interface ConstitutionalChainInput extends ChainInputs {\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n}\n/**\n * Class representing a ConstitutionalChain. Extends BaseChain and\n * implements ConstitutionalChainInput.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = new ConstitutionalChain({\n * llm: new OpenAI({ temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\n * Question: {question}\n * Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.run({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalChain extends BaseChain implements ConstitutionalChainInput {\n static lc_name(): string;\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: ConstitutionalChainInput);\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n /**\n * Static method that returns an array of ConstitutionalPrinciple objects\n * based on the provided names.\n * @param names Optional array of principle names.\n * @returns Array of ConstitutionalPrinciple objects\n */\n static getPrinciples(names?: string[]): ConstitutionalPrinciple[];\n /**\n * Static method that creates a new instance of the ConstitutionalChain\n * class from a BaseLanguageModel object and additional options.\n * @param llm BaseLanguageModel instance.\n * @param options Options for the ConstitutionalChain.\n * @returns New instance of ConstitutionalChain\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ConstitutionalChainInput, \"critiqueChain\" | \"revisionChain\"> & {\n critiqueChain?: LLMChain;\n revisionChain?: LLMChain;\n }): ConstitutionalChain;\n private static _parseCritique;\n _chainType(): \"constitutional_chain\";\n serialize(): SerializedBaseChain;\n}\n//# sourceMappingURL=constitutional_chain.d.ts.map"],"mappings":";;;;;;;;;;;;AAUA;AACWK,UADMG,wBAAAA,SAAiCJ,WACvCC,CAAAA;EACmBE,KAAAA,EADnBF,QACmBE;EACXF,wBAAAA,EADWE,uBACXF,EAAAA;EACAA,aAAAA,EADAA,QACAA;EAJ+BD,aAAAA,EAI/BC,QAJ+BD;AAAW;AA+B7D;;;;;;;;;;;;;;;;;;;;AAA8F;;;;;cAAzEK,mBAAAA,SAA4BN,SAAAA,YAAqBK;;SAE3DH;4BACmBE;iBACXF;iBACAA;;;sBAGKG;gBACNP,0BAA0BC,6BAA6BQ,QAAQT;;;;;;;0CAOrCM;;;;;;;;sBAQpBP,qCAAqCW,KAAKH;oBAC1CH;oBACAA;MAChBI;;;eAGSH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constitutional_chain.d.ts","names":["BaseLanguageModelInterface","ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","LLMChain","SerializedBaseChain","ConstitutionalPrinciple","ConstitutionalChainInput","ConstitutionalChain","Promise","Omit"],"sources":["../../../src/chains/constitutional_ai/constitutional_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { SerializedBaseChain } from \"../serde.js\";\nimport { ConstitutionalPrinciple } from \"./constitutional_principle.js\";\n/**\n * Interface for the input of a ConstitutionalChain. Extends ChainInputs.\n */\nexport interface ConstitutionalChainInput extends ChainInputs {\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n}\n/**\n * Class representing a ConstitutionalChain. Extends BaseChain and\n * implements ConstitutionalChainInput.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = new ConstitutionalChain({\n * llm: new OpenAI({ temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\n * Question: {question}\n * Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.run({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalChain extends BaseChain implements ConstitutionalChainInput {\n static lc_name(): string;\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: ConstitutionalChainInput);\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n /**\n * Static method that returns an array of ConstitutionalPrinciple objects\n * based on the provided names.\n * @param names Optional array of principle names.\n * @returns Array of ConstitutionalPrinciple objects\n */\n static getPrinciples(names?: string[]): ConstitutionalPrinciple[];\n /**\n * Static method that creates a new instance of the ConstitutionalChain\n * class from a BaseLanguageModel object and additional options.\n * @param llm BaseLanguageModel instance.\n * @param options Options for the ConstitutionalChain.\n * @returns New instance of ConstitutionalChain\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ConstitutionalChainInput, \"critiqueChain\" | \"revisionChain\"> & {\n critiqueChain?: LLMChain;\n revisionChain?: LLMChain;\n }): ConstitutionalChain;\n private static _parseCritique;\n _chainType(): \"constitutional_chain\";\n serialize(): SerializedBaseChain;\n}\n"],"mappings":";;;;;;;;;;;;AAUA;
|
|
1
|
+
{"version":3,"file":"constitutional_chain.d.ts","names":["BaseLanguageModelInterface","ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","LLMChain","SerializedBaseChain","ConstitutionalPrinciple","ConstitutionalChainInput","ConstitutionalChain","Promise","Omit"],"sources":["../../../src/chains/constitutional_ai/constitutional_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { SerializedBaseChain } from \"../serde.js\";\nimport { ConstitutionalPrinciple } from \"./constitutional_principle.js\";\n/**\n * Interface for the input of a ConstitutionalChain. Extends ChainInputs.\n */\nexport interface ConstitutionalChainInput extends ChainInputs {\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n}\n/**\n * Class representing a ConstitutionalChain. Extends BaseChain and\n * implements ConstitutionalChainInput.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = new ConstitutionalChain({\n * llm: new OpenAI({ temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\n * Question: {question}\n * Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.run({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalChain extends BaseChain implements ConstitutionalChainInput {\n static lc_name(): string;\n chain: LLMChain;\n constitutionalPrinciples: ConstitutionalPrinciple[];\n critiqueChain: LLMChain;\n revisionChain: LLMChain;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: ConstitutionalChainInput);\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n /**\n * Static method that returns an array of ConstitutionalPrinciple objects\n * based on the provided names.\n * @param names Optional array of principle names.\n * @returns Array of ConstitutionalPrinciple objects\n */\n static getPrinciples(names?: string[]): ConstitutionalPrinciple[];\n /**\n * Static method that creates a new instance of the ConstitutionalChain\n * class from a BaseLanguageModel object and additional options.\n * @param llm BaseLanguageModel instance.\n * @param options Options for the ConstitutionalChain.\n * @returns New instance of ConstitutionalChain\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ConstitutionalChainInput, \"critiqueChain\" | \"revisionChain\"> & {\n critiqueChain?: LLMChain;\n revisionChain?: LLMChain;\n }): ConstitutionalChain;\n private static _parseCritique;\n _chainType(): \"constitutional_chain\";\n serialize(): SerializedBaseChain;\n}\n//# sourceMappingURL=constitutional_chain.d.ts.map"],"mappings":";;;;;;;;;;;;AAUA;AACWK,UADMG,wBAAAA,SAAiCJ,WACvCC,CAAAA;EACmBE,KAAAA,EADnBF,QACmBE;EACXF,wBAAAA,EADWE,uBACXF,EAAAA;EACAA,aAAAA,EADAA,QACAA;EAJ+BD,aAAAA,EAI/BC,QAJ+BD;AAAW;AA+B7D;;;;;;;;;;;;;;;;;;;;AAA8F;;;;;cAAzEK,mBAAAA,SAA4BN,SAAAA,YAAqBK;;SAE3DH;4BACmBE;iBACXF;iBACAA;;;sBAGKG;gBACNP,0BAA0BC,6BAA6BQ,QAAQT;;;;;;;0CAOrCM;;;;;;;;sBAQpBP,qCAAqCW,KAAKH;oBAC1CH;oBACAA;MAChBI;;;eAGSH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constitutional_principle.d.cts","names":["SerializedConstitutionalPrinciple","ConstitutionalPrinciple","critiqueRequest","revisionRequest","name","PRINCIPLES"],"sources":["../../../src/chains/constitutional_ai/constitutional_principle.d.ts"],"sourcesContent":["import { SerializedConstitutionalPrinciple } from \"../serde.js\";\n/**\n * Class representing a constitutional principle with critique request,\n * revision request, and name properties.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = ConstitutionalChain.fromLLM(new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }), {\n * chain: new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\\n\\n Question: {question}\\n\\n Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.invoke({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalPrinciple {\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n constructor({ critiqueRequest, revisionRequest, name }: {\n critiqueRequest: string;\n revisionRequest: string;\n name?: string;\n });\n serialize(): SerializedConstitutionalPrinciple;\n}\nexport declare const PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n};\n"],"mappings":";;;;;;AA0BA
|
|
1
|
+
{"version":3,"file":"constitutional_principle.d.cts","names":["SerializedConstitutionalPrinciple","ConstitutionalPrinciple","critiqueRequest","revisionRequest","name","PRINCIPLES"],"sources":["../../../src/chains/constitutional_ai/constitutional_principle.d.ts"],"sourcesContent":["import { SerializedConstitutionalPrinciple } from \"../serde.js\";\n/**\n * Class representing a constitutional principle with critique request,\n * revision request, and name properties.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = ConstitutionalChain.fromLLM(new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }), {\n * chain: new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\\n\\n Question: {question}\\n\\n Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.invoke({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalPrinciple {\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n constructor({ critiqueRequest, revisionRequest, name }: {\n critiqueRequest: string;\n revisionRequest: string;\n name?: string;\n });\n serialize(): SerializedConstitutionalPrinciple;\n}\nexport declare const PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n};\n//# sourceMappingURL=constitutional_principle.d.ts.map"],"mappings":";;;;;;AA0BA;;;;;AASkD;AAElD;;;;;;;;;;;;;;;;;cAXqBC,uBAAAA;;;;;;;;;;;;;eASJD;;cAEIK;iBACFJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constitutional_principle.d.ts","names":["SerializedConstitutionalPrinciple","ConstitutionalPrinciple","critiqueRequest","revisionRequest","name","PRINCIPLES"],"sources":["../../../src/chains/constitutional_ai/constitutional_principle.d.ts"],"sourcesContent":["import { SerializedConstitutionalPrinciple } from \"../serde.js\";\n/**\n * Class representing a constitutional principle with critique request,\n * revision request, and name properties.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = ConstitutionalChain.fromLLM(new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }), {\n * chain: new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\\n\\n Question: {question}\\n\\n Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.invoke({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalPrinciple {\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n constructor({ critiqueRequest, revisionRequest, name }: {\n critiqueRequest: string;\n revisionRequest: string;\n name?: string;\n });\n serialize(): SerializedConstitutionalPrinciple;\n}\nexport declare const PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n};\n"],"mappings":";;;;;;AA0BA
|
|
1
|
+
{"version":3,"file":"constitutional_principle.d.ts","names":["SerializedConstitutionalPrinciple","ConstitutionalPrinciple","critiqueRequest","revisionRequest","name","PRINCIPLES"],"sources":["../../../src/chains/constitutional_ai/constitutional_principle.d.ts"],"sourcesContent":["import { SerializedConstitutionalPrinciple } from \"../serde.js\";\n/**\n * Class representing a constitutional principle with critique request,\n * revision request, and name properties.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = ConstitutionalChain.fromLLM(new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }), {\n * chain: new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\\n\\n Question: {question}\\n\\n Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.invoke({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport declare class ConstitutionalPrinciple {\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n constructor({ critiqueRequest, revisionRequest, name }: {\n critiqueRequest: string;\n revisionRequest: string;\n name?: string;\n });\n serialize(): SerializedConstitutionalPrinciple;\n}\nexport declare const PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n};\n//# sourceMappingURL=constitutional_principle.d.ts.map"],"mappings":";;;;;;AA0BA;;;;;AASkD;AAElD;;;;;;;;;;;;;;;;;cAXqBC,uBAAAA;;;;;;;;;;;;;eASJD;;cAEIK;iBACFJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.cts","names":["LLMChain","LLMChainInput","Optional","DEFAULT_TEMPLATE","ConversationChain","prompt","outputKey","memory"],"sources":["../../src/chains/conversation.d.ts"],"sourcesContent":["import { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { Optional } from \"../types/type-utils.js\";\nexport declare const DEFAULT_TEMPLATE = \"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\\n\\nCurrent conversation:\\n{history}\\nHuman: {input}\\nAI:\";\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport declare class ConversationChain extends LLMChain {\n static lc_name(): string;\n constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, \"prompt\">);\n}\n"],"mappings":";;;;;;AAoBA
|
|
1
|
+
{"version":3,"file":"conversation.d.cts","names":["LLMChain","LLMChainInput","Optional","DEFAULT_TEMPLATE","ConversationChain","prompt","outputKey","memory"],"sources":["../../src/chains/conversation.d.ts"],"sourcesContent":["import { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { Optional } from \"../types/type-utils.js\";\nexport declare const DEFAULT_TEMPLATE = \"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\\n\\nCurrent conversation:\\n{history}\\nHuman: {input}\\nAI:\";\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport declare class ConversationChain extends LLMChain {\n static lc_name(): string;\n constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, \"prompt\">);\n}\n//# sourceMappingURL=conversation.d.ts.map"],"mappings":";;;;;;AAoBA;;;;;;;AAAuD;;;;;;;;;cAAlCI,iBAAAA,SAA0BJ,QAAAA;;;;;;;KAESE,SAASD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":["LLMChain","LLMChainInput","Optional","DEFAULT_TEMPLATE","ConversationChain","prompt","outputKey","memory"],"sources":["../../src/chains/conversation.d.ts"],"sourcesContent":["import { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { Optional } from \"../types/type-utils.js\";\nexport declare const DEFAULT_TEMPLATE = \"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\\n\\nCurrent conversation:\\n{history}\\nHuman: {input}\\nAI:\";\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport declare class ConversationChain extends LLMChain {\n static lc_name(): string;\n constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, \"prompt\">);\n}\n"],"mappings":";;;;;;AAoBA
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":["LLMChain","LLMChainInput","Optional","DEFAULT_TEMPLATE","ConversationChain","prompt","outputKey","memory"],"sources":["../../src/chains/conversation.d.ts"],"sourcesContent":["import { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { Optional } from \"../types/type-utils.js\";\nexport declare const DEFAULT_TEMPLATE = \"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\\n\\nCurrent conversation:\\n{history}\\nHuman: {input}\\nAI:\";\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport declare class ConversationChain extends LLMChain {\n static lc_name(): string;\n constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, \"prompt\">);\n}\n//# sourceMappingURL=conversation.d.ts.map"],"mappings":";;;;;;AAoBA;;;;;;;AAAuD;;;;;;;;;cAAlCI,iBAAAA,SAA0BJ,QAAAA;;;;;;;KAESE,SAASD"}
|
|
@@ -9,7 +9,6 @@ import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
|
9
9
|
import { BaseRetrieverInterface } from "@langchain/core/retrievers";
|
|
10
10
|
|
|
11
11
|
//#region src/chains/conversational_retrieval_chain.d.ts
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
12
|
type LoadValues = Record<string, any>;
|
|
14
13
|
/**
|
|
15
14
|
* Interface for the input parameters of the
|
|
@@ -131,7 +130,7 @@ declare class ConversationalRetrievalQAChain extends BaseChain implements Conver
|
|
|
131
130
|
* @returns A new instance of ConversationalRetrievalQAChain.
|
|
132
131
|
*/
|
|
133
132
|
static fromLLM(llm: BaseLanguageModelInterface, retriever: BaseRetrieverInterface, options?: {
|
|
134
|
-
outputKey?: string;
|
|
133
|
+
outputKey?: string;
|
|
135
134
|
returnSourceDocuments?: boolean;
|
|
136
135
|
/** @deprecated Pass in questionGeneratorChainOptions.template instead */
|
|
137
136
|
questionGeneratorTemplate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversational_retrieval_chain.d.cts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","BaseMessage","ChainValues","CallbackManagerForChainRun","SerializedChatVectorDBQAChain","BaseChain","ChainInputs","LLMChain","QAChainParams","LoadValues","Record","ConversationalRetrievalQAChainInput","ConversationalRetrievalQAChain","Promise","Omit"],"sources":["../../src/chains/conversational_retrieval_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { SerializedChatVectorDBQAChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\nimport { QAChainParams } from \"./question_answering/load.js\";\
|
|
1
|
+
{"version":3,"file":"conversational_retrieval_chain.d.cts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","BaseMessage","ChainValues","CallbackManagerForChainRun","SerializedChatVectorDBQAChain","BaseChain","ChainInputs","LLMChain","QAChainParams","LoadValues","Record","ConversationalRetrievalQAChainInput","ConversationalRetrievalQAChain","Promise","Omit"],"sources":["../../src/chains/conversational_retrieval_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { SerializedChatVectorDBQAChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\nimport { QAChainParams } from \"./question_answering/load.js\";\nexport type LoadValues = Record<string, any>;\n/**\n * Interface for the input parameters of the\n * ConversationalRetrievalQAChain class.\n */\nexport interface ConversationalRetrievalQAChainInput extends ChainInputs {\n retriever: BaseRetrieverInterface;\n combineDocumentsChain: BaseChain;\n questionGeneratorChain: LLMChain;\n returnSourceDocuments?: boolean;\n returnGeneratedQuestion?: boolean;\n inputKey?: string;\n}\n/**\n * Class for conducting conversational question-answering tasks with a\n * retrieval component. Extends the BaseChain class and implements the\n * ConversationalRetrievalQAChainInput interface.\n * @example\n * ```typescript\n * import { ChatAnthropic } from \"@langchain/anthropic\";\n * import {\n * ChatPromptTemplate,\n * MessagesPlaceholder,\n * } from \"@langchain/core/prompts\";\n * import { BaseMessage } from \"@langchain/core/messages\";\n * import { createStuffDocumentsChain } from \"@langchain/classic/chains/combine_documents\";\n * import { createHistoryAwareRetriever } from \"@langchain/classic/chains/history_aware_retriever\";\n * import { createRetrievalChain } from \"@langchain/classic/chains/retrieval\";\n *\n * const retriever = ...your retriever;\n * const llm = new ChatAnthropic();\n *\n * // Contextualize question\n * const contextualizeQSystemPrompt = `\n * Given a chat history and the latest user question\n * which might reference context in the chat history,\n * formulate a standalone question which can be understood\n * without the chat history. Do NOT answer the question, just\n * reformulate it if needed and otherwise return it as is.`;\n * const contextualizeQPrompt = ChatPromptTemplate.fromMessages([\n * [\"system\", contextualizeQSystemPrompt],\n * new MessagesPlaceholder(\"chat_history\"),\n * [\"human\", \"{input}\"],\n * ]);\n * const historyAwareRetriever = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt: contextualizeQPrompt,\n * });\n *\n * // Answer question\n * const qaSystemPrompt = `\n * You are an assistant for question-answering tasks. Use\n * the following pieces of retrieved context to answer the\n * question. If you don't know the answer, just say that you\n * don't know. Use three sentences maximum and keep the answer\n * concise.\n * \\n\\n\n * {context}`;\n * const qaPrompt = ChatPromptTemplate.fromMessages([\n * [\"system\", qaSystemPrompt],\n * new MessagesPlaceholder(\"chat_history\"),\n * [\"human\", \"{input}\"],\n * ]);\n *\n * // Below we use createStuffDocuments_chain to feed all retrieved context\n * // into the LLM. Note that we can also use StuffDocumentsChain and other\n * // instances of BaseCombineDocumentsChain.\n * const questionAnswerChain = await createStuffDocumentsChain({\n * llm,\n * prompt: qaPrompt,\n * });\n *\n * const ragChain = await createRetrievalChain({\n * retriever: historyAwareRetriever,\n * combineDocsChain: questionAnswerChain,\n * });\n *\n * // Usage:\n * const chat_history: BaseMessage[] = [];\n * const response = await ragChain.invoke({\n * chat_history,\n * input: \"...\",\n * });\n * ```\n */\nexport declare class ConversationalRetrievalQAChain extends BaseChain implements ConversationalRetrievalQAChainInput {\n static lc_name(): string;\n inputKey: string;\n chatHistoryKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n retriever: BaseRetrieverInterface;\n combineDocumentsChain: BaseChain;\n questionGeneratorChain: LLMChain;\n returnSourceDocuments: boolean;\n returnGeneratedQuestion: boolean;\n constructor(fields: ConversationalRetrievalQAChainInput);\n /**\n * Static method to convert the chat history input into a formatted\n * string.\n * @param chatHistory Chat history input which can be a string, an array of BaseMessage instances, or an array of string arrays.\n * @returns A formatted string representing the chat history.\n */\n static getChatHistoryString(chatHistory: string | BaseMessage[] | string[][]): string;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n static deserialize(_data: SerializedChatVectorDBQAChain, _values: LoadValues): Promise<ConversationalRetrievalQAChain>;\n serialize(): SerializedChatVectorDBQAChain;\n /**\n * Static method to create a new ConversationalRetrievalQAChain from a\n * BaseLanguageModel and a BaseRetriever.\n * @param llm {@link BaseLanguageModelInterface} instance used to generate a new question.\n * @param retriever {@link BaseRetrieverInterface} instance used to retrieve relevant documents.\n * @param options.returnSourceDocuments Whether to return source documents in the final output\n * @param options.questionGeneratorChainOptions Options to initialize the standalone question generation chain used as the first internal step\n * @param options.qaChainOptions {@link QAChainParams} used to initialize the QA chain used as the second internal step\n * @returns A new instance of ConversationalRetrievalQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, retriever: BaseRetrieverInterface, options?: {\n outputKey?: string;\n returnSourceDocuments?: boolean;\n /** @deprecated Pass in questionGeneratorChainOptions.template instead */\n questionGeneratorTemplate?: string;\n /** @deprecated Pass in qaChainOptions.prompt instead */\n qaTemplate?: string;\n questionGeneratorChainOptions?: {\n llm?: BaseLanguageModelInterface;\n template?: string;\n };\n qaChainOptions?: QAChainParams;\n } & Omit<ConversationalRetrievalQAChainInput, \"retriever\" | \"combineDocumentsChain\" | \"questionGeneratorChain\">): ConversationalRetrievalQAChain;\n}\n//# sourceMappingURL=conversational_retrieval_chain.d.ts.map"],"mappings":";;;;;;;;;;;KASYU,UAAAA,GAAaC;;AAAzB;AAKA;;AAE2BL,UAFVM,mCAAAA,SAA4CL,WAElCD,CAAAA;EACCE,SAAAA,EAFbP,sBAEaO;EAHiCD,qBAAAA,EAElCD,SAFkCC;EAAW,sBAAA,EAG5CC,QAH4C;EAiFnDK,qBAAAA,CAAAA,EAAAA,OAAAA;EAMNZ,uBAAAA,CAAAA,EAAAA,OAAAA;EACYK,QAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;;;;;;;;;;;;;;;AAPyF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/FO,8BAAAA,SAAuCP,SAAAA,YAAqBM;;;;;;aAMlEX;yBACYK;0BACCE;;;sBAGJI;;;;;;;oDAO8BV;;gBAEpCC,0BAA0BC,6BAA6BU,QAAQX;;4BAEnDE,wCAAwCK,aAAaI,QAAQD;eAC1ER;;;;;;;;;;;sBAWOL,uCAAuCC;;;;;;;;YAQ7CD;;;qBAGOS;MACjBM,KAAKH,yGAAyGC"}
|
|
@@ -9,7 +9,6 @@ import { ChainValues } from "@langchain/core/utils/types";
|
|
|
9
9
|
import { BaseRetrieverInterface } from "@langchain/core/retrievers";
|
|
10
10
|
|
|
11
11
|
//#region src/chains/conversational_retrieval_chain.d.ts
|
|
12
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
12
|
type LoadValues = Record<string, any>;
|
|
14
13
|
/**
|
|
15
14
|
* Interface for the input parameters of the
|
|
@@ -131,7 +130,7 @@ declare class ConversationalRetrievalQAChain extends BaseChain implements Conver
|
|
|
131
130
|
* @returns A new instance of ConversationalRetrievalQAChain.
|
|
132
131
|
*/
|
|
133
132
|
static fromLLM(llm: BaseLanguageModelInterface, retriever: BaseRetrieverInterface, options?: {
|
|
134
|
-
outputKey?: string;
|
|
133
|
+
outputKey?: string;
|
|
135
134
|
returnSourceDocuments?: boolean;
|
|
136
135
|
/** @deprecated Pass in questionGeneratorChainOptions.template instead */
|
|
137
136
|
questionGeneratorTemplate?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversational_retrieval_chain.d.ts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","BaseMessage","ChainValues","CallbackManagerForChainRun","SerializedChatVectorDBQAChain","BaseChain","ChainInputs","LLMChain","QAChainParams","LoadValues","Record","ConversationalRetrievalQAChainInput","ConversationalRetrievalQAChain","Promise","Omit"],"sources":["../../src/chains/conversational_retrieval_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { SerializedChatVectorDBQAChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\nimport { QAChainParams } from \"./question_answering/load.js\";\
|
|
1
|
+
{"version":3,"file":"conversational_retrieval_chain.d.ts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","BaseMessage","ChainValues","CallbackManagerForChainRun","SerializedChatVectorDBQAChain","BaseChain","ChainInputs","LLMChain","QAChainParams","LoadValues","Record","ConversationalRetrievalQAChainInput","ConversationalRetrievalQAChain","Promise","Omit"],"sources":["../../src/chains/conversational_retrieval_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { SerializedChatVectorDBQAChain } from \"./serde.js\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { LLMChain } from \"./llm_chain.js\";\nimport { QAChainParams } from \"./question_answering/load.js\";\nexport type LoadValues = Record<string, any>;\n/**\n * Interface for the input parameters of the\n * ConversationalRetrievalQAChain class.\n */\nexport interface ConversationalRetrievalQAChainInput extends ChainInputs {\n retriever: BaseRetrieverInterface;\n combineDocumentsChain: BaseChain;\n questionGeneratorChain: LLMChain;\n returnSourceDocuments?: boolean;\n returnGeneratedQuestion?: boolean;\n inputKey?: string;\n}\n/**\n * Class for conducting conversational question-answering tasks with a\n * retrieval component. Extends the BaseChain class and implements the\n * ConversationalRetrievalQAChainInput interface.\n * @example\n * ```typescript\n * import { ChatAnthropic } from \"@langchain/anthropic\";\n * import {\n * ChatPromptTemplate,\n * MessagesPlaceholder,\n * } from \"@langchain/core/prompts\";\n * import { BaseMessage } from \"@langchain/core/messages\";\n * import { createStuffDocumentsChain } from \"@langchain/classic/chains/combine_documents\";\n * import { createHistoryAwareRetriever } from \"@langchain/classic/chains/history_aware_retriever\";\n * import { createRetrievalChain } from \"@langchain/classic/chains/retrieval\";\n *\n * const retriever = ...your retriever;\n * const llm = new ChatAnthropic();\n *\n * // Contextualize question\n * const contextualizeQSystemPrompt = `\n * Given a chat history and the latest user question\n * which might reference context in the chat history,\n * formulate a standalone question which can be understood\n * without the chat history. Do NOT answer the question, just\n * reformulate it if needed and otherwise return it as is.`;\n * const contextualizeQPrompt = ChatPromptTemplate.fromMessages([\n * [\"system\", contextualizeQSystemPrompt],\n * new MessagesPlaceholder(\"chat_history\"),\n * [\"human\", \"{input}\"],\n * ]);\n * const historyAwareRetriever = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt: contextualizeQPrompt,\n * });\n *\n * // Answer question\n * const qaSystemPrompt = `\n * You are an assistant for question-answering tasks. Use\n * the following pieces of retrieved context to answer the\n * question. If you don't know the answer, just say that you\n * don't know. Use three sentences maximum and keep the answer\n * concise.\n * \\n\\n\n * {context}`;\n * const qaPrompt = ChatPromptTemplate.fromMessages([\n * [\"system\", qaSystemPrompt],\n * new MessagesPlaceholder(\"chat_history\"),\n * [\"human\", \"{input}\"],\n * ]);\n *\n * // Below we use createStuffDocuments_chain to feed all retrieved context\n * // into the LLM. Note that we can also use StuffDocumentsChain and other\n * // instances of BaseCombineDocumentsChain.\n * const questionAnswerChain = await createStuffDocumentsChain({\n * llm,\n * prompt: qaPrompt,\n * });\n *\n * const ragChain = await createRetrievalChain({\n * retriever: historyAwareRetriever,\n * combineDocsChain: questionAnswerChain,\n * });\n *\n * // Usage:\n * const chat_history: BaseMessage[] = [];\n * const response = await ragChain.invoke({\n * chat_history,\n * input: \"...\",\n * });\n * ```\n */\nexport declare class ConversationalRetrievalQAChain extends BaseChain implements ConversationalRetrievalQAChainInput {\n static lc_name(): string;\n inputKey: string;\n chatHistoryKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n retriever: BaseRetrieverInterface;\n combineDocumentsChain: BaseChain;\n questionGeneratorChain: LLMChain;\n returnSourceDocuments: boolean;\n returnGeneratedQuestion: boolean;\n constructor(fields: ConversationalRetrievalQAChainInput);\n /**\n * Static method to convert the chat history input into a formatted\n * string.\n * @param chatHistory Chat history input which can be a string, an array of BaseMessage instances, or an array of string arrays.\n * @returns A formatted string representing the chat history.\n */\n static getChatHistoryString(chatHistory: string | BaseMessage[] | string[][]): string;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n static deserialize(_data: SerializedChatVectorDBQAChain, _values: LoadValues): Promise<ConversationalRetrievalQAChain>;\n serialize(): SerializedChatVectorDBQAChain;\n /**\n * Static method to create a new ConversationalRetrievalQAChain from a\n * BaseLanguageModel and a BaseRetriever.\n * @param llm {@link BaseLanguageModelInterface} instance used to generate a new question.\n * @param retriever {@link BaseRetrieverInterface} instance used to retrieve relevant documents.\n * @param options.returnSourceDocuments Whether to return source documents in the final output\n * @param options.questionGeneratorChainOptions Options to initialize the standalone question generation chain used as the first internal step\n * @param options.qaChainOptions {@link QAChainParams} used to initialize the QA chain used as the second internal step\n * @returns A new instance of ConversationalRetrievalQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, retriever: BaseRetrieverInterface, options?: {\n outputKey?: string;\n returnSourceDocuments?: boolean;\n /** @deprecated Pass in questionGeneratorChainOptions.template instead */\n questionGeneratorTemplate?: string;\n /** @deprecated Pass in qaChainOptions.prompt instead */\n qaTemplate?: string;\n questionGeneratorChainOptions?: {\n llm?: BaseLanguageModelInterface;\n template?: string;\n };\n qaChainOptions?: QAChainParams;\n } & Omit<ConversationalRetrievalQAChainInput, \"retriever\" | \"combineDocumentsChain\" | \"questionGeneratorChain\">): ConversationalRetrievalQAChain;\n}\n//# sourceMappingURL=conversational_retrieval_chain.d.ts.map"],"mappings":";;;;;;;;;;;KASYU,UAAAA,GAAaC;;AAAzB;AAKA;;AAE2BL,UAFVM,mCAAAA,SAA4CL,WAElCD,CAAAA;EACCE,SAAAA,EAFbP,sBAEaO;EAHiCD,qBAAAA,EAElCD,SAFkCC;EAAW,sBAAA,EAG5CC,QAH4C;EAiFnDK,qBAAAA,CAAAA,EAAAA,OAAAA;EAMNZ,uBAAAA,CAAAA,EAAAA,OAAAA;EACYK,QAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;;;;;;;;;;;;;;;AAPyF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA/FO,8BAAAA,SAAuCP,SAAAA,YAAqBM;;;;;;aAMlEX;yBACYK;0BACCE;;;sBAGJI;;;;;;;oDAO8BV;;gBAEpCC,0BAA0BC,6BAA6BU,QAAQX;;4BAEnDE,wCAAwCK,aAAaI,QAAQD;eAC1ER;;;;;;;;;;;sBAWOL,uCAAuCC;;;;;;;;YAQ7CD;;;qBAGOS;MACjBM,KAAKH,yGAAyGC"}
|
|
@@ -8,7 +8,6 @@ import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
|
|
|
8
8
|
//#region src/chains/graph_qa/cypher.d.ts
|
|
9
9
|
declare const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
10
10
|
interface GraphCypherQAChainInput extends ChainInputs {
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
11
|
graph: any;
|
|
13
12
|
cypherGenerationChain: LLMChain;
|
|
14
13
|
qaChain: LLMChain;
|
|
@@ -19,7 +18,6 @@ interface GraphCypherQAChainInput extends ChainInputs {
|
|
|
19
18
|
returnDirect?: boolean;
|
|
20
19
|
}
|
|
21
20
|
interface FromLLMInput {
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
21
|
graph: any;
|
|
24
22
|
llm?: BaseLanguageModelInterface;
|
|
25
23
|
cypherLLM?: BaseLanguageModelInterface;
|
|
@@ -54,7 +52,6 @@ interface FromLLMInput {
|
|
|
54
52
|
* See https://js.langchain.com/docs/security for more information.
|
|
55
53
|
*/
|
|
56
54
|
declare class GraphCypherQAChain extends BaseChain {
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
58
55
|
private graph;
|
|
59
56
|
private cypherGenerationChain;
|
|
60
57
|
private qaChain;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypher.d.cts","names":["BaseLanguageModelInterface","ChainValues","BasePromptTemplate","CallbackManagerForChainRun","LLMChain","BaseChain","ChainInputs","INTERMEDIATE_STEPS_KEY","GraphCypherQAChainInput","FromLLMInput","GraphCypherQAChain","Promise"],"sources":["../../../src/chains/graph_qa/cypher.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nexport declare const INTERMEDIATE_STEPS_KEY = \"intermediateSteps\";\nexport interface GraphCypherQAChainInput extends ChainInputs {\n
|
|
1
|
+
{"version":3,"file":"cypher.d.cts","names":["BaseLanguageModelInterface","ChainValues","BasePromptTemplate","CallbackManagerForChainRun","LLMChain","BaseChain","ChainInputs","INTERMEDIATE_STEPS_KEY","GraphCypherQAChainInput","FromLLMInput","GraphCypherQAChain","Promise"],"sources":["../../../src/chains/graph_qa/cypher.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nexport declare const INTERMEDIATE_STEPS_KEY = \"intermediateSteps\";\nexport interface GraphCypherQAChainInput extends ChainInputs {\n graph: any;\n cypherGenerationChain: LLMChain;\n qaChain: LLMChain;\n inputKey?: string;\n outputKey?: string;\n topK?: number;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\nexport interface FromLLMInput {\n graph: any;\n llm?: BaseLanguageModelInterface;\n cypherLLM?: BaseLanguageModelInterface;\n qaLLM?: BaseLanguageModelInterface;\n qaPrompt?: BasePromptTemplate;\n cypherPrompt?: BasePromptTemplate;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\n/**\n * Chain for question-answering against a graph by generating Cypher statements.\n *\n * @example\n * ```typescript\n * const chain = new GraphCypherQAChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * graph: new Neo4jGraph(),\n * });\n * const res = await chain.invoke(\"Who played in Pulp Fiction?\");\n * ```\n *\n * @security\n * This chain will execute Cypher statements against the provided database.\n * Make sure that the database connection uses credentials\n * that are narrowly-scoped to only include necessary permissions.\n * Failure to do so may result in data corruption or loss, since the calling code\n * may attempt commands that would result in deletion, mutation of data\n * if appropriately prompted or reading sensitive data if such data is present in the database.\n * The best way to guard against such negative outcomes is to (as appropriate) limit the\n * permissions granted to the credentials used with this tool.\n *\n * See https://js.langchain.com/docs/security for more information.\n */\nexport declare class GraphCypherQAChain extends BaseChain {\n private graph;\n private cypherGenerationChain;\n private qaChain;\n private inputKey;\n private outputKey;\n private topK;\n private returnDirect;\n private returnIntermediateSteps;\n constructor(props: GraphCypherQAChainInput);\n _chainType(): \"graph_cypher_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n static fromLLM(props: FromLLMInput): GraphCypherQAChain;\n private extractCypher;\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n}\n//# sourceMappingURL=cypher.d.ts.map"],"mappings":";;;;;;;;cAMqBO,sBAAAA;UACJC,uBAAAA,SAAgCF;EAD5BC,KAAAA,EAAAA,GAAAA;EACJC,qBAAAA,EAEUJ,QAFa;EAEbA,OAAAA,EACdA,QADcA;EACdA,QAAAA,CAAAA,EAAAA,MAAAA;EAHoCE,SAAAA,CAAAA,EAAAA,MAAAA;EAAW,IAAA,CAAA,EAAA,MAAA;EAU3CG,uBAAY,CAAA,EAAA,OAAA;EAEnBT,YAAAA,CAAAA,EAAAA,OAAAA;;AAEEA,UAJKS,YAAAA,CAILT;EACGE,KAAAA,EAAAA,GAAAA;EACIA,GAAAA,CAAAA,EAJTF,0BAISE;EAAkB,SAAA,CAAA,EAHrBF,0BAGqB;EA4BhBU,KAAAA,CAAAA,EA9BTV,0BA8B2B;EAShBQ,QAAAA,CAAAA,EAtCRN,kBAsCQM;EAIGC,YAAAA,CAAAA,EAzCPP,kBAyCOO;EAAeC,uBAAAA,CAAAA,EAAAA,OAAAA;EAEvBT,YAAAA,CAAAA,EAAAA,OAAAA;;;;;AAfuC;;;;;;;;;;;;;;;;;;;;;cAApCS,kBAAAA,SAA2BL,SAAAA;;;;;;;;;qBASzBG;;;;wBAIGC,eAAeC;;gBAEvBT,0BAA0BE,6BAA6BQ,QAAQV"}
|
|
@@ -8,7 +8,6 @@ import { ChainValues } from "@langchain/core/utils/types";
|
|
|
8
8
|
//#region src/chains/graph_qa/cypher.d.ts
|
|
9
9
|
declare const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
|
|
10
10
|
interface GraphCypherQAChainInput extends ChainInputs {
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
11
|
graph: any;
|
|
13
12
|
cypherGenerationChain: LLMChain;
|
|
14
13
|
qaChain: LLMChain;
|
|
@@ -19,7 +18,6 @@ interface GraphCypherQAChainInput extends ChainInputs {
|
|
|
19
18
|
returnDirect?: boolean;
|
|
20
19
|
}
|
|
21
20
|
interface FromLLMInput {
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
21
|
graph: any;
|
|
24
22
|
llm?: BaseLanguageModelInterface;
|
|
25
23
|
cypherLLM?: BaseLanguageModelInterface;
|
|
@@ -54,7 +52,6 @@ interface FromLLMInput {
|
|
|
54
52
|
* See https://js.langchain.com/docs/security for more information.
|
|
55
53
|
*/
|
|
56
54
|
declare class GraphCypherQAChain extends BaseChain {
|
|
57
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
58
55
|
private graph;
|
|
59
56
|
private cypherGenerationChain;
|
|
60
57
|
private qaChain;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypher.d.ts","names":["BaseLanguageModelInterface","ChainValues","BasePromptTemplate","CallbackManagerForChainRun","LLMChain","BaseChain","ChainInputs","INTERMEDIATE_STEPS_KEY","GraphCypherQAChainInput","FromLLMInput","GraphCypherQAChain","Promise"],"sources":["../../../src/chains/graph_qa/cypher.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nexport declare const INTERMEDIATE_STEPS_KEY = \"intermediateSteps\";\nexport interface GraphCypherQAChainInput extends ChainInputs {\n
|
|
1
|
+
{"version":3,"file":"cypher.d.ts","names":["BaseLanguageModelInterface","ChainValues","BasePromptTemplate","CallbackManagerForChainRun","LLMChain","BaseChain","ChainInputs","INTERMEDIATE_STEPS_KEY","GraphCypherQAChainInput","FromLLMInput","GraphCypherQAChain","Promise"],"sources":["../../../src/chains/graph_qa/cypher.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nexport declare const INTERMEDIATE_STEPS_KEY = \"intermediateSteps\";\nexport interface GraphCypherQAChainInput extends ChainInputs {\n graph: any;\n cypherGenerationChain: LLMChain;\n qaChain: LLMChain;\n inputKey?: string;\n outputKey?: string;\n topK?: number;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\nexport interface FromLLMInput {\n graph: any;\n llm?: BaseLanguageModelInterface;\n cypherLLM?: BaseLanguageModelInterface;\n qaLLM?: BaseLanguageModelInterface;\n qaPrompt?: BasePromptTemplate;\n cypherPrompt?: BasePromptTemplate;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\n/**\n * Chain for question-answering against a graph by generating Cypher statements.\n *\n * @example\n * ```typescript\n * const chain = new GraphCypherQAChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * graph: new Neo4jGraph(),\n * });\n * const res = await chain.invoke(\"Who played in Pulp Fiction?\");\n * ```\n *\n * @security\n * This chain will execute Cypher statements against the provided database.\n * Make sure that the database connection uses credentials\n * that are narrowly-scoped to only include necessary permissions.\n * Failure to do so may result in data corruption or loss, since the calling code\n * may attempt commands that would result in deletion, mutation of data\n * if appropriately prompted or reading sensitive data if such data is present in the database.\n * The best way to guard against such negative outcomes is to (as appropriate) limit the\n * permissions granted to the credentials used with this tool.\n *\n * See https://js.langchain.com/docs/security for more information.\n */\nexport declare class GraphCypherQAChain extends BaseChain {\n private graph;\n private cypherGenerationChain;\n private qaChain;\n private inputKey;\n private outputKey;\n private topK;\n private returnDirect;\n private returnIntermediateSteps;\n constructor(props: GraphCypherQAChainInput);\n _chainType(): \"graph_cypher_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n static fromLLM(props: FromLLMInput): GraphCypherQAChain;\n private extractCypher;\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n}\n//# sourceMappingURL=cypher.d.ts.map"],"mappings":";;;;;;;;cAMqBO,sBAAAA;UACJC,uBAAAA,SAAgCF;EAD5BC,KAAAA,EAAAA,GAAAA;EACJC,qBAAAA,EAEUJ,QAFa;EAEbA,OAAAA,EACdA,QADcA;EACdA,QAAAA,CAAAA,EAAAA,MAAAA;EAHoCE,SAAAA,CAAAA,EAAAA,MAAAA;EAAW,IAAA,CAAA,EAAA,MAAA;EAU3CG,uBAAY,CAAA,EAAA,OAAA;EAEnBT,YAAAA,CAAAA,EAAAA,OAAAA;;AAEEA,UAJKS,YAAAA,CAILT;EACGE,KAAAA,EAAAA,GAAAA;EACIA,GAAAA,CAAAA,EAJTF,0BAISE;EAAkB,SAAA,CAAA,EAHrBF,0BAGqB;EA4BhBU,KAAAA,CAAAA,EA9BTV,0BA8B2B;EAShBQ,QAAAA,CAAAA,EAtCRN,kBAsCQM;EAIGC,YAAAA,CAAAA,EAzCPP,kBAyCOO;EAAeC,uBAAAA,CAAAA,EAAAA,OAAAA;EAEvBT,YAAAA,CAAAA,EAAAA,OAAAA;;;;;AAfuC;;;;;;;;;;;;;;;;;;;;;cAApCS,kBAAAA,SAA2BL,SAAAA;;;;;;;;;qBASzBG;;;;wBAIGC,eAAeC;;gBAEvBT,0BAA0BE,6BAA6BQ,QAAQV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history_aware_retriever.d.cts","names":["LanguageModelLike","Runnable","RunnableInterface","BasePromptTemplate","DocumentInterface","BaseMessage","CreateHistoryAwareRetrieverParams","createHistoryAwareRetriever","llm","retriever","rephrasePrompt","Promise"],"sources":["../../src/chains/history_aware_retriever.d.ts"],"sourcesContent":["import type { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport { type Runnable, type RunnableInterface } from \"@langchain/core/runnables\";\nimport { type BasePromptTemplate } from \"@langchain/core/prompts\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport type { BaseMessage } from \"@langchain/core/messages\";\n/**\n * Params for the createHistoryAwareRetriever method.\n */\nexport type CreateHistoryAwareRetrieverParams = {\n /**\n * Language model to use for generating a search term given chat history.\n */\n llm: LanguageModelLike;\n /**\n * RetrieverLike object that takes a string as input and outputs a list of Documents.\n */\n retriever: RunnableInterface<string, DocumentInterface[]>;\n /**\n * The prompt used to generate the search query for the retriever.\n */\n rephrasePrompt: BasePromptTemplate;\n};\n/**\n * Create a chain that takes conversation history and returns documents.\n * If there is no `chat_history`, then the `input` is just passed directly to the\n * retriever. If there is `chat_history`, then the prompt and LLM will be used\n * to generate a search query. That search query is then passed to the retriever.\n * @param {CreateHistoryAwareRetriever} params\n * @returns An LCEL Runnable. The runnable input must take in `input`, and if there\n * is chat history should take it in the form of `chat_history`.\n * The Runnable output is a list of Documents\n * @example\n * ```typescript\n * // pnpm add langchain @langchain/openai\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n * import { pull } from \"langchain/hub\";\n * import { createHistoryAwareRetriever } from \"@langchain/classic/chains/history_aware_retriever\";\n *\n * const rephrasePrompt = await pull(\"langchain-ai/chat-langchain-rephrase\");\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const retriever = ...\n * const chain = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt,\n * });\n * const result = await chain.invoke({\"input\": \"...\", \"chat_history\": [] })\n * ```\n */\nexport declare function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt }: CreateHistoryAwareRetrieverParams): Promise<Runnable<{\n input: string;\n chat_history: string | BaseMessage[];\n}, DocumentInterface[]>>;\n"],"mappings":";;;;;;;;;;AAQA;
|
|
1
|
+
{"version":3,"file":"history_aware_retriever.d.cts","names":["LanguageModelLike","Runnable","RunnableInterface","BasePromptTemplate","DocumentInterface","BaseMessage","CreateHistoryAwareRetrieverParams","createHistoryAwareRetriever","llm","retriever","rephrasePrompt","Promise"],"sources":["../../src/chains/history_aware_retriever.d.ts"],"sourcesContent":["import type { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport { type Runnable, type RunnableInterface } from \"@langchain/core/runnables\";\nimport { type BasePromptTemplate } from \"@langchain/core/prompts\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport type { BaseMessage } from \"@langchain/core/messages\";\n/**\n * Params for the createHistoryAwareRetriever method.\n */\nexport type CreateHistoryAwareRetrieverParams = {\n /**\n * Language model to use for generating a search term given chat history.\n */\n llm: LanguageModelLike;\n /**\n * RetrieverLike object that takes a string as input and outputs a list of Documents.\n */\n retriever: RunnableInterface<string, DocumentInterface[]>;\n /**\n * The prompt used to generate the search query for the retriever.\n */\n rephrasePrompt: BasePromptTemplate;\n};\n/**\n * Create a chain that takes conversation history and returns documents.\n * If there is no `chat_history`, then the `input` is just passed directly to the\n * retriever. If there is `chat_history`, then the prompt and LLM will be used\n * to generate a search query. That search query is then passed to the retriever.\n * @param {CreateHistoryAwareRetriever} params\n * @returns An LCEL Runnable. The runnable input must take in `input`, and if there\n * is chat history should take it in the form of `chat_history`.\n * The Runnable output is a list of Documents\n * @example\n * ```typescript\n * // pnpm add langchain @langchain/openai\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n * import { pull } from \"langchain/hub\";\n * import { createHistoryAwareRetriever } from \"@langchain/classic/chains/history_aware_retriever\";\n *\n * const rephrasePrompt = await pull(\"langchain-ai/chat-langchain-rephrase\");\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const retriever = ...\n * const chain = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt,\n * });\n * const result = await chain.invoke({\"input\": \"...\", \"chat_history\": [] })\n * ```\n */\nexport declare function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt }: CreateHistoryAwareRetrieverParams): Promise<Runnable<{\n input: string;\n chat_history: string | BaseMessage[];\n}, DocumentInterface[]>>;\n//# sourceMappingURL=history_aware_retriever.d.ts.map"],"mappings":";;;;;;;;;;AAQA;AAISA,KAJGM,iCAAAA,GAIHN;EAIgCI;;;EAIH,GAAA,EAR7BJ,iBAQ6B;EA8BdO;;;EAA8CG,SAAAA,EAlCvDR,iBAkCuDQ,CAAAA,MAAAA,EAlC7BN,iBAkC6BM,EAAAA,CAAAA;EAAkBJ;;;EAA4CL,cAAAA,EA9BhHE,kBA8BgHF;CAARU;AAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA3GJ,2BAAAA;;;;GAAgED,oCAAoCK,QAAQV;;yBAEzGI;GACxBD"}
|