@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @langchain/classic
|
|
2
2
|
|
|
3
|
+
## 1.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#9416](https://github.com/langchain-ai/langchainjs/pull/9416) [`0fe9beb`](https://github.com/langchain-ai/langchainjs/commit/0fe9bebee6710f719e47f913eec1ec4f638e4de4) Thanks [@hntrl](https://github.com/hntrl)! - fix 'moduleResultion: "node"' compatibility
|
|
8
|
+
|
|
9
|
+
- [#9463](https://github.com/langchain-ai/langchainjs/pull/9463) [`10fa2af`](https://github.com/langchain-ai/langchainjs/commit/10fa2afec0b81efd3467e61b59ba5c82e1043de5) Thanks [@christian-bromann](https://github.com/christian-bromann)! - fix(core): update p-retry to fix memory leak
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`0fe9beb`](https://github.com/langchain-ai/langchainjs/commit/0fe9bebee6710f719e47f913eec1ec4f638e4de4)]:
|
|
12
|
+
- @langchain/openai@1.1.3
|
|
13
|
+
- @langchain/textsplitters@1.0.1
|
|
14
|
+
|
|
3
15
|
## 1.0.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __export = (target, all) => {
|
|
12
9
|
for (var name in all) __defProp(target, name, {
|
|
13
10
|
get: all[name],
|
|
@@ -32,7 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
29
|
|
|
33
30
|
//#endregion
|
|
34
31
|
|
|
35
|
-
exports.__commonJS = __commonJS;
|
|
36
32
|
exports.__export = __export;
|
|
37
33
|
exports.__reExport = __reExport;
|
|
38
34
|
exports.__toESM = __toESM;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
6
|
var __export = (target, all) => {
|
|
12
7
|
for (var name in all) __defProp(target, name, {
|
|
13
8
|
get: all[name],
|
|
@@ -25,10 +20,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
20
|
return to;
|
|
26
21
|
};
|
|
27
22
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
-
value: mod,
|
|
30
|
-
enumerable: true
|
|
31
|
-
}) : target, mod));
|
|
32
23
|
|
|
33
24
|
//#endregion
|
|
34
|
-
export {
|
|
25
|
+
export { __export, __reExport };
|
package/dist/agents/agent.d.cts
CHANGED
|
@@ -15,7 +15,6 @@ import { Serializable } from "@langchain/core/load/serializable";
|
|
|
15
15
|
/**
|
|
16
16
|
* Record type for arguments passed to output parsers.
|
|
17
17
|
*/
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
18
|
type OutputParserArgs = Record<string, any>;
|
|
20
19
|
/**
|
|
21
20
|
* Abstract base class for agents in LangChain. Provides common
|
|
@@ -79,32 +78,16 @@ declare abstract class BaseMultiActionAgent extends BaseAgent {
|
|
|
79
78
|
*/
|
|
80
79
|
abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
// Allows for the creation of runnables with properties that will
|
|
84
|
-
// be passed to the agent executor constructor.
|
|
85
|
-
declare class AgentRunnableSequence<
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
|
-
RunInput = any,
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
|
-
RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
81
|
+
declare class AgentRunnableSequence<RunInput = any, RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
90
82
|
streamRunnable?: boolean;
|
|
91
83
|
singleAction: boolean;
|
|
92
|
-
|
|
93
|
-
static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [RunnableLike<RunInput>, ...RunnableLike[],
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
95
|
-
RunnableLike<any, RunOutput>], config: {
|
|
84
|
+
static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [RunnableLike<RunInput>, ...RunnableLike[], RunnableLike<any, RunOutput>], config: {
|
|
96
85
|
singleAction: boolean;
|
|
97
86
|
streamRunnable?: boolean;
|
|
98
87
|
name?: string;
|
|
99
88
|
}): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;
|
|
100
89
|
static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;
|
|
101
90
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Class representing a single-action agent powered by runnables.
|
|
104
|
-
* Extends the BaseSingleActionAgent class and provides methods for
|
|
105
|
-
* planning agent actions with runnables.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
91
|
/**
|
|
109
92
|
* Class representing a multi-action agent powered by runnables.
|
|
110
93
|
* Extends the BaseMultiActionAgent class and provides methods for
|
|
@@ -112,7 +95,6 @@ RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
|
112
95
|
*/
|
|
113
96
|
declare class RunnableMultiActionAgent extends BaseMultiActionAgent {
|
|
114
97
|
lc_namespace: string[];
|
|
115
|
-
// TODO: Rename input to "intermediate_steps"
|
|
116
98
|
runnable: Runnable<ChainValues & {
|
|
117
99
|
steps: AgentStep[];
|
|
118
100
|
}, AgentAction[] | AgentAction | AgentFinish>;
|
|
@@ -228,9 +210,7 @@ declare abstract class Agent extends BaseSingleActionAgent {
|
|
|
228
210
|
*
|
|
229
211
|
* @returns A PromptTemplate assembled from the given tools and fields.
|
|
230
212
|
* */
|
|
231
|
-
static createPrompt(_tools: StructuredToolInterface[],
|
|
232
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
-
_fields?: Record<string, any>): BasePromptTemplate;
|
|
213
|
+
static createPrompt(_tools: StructuredToolInterface[], _fields?: Record<string, any>): BasePromptTemplate;
|
|
234
214
|
/** Construct an agent from an LLM and a list of tools */
|
|
235
215
|
static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;
|
|
236
216
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.cts","names":["StructuredToolInterface","ToolInterface","BaseLanguageModelInterface","CallbackManager","Callbacks","BasePromptTemplate","AgentAction","AgentFinish","AgentStep","BaseMessage","ChainValues","Serializable","Runnable","RunnableConfig","RunnableSequence","RunnableLike","LLMChain","AgentActionOutputParser","AgentInput","RunnableMultiActionAgentInput","RunnableSingleActionAgentInput","SerializedAgent","StoppingMethod","OutputParserArgs","Record","BaseAgent","Promise","BaseSingleActionAgent","BaseMultiActionAgent","isRunnableAgent","AgentRunnableSequence","RunInput","RunOutput","Error","Exclude","RunnableSingleActionAgent","RunnableMultiActionAgent","RunnableAgent","LLMSingleActionAgentInput","LLMSingleActionAgent","AgentArgs","Agent"],"sources":["../../src/agents/agent.d.ts"],"sourcesContent":["import type { StructuredToolInterface, ToolInterface } from \"@langchain/core/tools\";\nimport type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { CallbackManager, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { AgentAction, AgentFinish, AgentStep } from \"@langchain/core/agents\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { Runnable, type RunnableConfig, RunnableSequence, RunnableLike } from \"@langchain/core/runnables\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { AgentActionOutputParser, AgentInput, RunnableMultiActionAgentInput, RunnableSingleActionAgentInput, SerializedAgent, StoppingMethod } from \"./types.js\";\n/**\n * Record type for arguments passed to output parsers.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type OutputParserArgs = Record<string, any>;\n/**\n * Abstract base class for agents in LangChain. Provides common\n * functionality for agents, such as handling inputs and outputs.\n */\nexport declare abstract class BaseAgent extends Serializable {\n ToolType: StructuredToolInterface;\n abstract get inputKeys(): string[];\n get returnValues(): string[];\n get allowedTools(): string[] | undefined;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n _agentType(): string;\n /**\n * Return the string type key uniquely identifying multi or single action agents.\n */\n abstract _agentActionType(): string;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, _steps: AgentStep[], _inputs: ChainValues, _callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Prepare the agent for output, if needed\n */\n prepareForOutput(_returnValues: AgentFinish[\"returnValues\"], _steps: AgentStep[]): Promise<AgentFinish[\"returnValues\"]>;\n}\n/**\n * Abstract base class for single action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * single action agents.\n */\nexport declare abstract class BaseSingleActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Abstract base class for multi-action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * multi-action agents.\n */\nexport declare abstract class BaseMultiActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Actions specifying what tools to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare function isRunnableAgent(x: BaseAgent): boolean;\n// TODO: Remove in the future. Only for backwards compatibility.\n// Allows for the creation of runnables with properties that will\n// be passed to the agent executor constructor.\nexport declare class AgentRunnableSequence<\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nRunInput = any, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nRunOutput = any> extends RunnableSequence<RunInput, RunOutput> {\n streamRunnable?: boolean;\n singleAction: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [\n RunnableLike<RunInput>,\n ...RunnableLike[],\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n RunnableLike<any, RunOutput>\n ], config: {\n singleAction: boolean;\n streamRunnable?: boolean;\n name?: string;\n }): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;\n static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;\n}\n/**\n * Class representing a single-action agent powered by runnables.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction | AgentFinish>;\n get inputKeys(): string[];\n /**\n * Whether to stream from the runnable or not.\n * If true, the underlying LLM is invoked in a streaming fashion to make it\n * possible to get access to the individual LLM tokens when using\n * `streamLog` with the Agent Executor. If false then LLM is invoked in a\n * non-streaming fashion and individual LLM tokens will not be available\n * in `streamLog`.\n *\n * Note that the runnable should still only stream a single action or\n * finish chunk.\n */\n streamRunnable: boolean;\n defaultRunName: string;\n constructor(fields: RunnableSingleActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Class representing a multi-action agent powered by runnables.\n * Extends the BaseMultiActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableMultiActionAgent extends BaseMultiActionAgent {\n lc_namespace: string[];\n // TODO: Rename input to \"intermediate_steps\"\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction[] | AgentAction | AgentFinish>;\n defaultRunName: string;\n stop?: string[];\n streamRunnable: boolean;\n get inputKeys(): string[];\n constructor(fields: RunnableMultiActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare class RunnableAgent extends RunnableMultiActionAgent {\n}\n/**\n * Interface for input data for creating a LLMSingleActionAgent.\n */\nexport interface LLMSingleActionAgentInput {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n}\n/**\n * Class representing a single action agent using a LLMChain in LangChain.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions based on LLMChain outputs.\n * @example\n * ```typescript\n * const customPromptTemplate = new CustomPromptTemplate({\n * tools: [new Calculator()],\n * inputVariables: [\"input\", \"agent_scratchpad\"],\n * });\n * const customOutputParser = new CustomOutputParser();\n * const agent = new LLMSingleActionAgent({\n * llmChain: new LLMChain({\n * prompt: customPromptTemplate,\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * }),\n * outputParser: customOutputParser,\n * stop: [\"\\nObservation\"],\n * });\n * const executor = new AgentExecutor({\n * agent,\n * tools: [new Calculator()],\n * });\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class LLMSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n constructor(input: LLMSingleActionAgentInput);\n get inputKeys(): string[];\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Interface for arguments used to create an agent in LangChain.\n */\nexport interface AgentArgs {\n outputParser?: AgentActionOutputParser;\n callbacks?: Callbacks;\n /**\n * @deprecated Use `callbacks` instead.\n */\n callbackManager?: CallbackManager;\n}\n/**\n * Class responsible for calling a language model and deciding an action.\n *\n * @remarks This is driven by an LLMChain. The prompt in the LLMChain *must*\n * include a variable called \"agent_scratchpad\" where the agent can put its\n * intermediary work.\n */\nexport declare abstract class Agent extends BaseSingleActionAgent {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser | undefined;\n private _allowedTools?;\n get allowedTools(): string[] | undefined;\n get inputKeys(): string[];\n constructor(input: AgentInput);\n /**\n * Prefix to append the observation with.\n */\n abstract observationPrefix(): string;\n /**\n * Prefix to append the LLM call with.\n */\n abstract llmPrefix(): string;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n abstract _agentType(): string;\n /**\n * Get the default output parser for this agent.\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): AgentActionOutputParser;\n /**\n * Create a prompt for this class\n *\n * @param _tools - List of tools the agent will have access to, used to format the prompt.\n * @param _fields - Additional fields used to format the prompt.\n *\n * @returns A PromptTemplate assembled from the given tools and fields.\n * */\n static createPrompt(_tools: StructuredToolInterface[], \n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _fields?: Record<string, any>): BasePromptTemplate;\n /** Construct an agent from an LLM and a list of tools */\n static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;\n /**\n * Validate that appropriate tools are passed in\n */\n static validateTools(_tools: StructuredToolInterface[]): void;\n _stop(): string[];\n /**\n * Name of tool to use to terminate the chain.\n */\n finishToolName(): string;\n /**\n * Construct a scratchpad to let the agent continue its thought process\n */\n constructScratchPad(steps: AgentStep[]): Promise<string | BaseMessage[]>;\n private _plan;\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager to use for this call.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Load an agent from a json-like object describing it.\n */\n static deserialize(data: SerializedAgent & {\n llm?: BaseLanguageModelInterface;\n tools?: ToolInterface[];\n }): Promise<Agent>;\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"agent.d.cts","names":["StructuredToolInterface","ToolInterface","BaseLanguageModelInterface","CallbackManager","Callbacks","BasePromptTemplate","AgentAction","AgentFinish","AgentStep","BaseMessage","ChainValues","Serializable","Runnable","RunnableConfig","RunnableSequence","RunnableLike","LLMChain","AgentActionOutputParser","AgentInput","RunnableMultiActionAgentInput","RunnableSingleActionAgentInput","SerializedAgent","StoppingMethod","OutputParserArgs","Record","BaseAgent","Promise","BaseSingleActionAgent","BaseMultiActionAgent","isRunnableAgent","AgentRunnableSequence","RunInput","RunOutput","Error","Exclude","RunnableSingleActionAgent","RunnableMultiActionAgent","RunnableAgent","LLMSingleActionAgentInput","LLMSingleActionAgent","AgentArgs","Agent"],"sources":["../../src/agents/agent.d.ts"],"sourcesContent":["import type { StructuredToolInterface, ToolInterface } from \"@langchain/core/tools\";\nimport type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { CallbackManager, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { AgentAction, AgentFinish, AgentStep } from \"@langchain/core/agents\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { Runnable, type RunnableConfig, RunnableSequence, RunnableLike } from \"@langchain/core/runnables\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { AgentActionOutputParser, AgentInput, RunnableMultiActionAgentInput, RunnableSingleActionAgentInput, SerializedAgent, StoppingMethod } from \"./types.js\";\n/**\n * Record type for arguments passed to output parsers.\n */\nexport type OutputParserArgs = Record<string, any>;\n/**\n * Abstract base class for agents in LangChain. Provides common\n * functionality for agents, such as handling inputs and outputs.\n */\nexport declare abstract class BaseAgent extends Serializable {\n ToolType: StructuredToolInterface;\n abstract get inputKeys(): string[];\n get returnValues(): string[];\n get allowedTools(): string[] | undefined;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n _agentType(): string;\n /**\n * Return the string type key uniquely identifying multi or single action agents.\n */\n abstract _agentActionType(): string;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, _steps: AgentStep[], _inputs: ChainValues, _callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Prepare the agent for output, if needed\n */\n prepareForOutput(_returnValues: AgentFinish[\"returnValues\"], _steps: AgentStep[]): Promise<AgentFinish[\"returnValues\"]>;\n}\n/**\n * Abstract base class for single action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * single action agents.\n */\nexport declare abstract class BaseSingleActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Abstract base class for multi-action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * multi-action agents.\n */\nexport declare abstract class BaseMultiActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Actions specifying what tools to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare function isRunnableAgent(x: BaseAgent): boolean;\nexport declare class AgentRunnableSequence<RunInput = any, RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {\n streamRunnable?: boolean;\n singleAction: boolean;\n static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [\n RunnableLike<RunInput>,\n ...RunnableLike[],\n RunnableLike<any, RunOutput>\n ], config: {\n singleAction: boolean;\n streamRunnable?: boolean;\n name?: string;\n }): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;\n static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;\n}\n/**\n * Class representing a single-action agent powered by runnables.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction | AgentFinish>;\n get inputKeys(): string[];\n /**\n * Whether to stream from the runnable or not.\n * If true, the underlying LLM is invoked in a streaming fashion to make it\n * possible to get access to the individual LLM tokens when using\n * `streamLog` with the Agent Executor. If false then LLM is invoked in a\n * non-streaming fashion and individual LLM tokens will not be available\n * in `streamLog`.\n *\n * Note that the runnable should still only stream a single action or\n * finish chunk.\n */\n streamRunnable: boolean;\n defaultRunName: string;\n constructor(fields: RunnableSingleActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Class representing a multi-action agent powered by runnables.\n * Extends the BaseMultiActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableMultiActionAgent extends BaseMultiActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction[] | AgentAction | AgentFinish>;\n defaultRunName: string;\n stop?: string[];\n streamRunnable: boolean;\n get inputKeys(): string[];\n constructor(fields: RunnableMultiActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare class RunnableAgent extends RunnableMultiActionAgent {\n}\n/**\n * Interface for input data for creating a LLMSingleActionAgent.\n */\nexport interface LLMSingleActionAgentInput {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n}\n/**\n * Class representing a single action agent using a LLMChain in LangChain.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions based on LLMChain outputs.\n * @example\n * ```typescript\n * const customPromptTemplate = new CustomPromptTemplate({\n * tools: [new Calculator()],\n * inputVariables: [\"input\", \"agent_scratchpad\"],\n * });\n * const customOutputParser = new CustomOutputParser();\n * const agent = new LLMSingleActionAgent({\n * llmChain: new LLMChain({\n * prompt: customPromptTemplate,\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * }),\n * outputParser: customOutputParser,\n * stop: [\"\\nObservation\"],\n * });\n * const executor = new AgentExecutor({\n * agent,\n * tools: [new Calculator()],\n * });\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class LLMSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n constructor(input: LLMSingleActionAgentInput);\n get inputKeys(): string[];\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Interface for arguments used to create an agent in LangChain.\n */\nexport interface AgentArgs {\n outputParser?: AgentActionOutputParser;\n callbacks?: Callbacks;\n /**\n * @deprecated Use `callbacks` instead.\n */\n callbackManager?: CallbackManager;\n}\n/**\n * Class responsible for calling a language model and deciding an action.\n *\n * @remarks This is driven by an LLMChain. The prompt in the LLMChain *must*\n * include a variable called \"agent_scratchpad\" where the agent can put its\n * intermediary work.\n */\nexport declare abstract class Agent extends BaseSingleActionAgent {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser | undefined;\n private _allowedTools?;\n get allowedTools(): string[] | undefined;\n get inputKeys(): string[];\n constructor(input: AgentInput);\n /**\n * Prefix to append the observation with.\n */\n abstract observationPrefix(): string;\n /**\n * Prefix to append the LLM call with.\n */\n abstract llmPrefix(): string;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n abstract _agentType(): string;\n /**\n * Get the default output parser for this agent.\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): AgentActionOutputParser;\n /**\n * Create a prompt for this class\n *\n * @param _tools - List of tools the agent will have access to, used to format the prompt.\n * @param _fields - Additional fields used to format the prompt.\n *\n * @returns A PromptTemplate assembled from the given tools and fields.\n * */\n static createPrompt(_tools: StructuredToolInterface[], _fields?: Record<string, any>): BasePromptTemplate;\n /** Construct an agent from an LLM and a list of tools */\n static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;\n /**\n * Validate that appropriate tools are passed in\n */\n static validateTools(_tools: StructuredToolInterface[]): void;\n _stop(): string[];\n /**\n * Name of tool to use to terminate the chain.\n */\n finishToolName(): string;\n /**\n * Construct a scratchpad to let the agent continue its thought process\n */\n constructScratchPad(steps: AgentStep[]): Promise<string | BaseMessage[]>;\n private _plan;\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager to use for this call.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Load an agent from a json-like object describing it.\n */\n static deserialize(data: SerializedAgent & {\n llm?: BaseLanguageModelInterface;\n tools?: ToolInterface[];\n }): Promise<Agent>;\n}\n//# sourceMappingURL=agent.d.ts.map"],"mappings":";;;;;;;;;;;;;;;;AAcA;AAK8ByB,KALlBF,gBAAAA,GAAmBC,MAKQ,CAAA,MAAA,EAAA,GAAA,CAAA;;;;;AAgBsFrB,uBAhB/FsB,SAAAA,SAAkBd,YAAAA,CAgB6ER;EAA0BI,QAAAA,EAfzIP,uBAeyIO;EAARmB,aAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAI3GnB,IAAAA,YAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAAqCC,IAAAA,YAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA,GAAAA,SAAAA;EAAsBD;;;EApBnC,UAAA,CAAA,CAAA,EAAA,MAAA;EA2B9BoB;;;EAW+CxB,SAAAA,gBAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAA0BU;;;EAAiBa,qBAAAA,CAAAA,mBAAAA,EAtBzEJ,cAsByEI,EAAAA,MAAAA,EAtBjDlB,SAsBiDkB,EAAAA,EAAAA,OAAAA,EAtB3BhB,WAsB2BgB,EAAAA,gBAAAA,CAAAA,EAtBKvB,eAsBLuB,CAAAA,EAtBuBA,OAsBvBA,CAtB+BnB,WAsB/BmB,CAAAA;EAX5DD;AAAS;AAkBrE;EAWyBjB,gBAAAA,CAAAA,aAAAA,EApCWD,WAoCXC,CAAAA,cAAAA,CAAAA,EAAAA,MAAAA,EApCgDA,SAoChDA,EAAAA,CAAAA,EApC8DkB,OAoC9DlB,CApCsED,WAoCtEC,CAAAA,cAAAA,CAAAA,CAAAA;;;;;;;AAXkCiB,uBAlB7BE,qBAAAA,SAA8BF,SAAAA,CAkBDA;EAAS,gBAAA,CAAA,CAAA,EAAA,MAAA;EAc/CK;;;;;;;;;EAW2BE,SAAAA,IAAAA,CAAAA,KAAAA,EAhCvBxB,SAgCuBwB,EAAAA,EAAAA,MAAAA,EAhCFtB,WAgCEsB,EAAAA,eAAAA,CAAAA,EAhC6B7B,eAgC7B6B,EAAAA,MAAAA,CAAAA,EAhCuDnB,cAgCvDmB,CAAAA,EAhCwEN,OAgCxEM,CAhCgF1B,WAgChF0B,GAhC8FzB,WAgC9FyB,CAAAA;;;;;;;AAXoD,uBAdtEJ,oBAAAA,SAA6BH,SAAAA,CAcyC;EA8C/EW,gBAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAEE1B;;;;;;;;;EAQ6CP,SAAAA,IAAAA,CAAAA,KAAAA,EA3D3CK,SA2D2CL,EAAAA,EAAAA,MAAAA,EA3DtBO,WA2DsBP,EAAAA,eAAAA,CAAAA,EA3DSA,eA2DTA,EAAAA,MAAAA,CAAAA,EA3DmCU,cA2DnCV,CAAAA,EA3DoDuB,OA2DpDvB,CA3D4DG,WA2D5DH,EAAAA,GA3D4EI,WA2D5EJ,CAAAA;;AAAmEI,cAxDlHuB,qBAwDkHvB,CAAAA,WAAAA,GAAAA,EAAAA,YAAAA,GAAAA,CAAAA,SAxDnDO,gBAwDmDP,CAxDlCwB,QAwDkCxB,EAxDxByB,SAwDwBzB,CAAAA,CAAAA;EAAxBmB,cAAAA,CAAAA,EAAAA,OAAAA;EAVzDE,YAAAA,EAAAA,OAAAA;EAAoB,OAAA,aAAA,CAAA,WAAA,GAAA,EAAA,YAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAAA,GAAA,SAAA,CAAA,EAAA,CA1ClEb,YAsD0B,CAtDbgB,QAsDa,CAAA,EAKjBO,GA1DNvB,YA0DMuB,EAAAA,EAzDTvB,YA2FawB,CAAAA,GAAAA,EA3FKP,SA2Fe,CAAA,CAE3BhB,EAAAA,MAAAA,EAAAA;IACIC,YAAAA,EAAAA,OAAAA;IAEKqB,cAAAA,CAAAA,EAAAA,OAAAA;IAWP9B,IAAAA,CAAAA,EAAAA,MAAAA;EAAqBE,CAAAA,CAAAA,EAtG7BoB,qBAsG6BpB,CAtGPqB,QAsGOrB,EAtGGwB,OAsGHxB,CAtGWsB,SAsGXtB,EAtGsBuB,KAsGtBvB,CAAAA,CAAAA;EAA+BP,OAAAA,uBAAAA,CAAAA,CAAAA,EArG9BS,QAqG8BT,CAAAA,EAAAA,CAAAA,IArGd2B,qBAqGc3B;;;;;;;AAiFrBmB,cApJ1Bc,wBAAAA,SAAiCR,oBAAAA,CAoJPN;EAAuBd,YAAAA,EAAAA,MAAAA,EAAAA;EAAqBE,QAAAA,EAlJ7EE,QAkJ6EF,CAlJpEA,WAkJoEA,GAAAA;IAA+BP,KAAAA,EAjJ3GK,SAiJ2GL,EAAAA;EAA0BI,CAAAA,EAhJ7ID,WAgJ6IC,EAAAA,GAhJ7HD,WAgJ6HC,GAhJ/GA,WAgJ+GA,CAAAA;EAARmB,cAAAA,EAAAA,MAAAA;EAI/GL,IAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EACfnB,cAAAA,EAAAA,OAAAA;EACED,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EACAwC,WAAAA,CAAAA,MAAAA,EAlJQtB,6BAkJRsB;EAARf,IAAAA,CAAAA,KAAAA,EAjJQlB,SAiJRkB,EAAAA,EAAAA,MAAAA,EAjJ6BhB,WAiJ7BgB,EAAAA,eAAAA,CAAAA,EAjJ4DvB,eAiJ5DuB,EAAAA,MAAAA,CAAAA,EAjJsFb,cAiJtFa,CAAAA,EAjJuGA,OAiJvGA,CAjJ+GpB,WAiJ/GoB,EAAAA,GAjJ+HnB,WAiJ/HmB,CAAAA;;AApEyD,cA3E5CW,aAAAA,SAAsBD,wBAAwB,CA2EF;;;;UAtEhDE,yBAAAA;YACHtB;gBACIC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgCGsB,oBAAAA,SAA6BZ,qBAAAA;;YAEpCX;gBACIC;;qBAEKqB;;;;;;;;;;;cAWP9B,qBAAqBE,+BAA+BP,kBAAkBuB,QAAQpB,cAAcC;;;;;UAK3FiC,SAAAA;iBACEvB;cACHb;;;;oBAIMD;;;;;;;;;uBASQsC,KAAAA,SAAcd,qBAAAA;YAC9BX;gBACIC;;;;qBAIKC;;;;;;;;;;;;;;;;0CAgBqBK,mBAAmBN;;;;;;;;;8BAS/BjB,qCAAqCwB,sBAAsBnB;;+BAE1DH,oCAAoCF,mCAAmCwC,YAAYC;;;;+BAInFzC;;;;;;;;;6BASFQ,cAAckB,iBAAiBjB;;;;;;;;;;;cAW9CD,qBAAqBE,+BAA+BP,kBAAkBuB,QAAQpB,cAAcC;;;;6CAI7De,uBAAuBd,qBAAqBE,+BAA+BP,kBAAkBuB,QAAQnB;;;;2BAIvHc;UACfnB;YACED;MACRyB,QAAQe"}
|
package/dist/agents/agent.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { AgentAction, AgentFinish, AgentStep } from "@langchain/core/agents";
|
|
|
15
15
|
/**
|
|
16
16
|
* Record type for arguments passed to output parsers.
|
|
17
17
|
*/
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
18
|
type OutputParserArgs = Record<string, any>;
|
|
20
19
|
/**
|
|
21
20
|
* Abstract base class for agents in LangChain. Provides common
|
|
@@ -79,32 +78,16 @@ declare abstract class BaseMultiActionAgent extends BaseAgent {
|
|
|
79
78
|
*/
|
|
80
79
|
abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;
|
|
81
80
|
}
|
|
82
|
-
|
|
83
|
-
// Allows for the creation of runnables with properties that will
|
|
84
|
-
// be passed to the agent executor constructor.
|
|
85
|
-
declare class AgentRunnableSequence<
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
|
-
RunInput = any,
|
|
88
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
89
|
-
RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
81
|
+
declare class AgentRunnableSequence<RunInput = any, RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
90
82
|
streamRunnable?: boolean;
|
|
91
83
|
singleAction: boolean;
|
|
92
|
-
|
|
93
|
-
static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [RunnableLike<RunInput>, ...RunnableLike[],
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
95
|
-
RunnableLike<any, RunOutput>], config: {
|
|
84
|
+
static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [RunnableLike<RunInput>, ...RunnableLike[], RunnableLike<any, RunOutput>], config: {
|
|
96
85
|
singleAction: boolean;
|
|
97
86
|
streamRunnable?: boolean;
|
|
98
87
|
name?: string;
|
|
99
88
|
}): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;
|
|
100
89
|
static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;
|
|
101
90
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Class representing a single-action agent powered by runnables.
|
|
104
|
-
* Extends the BaseSingleActionAgent class and provides methods for
|
|
105
|
-
* planning agent actions with runnables.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
91
|
/**
|
|
109
92
|
* Class representing a multi-action agent powered by runnables.
|
|
110
93
|
* Extends the BaseMultiActionAgent class and provides methods for
|
|
@@ -112,7 +95,6 @@ RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {
|
|
|
112
95
|
*/
|
|
113
96
|
declare class RunnableMultiActionAgent extends BaseMultiActionAgent {
|
|
114
97
|
lc_namespace: string[];
|
|
115
|
-
// TODO: Rename input to "intermediate_steps"
|
|
116
98
|
runnable: Runnable<ChainValues & {
|
|
117
99
|
steps: AgentStep[];
|
|
118
100
|
}, AgentAction[] | AgentAction | AgentFinish>;
|
|
@@ -228,9 +210,7 @@ declare abstract class Agent extends BaseSingleActionAgent {
|
|
|
228
210
|
*
|
|
229
211
|
* @returns A PromptTemplate assembled from the given tools and fields.
|
|
230
212
|
* */
|
|
231
|
-
static createPrompt(_tools: StructuredToolInterface[],
|
|
232
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
|
-
_fields?: Record<string, any>): BasePromptTemplate;
|
|
213
|
+
static createPrompt(_tools: StructuredToolInterface[], _fields?: Record<string, any>): BasePromptTemplate;
|
|
234
214
|
/** Construct an agent from an LLM and a list of tools */
|
|
235
215
|
static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;
|
|
236
216
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","names":["StructuredToolInterface","ToolInterface","BaseLanguageModelInterface","CallbackManager","Callbacks","BasePromptTemplate","AgentAction","AgentFinish","AgentStep","BaseMessage","ChainValues","Serializable","Runnable","RunnableConfig","RunnableSequence","RunnableLike","LLMChain","AgentActionOutputParser","AgentInput","RunnableMultiActionAgentInput","RunnableSingleActionAgentInput","SerializedAgent","StoppingMethod","OutputParserArgs","Record","BaseAgent","Promise","BaseSingleActionAgent","BaseMultiActionAgent","isRunnableAgent","AgentRunnableSequence","RunInput","RunOutput","Error","Exclude","RunnableSingleActionAgent","RunnableMultiActionAgent","RunnableAgent","LLMSingleActionAgentInput","LLMSingleActionAgent","AgentArgs","Agent"],"sources":["../../src/agents/agent.d.ts"],"sourcesContent":["import type { StructuredToolInterface, ToolInterface } from \"@langchain/core/tools\";\nimport type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { CallbackManager, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { AgentAction, AgentFinish, AgentStep } from \"@langchain/core/agents\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { Runnable, type RunnableConfig, RunnableSequence, RunnableLike } from \"@langchain/core/runnables\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { AgentActionOutputParser, AgentInput, RunnableMultiActionAgentInput, RunnableSingleActionAgentInput, SerializedAgent, StoppingMethod } from \"./types.js\";\n/**\n * Record type for arguments passed to output parsers.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type OutputParserArgs = Record<string, any>;\n/**\n * Abstract base class for agents in LangChain. Provides common\n * functionality for agents, such as handling inputs and outputs.\n */\nexport declare abstract class BaseAgent extends Serializable {\n ToolType: StructuredToolInterface;\n abstract get inputKeys(): string[];\n get returnValues(): string[];\n get allowedTools(): string[] | undefined;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n _agentType(): string;\n /**\n * Return the string type key uniquely identifying multi or single action agents.\n */\n abstract _agentActionType(): string;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, _steps: AgentStep[], _inputs: ChainValues, _callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Prepare the agent for output, if needed\n */\n prepareForOutput(_returnValues: AgentFinish[\"returnValues\"], _steps: AgentStep[]): Promise<AgentFinish[\"returnValues\"]>;\n}\n/**\n * Abstract base class for single action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * single action agents.\n */\nexport declare abstract class BaseSingleActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Abstract base class for multi-action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * multi-action agents.\n */\nexport declare abstract class BaseMultiActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Actions specifying what tools to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare function isRunnableAgent(x: BaseAgent): boolean;\n// TODO: Remove in the future. Only for backwards compatibility.\n// Allows for the creation of runnables with properties that will\n// be passed to the agent executor constructor.\nexport declare class AgentRunnableSequence<\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nRunInput = any, \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nRunOutput = any> extends RunnableSequence<RunInput, RunOutput> {\n streamRunnable?: boolean;\n singleAction: boolean;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [\n RunnableLike<RunInput>,\n ...RunnableLike[],\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n RunnableLike<any, RunOutput>\n ], config: {\n singleAction: boolean;\n streamRunnable?: boolean;\n name?: string;\n }): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;\n static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;\n}\n/**\n * Class representing a single-action agent powered by runnables.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction | AgentFinish>;\n get inputKeys(): string[];\n /**\n * Whether to stream from the runnable or not.\n * If true, the underlying LLM is invoked in a streaming fashion to make it\n * possible to get access to the individual LLM tokens when using\n * `streamLog` with the Agent Executor. If false then LLM is invoked in a\n * non-streaming fashion and individual LLM tokens will not be available\n * in `streamLog`.\n *\n * Note that the runnable should still only stream a single action or\n * finish chunk.\n */\n streamRunnable: boolean;\n defaultRunName: string;\n constructor(fields: RunnableSingleActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Class representing a multi-action agent powered by runnables.\n * Extends the BaseMultiActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableMultiActionAgent extends BaseMultiActionAgent {\n lc_namespace: string[];\n // TODO: Rename input to \"intermediate_steps\"\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction[] | AgentAction | AgentFinish>;\n defaultRunName: string;\n stop?: string[];\n streamRunnable: boolean;\n get inputKeys(): string[];\n constructor(fields: RunnableMultiActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare class RunnableAgent extends RunnableMultiActionAgent {\n}\n/**\n * Interface for input data for creating a LLMSingleActionAgent.\n */\nexport interface LLMSingleActionAgentInput {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n}\n/**\n * Class representing a single action agent using a LLMChain in LangChain.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions based on LLMChain outputs.\n * @example\n * ```typescript\n * const customPromptTemplate = new CustomPromptTemplate({\n * tools: [new Calculator()],\n * inputVariables: [\"input\", \"agent_scratchpad\"],\n * });\n * const customOutputParser = new CustomOutputParser();\n * const agent = new LLMSingleActionAgent({\n * llmChain: new LLMChain({\n * prompt: customPromptTemplate,\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * }),\n * outputParser: customOutputParser,\n * stop: [\"\\nObservation\"],\n * });\n * const executor = new AgentExecutor({\n * agent,\n * tools: [new Calculator()],\n * });\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class LLMSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n constructor(input: LLMSingleActionAgentInput);\n get inputKeys(): string[];\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Interface for arguments used to create an agent in LangChain.\n */\nexport interface AgentArgs {\n outputParser?: AgentActionOutputParser;\n callbacks?: Callbacks;\n /**\n * @deprecated Use `callbacks` instead.\n */\n callbackManager?: CallbackManager;\n}\n/**\n * Class responsible for calling a language model and deciding an action.\n *\n * @remarks This is driven by an LLMChain. The prompt in the LLMChain *must*\n * include a variable called \"agent_scratchpad\" where the agent can put its\n * intermediary work.\n */\nexport declare abstract class Agent extends BaseSingleActionAgent {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser | undefined;\n private _allowedTools?;\n get allowedTools(): string[] | undefined;\n get inputKeys(): string[];\n constructor(input: AgentInput);\n /**\n * Prefix to append the observation with.\n */\n abstract observationPrefix(): string;\n /**\n * Prefix to append the LLM call with.\n */\n abstract llmPrefix(): string;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n abstract _agentType(): string;\n /**\n * Get the default output parser for this agent.\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): AgentActionOutputParser;\n /**\n * Create a prompt for this class\n *\n * @param _tools - List of tools the agent will have access to, used to format the prompt.\n * @param _fields - Additional fields used to format the prompt.\n *\n * @returns A PromptTemplate assembled from the given tools and fields.\n * */\n static createPrompt(_tools: StructuredToolInterface[], \n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _fields?: Record<string, any>): BasePromptTemplate;\n /** Construct an agent from an LLM and a list of tools */\n static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;\n /**\n * Validate that appropriate tools are passed in\n */\n static validateTools(_tools: StructuredToolInterface[]): void;\n _stop(): string[];\n /**\n * Name of tool to use to terminate the chain.\n */\n finishToolName(): string;\n /**\n * Construct a scratchpad to let the agent continue its thought process\n */\n constructScratchPad(steps: AgentStep[]): Promise<string | BaseMessage[]>;\n private _plan;\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager to use for this call.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Load an agent from a json-like object describing it.\n */\n static deserialize(data: SerializedAgent & {\n llm?: BaseLanguageModelInterface;\n tools?: ToolInterface[];\n }): Promise<Agent>;\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"agent.d.ts","names":["StructuredToolInterface","ToolInterface","BaseLanguageModelInterface","CallbackManager","Callbacks","BasePromptTemplate","AgentAction","AgentFinish","AgentStep","BaseMessage","ChainValues","Serializable","Runnable","RunnableConfig","RunnableSequence","RunnableLike","LLMChain","AgentActionOutputParser","AgentInput","RunnableMultiActionAgentInput","RunnableSingleActionAgentInput","SerializedAgent","StoppingMethod","OutputParserArgs","Record","BaseAgent","Promise","BaseSingleActionAgent","BaseMultiActionAgent","isRunnableAgent","AgentRunnableSequence","RunInput","RunOutput","Error","Exclude","RunnableSingleActionAgent","RunnableMultiActionAgent","RunnableAgent","LLMSingleActionAgentInput","LLMSingleActionAgent","AgentArgs","Agent"],"sources":["../../src/agents/agent.d.ts"],"sourcesContent":["import type { StructuredToolInterface, ToolInterface } from \"@langchain/core/tools\";\nimport type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { CallbackManager, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { AgentAction, AgentFinish, AgentStep } from \"@langchain/core/agents\";\nimport { BaseMessage } from \"@langchain/core/messages\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { Runnable, type RunnableConfig, RunnableSequence, RunnableLike } from \"@langchain/core/runnables\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { AgentActionOutputParser, AgentInput, RunnableMultiActionAgentInput, RunnableSingleActionAgentInput, SerializedAgent, StoppingMethod } from \"./types.js\";\n/**\n * Record type for arguments passed to output parsers.\n */\nexport type OutputParserArgs = Record<string, any>;\n/**\n * Abstract base class for agents in LangChain. Provides common\n * functionality for agents, such as handling inputs and outputs.\n */\nexport declare abstract class BaseAgent extends Serializable {\n ToolType: StructuredToolInterface;\n abstract get inputKeys(): string[];\n get returnValues(): string[];\n get allowedTools(): string[] | undefined;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n _agentType(): string;\n /**\n * Return the string type key uniquely identifying multi or single action agents.\n */\n abstract _agentActionType(): string;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, _steps: AgentStep[], _inputs: ChainValues, _callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Prepare the agent for output, if needed\n */\n prepareForOutput(_returnValues: AgentFinish[\"returnValues\"], _steps: AgentStep[]): Promise<AgentFinish[\"returnValues\"]>;\n}\n/**\n * Abstract base class for single action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * single action agents.\n */\nexport declare abstract class BaseSingleActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Abstract base class for multi-action agents in LangChain. Extends the\n * BaseAgent class and provides additional functionality specific to\n * multi-action agents.\n */\nexport declare abstract class BaseMultiActionAgent extends BaseAgent {\n _agentActionType(): string;\n /**\n * Decide what to do, given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Actions specifying what tools to use.\n */\n abstract plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare function isRunnableAgent(x: BaseAgent): boolean;\nexport declare class AgentRunnableSequence<RunInput = any, RunOutput = any> extends RunnableSequence<RunInput, RunOutput> {\n streamRunnable?: boolean;\n singleAction: boolean;\n static fromRunnables<RunInput = any, RunOutput = any>([first, ...runnables]: [\n RunnableLike<RunInput>,\n ...RunnableLike[],\n RunnableLike<any, RunOutput>\n ], config: {\n singleAction: boolean;\n streamRunnable?: boolean;\n name?: string;\n }): AgentRunnableSequence<RunInput, Exclude<RunOutput, Error>>;\n static isAgentRunnableSequence(x: Runnable): x is AgentRunnableSequence;\n}\n/**\n * Class representing a single-action agent powered by runnables.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction | AgentFinish>;\n get inputKeys(): string[];\n /**\n * Whether to stream from the runnable or not.\n * If true, the underlying LLM is invoked in a streaming fashion to make it\n * possible to get access to the individual LLM tokens when using\n * `streamLog` with the Agent Executor. If false then LLM is invoked in a\n * non-streaming fashion and individual LLM tokens will not be available\n * in `streamLog`.\n *\n * Note that the runnable should still only stream a single action or\n * finish chunk.\n */\n streamRunnable: boolean;\n defaultRunName: string;\n constructor(fields: RunnableSingleActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Class representing a multi-action agent powered by runnables.\n * Extends the BaseMultiActionAgent class and provides methods for\n * planning agent actions with runnables.\n */\nexport declare class RunnableMultiActionAgent extends BaseMultiActionAgent {\n lc_namespace: string[];\n runnable: Runnable<ChainValues & {\n steps: AgentStep[];\n }, AgentAction[] | AgentAction | AgentFinish>;\n defaultRunName: string;\n stop?: string[];\n streamRunnable: boolean;\n get inputKeys(): string[];\n constructor(fields: RunnableMultiActionAgentInput);\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager, config?: RunnableConfig): Promise<AgentAction[] | AgentFinish>;\n}\nexport declare class RunnableAgent extends RunnableMultiActionAgent {\n}\n/**\n * Interface for input data for creating a LLMSingleActionAgent.\n */\nexport interface LLMSingleActionAgentInput {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n}\n/**\n * Class representing a single action agent using a LLMChain in LangChain.\n * Extends the BaseSingleActionAgent class and provides methods for\n * planning agent actions based on LLMChain outputs.\n * @example\n * ```typescript\n * const customPromptTemplate = new CustomPromptTemplate({\n * tools: [new Calculator()],\n * inputVariables: [\"input\", \"agent_scratchpad\"],\n * });\n * const customOutputParser = new CustomOutputParser();\n * const agent = new LLMSingleActionAgent({\n * llmChain: new LLMChain({\n * prompt: customPromptTemplate,\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * }),\n * outputParser: customOutputParser,\n * stop: [\"\\nObservation\"],\n * });\n * const executor = new AgentExecutor({\n * agent,\n * tools: [new Calculator()],\n * });\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class LLMSingleActionAgent extends BaseSingleActionAgent {\n lc_namespace: string[];\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser;\n stop?: string[];\n constructor(input: LLMSingleActionAgentInput);\n get inputKeys(): string[];\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n}\n/**\n * Interface for arguments used to create an agent in LangChain.\n */\nexport interface AgentArgs {\n outputParser?: AgentActionOutputParser;\n callbacks?: Callbacks;\n /**\n * @deprecated Use `callbacks` instead.\n */\n callbackManager?: CallbackManager;\n}\n/**\n * Class responsible for calling a language model and deciding an action.\n *\n * @remarks This is driven by an LLMChain. The prompt in the LLMChain *must*\n * include a variable called \"agent_scratchpad\" where the agent can put its\n * intermediary work.\n */\nexport declare abstract class Agent extends BaseSingleActionAgent {\n llmChain: LLMChain;\n outputParser: AgentActionOutputParser | undefined;\n private _allowedTools?;\n get allowedTools(): string[] | undefined;\n get inputKeys(): string[];\n constructor(input: AgentInput);\n /**\n * Prefix to append the observation with.\n */\n abstract observationPrefix(): string;\n /**\n * Prefix to append the LLM call with.\n */\n abstract llmPrefix(): string;\n /**\n * Return the string type key uniquely identifying this class of agent.\n */\n abstract _agentType(): string;\n /**\n * Get the default output parser for this agent.\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): AgentActionOutputParser;\n /**\n * Create a prompt for this class\n *\n * @param _tools - List of tools the agent will have access to, used to format the prompt.\n * @param _fields - Additional fields used to format the prompt.\n *\n * @returns A PromptTemplate assembled from the given tools and fields.\n * */\n static createPrompt(_tools: StructuredToolInterface[], _fields?: Record<string, any>): BasePromptTemplate;\n /** Construct an agent from an LLM and a list of tools */\n static fromLLMAndTools(_llm: BaseLanguageModelInterface, _tools: StructuredToolInterface[], _args?: AgentArgs): Agent;\n /**\n * Validate that appropriate tools are passed in\n */\n static validateTools(_tools: StructuredToolInterface[]): void;\n _stop(): string[];\n /**\n * Name of tool to use to terminate the chain.\n */\n finishToolName(): string;\n /**\n * Construct a scratchpad to let the agent continue its thought process\n */\n constructScratchPad(steps: AgentStep[]): Promise<string | BaseMessage[]>;\n private _plan;\n /**\n * Decide what to do given some input.\n *\n * @param steps - Steps the LLM has taken so far, along with observations from each.\n * @param inputs - User inputs.\n * @param callbackManager - Callback manager to use for this call.\n *\n * @returns Action specifying what tool to use.\n */\n plan(steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentAction | AgentFinish>;\n /**\n * Return response when agent has been stopped due to max iterations\n */\n returnStoppedResponse(earlyStoppingMethod: StoppingMethod, steps: AgentStep[], inputs: ChainValues, callbackManager?: CallbackManager): Promise<AgentFinish>;\n /**\n * Load an agent from a json-like object describing it.\n */\n static deserialize(data: SerializedAgent & {\n llm?: BaseLanguageModelInterface;\n tools?: ToolInterface[];\n }): Promise<Agent>;\n}\n//# sourceMappingURL=agent.d.ts.map"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","Optional","Agent","AgentArgs","OutputParserArgs","AgentInput","ChatAgentOutputParser","ChatCreatePromptArgs","ChatAgentInput","ChatAgent","Promise"],"sources":["../../../src/agents/chat/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentInput } from \"../types.js\";\nimport { ChatAgentOutputParser } from \"./outputParser.js\";\n/**\n * Interface for arguments used to create a chat prompt.\n */\nexport interface ChatCreatePromptArgs {\n /** String to put after the list of tools. */\n suffix?: string;\n /** String to put before the list of tools. */\n prefix?: string;\n /** String to use directly as the human message template. */\n humanMessageTemplate?: string;\n /** Formattable string to use as the instructions template. */\n formatInstructions?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n}\n/**\n * Type for input data for creating a ChatAgent, extending AgentInput with\n * optional 'outputParser'.\n */\nexport type ChatAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatAgentInput);\n _agentType(): \"chat-zero-shot-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n /**\n * Validates that all tools have descriptions. Throws an error if a tool\n * without a description is found.\n * @param tools Array of Tool instances to validate.\n * @returns void\n */\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Returns a default output parser for the ChatAgent.\n * @param _fields Optional OutputParserArgs to customize the output parser.\n * @returns ChatAgentOutputParser instance\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): ChatAgentOutputParser;\n /**\n * Constructs the agent's scratchpad, which is a string representation of\n * the agent's previous steps.\n * @param steps Array of AgentStep instances representing the agent's previous steps.\n * @returns Promise resolving to a string representing the agent's scratchpad.\n */\n constructScratchPad(steps: AgentStep[]): Promise<string>;\n /**\n * Create prompt in the style of the zero shot agent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.suffix - String to put after the list of tools.\n * @param args.prefix - String to put before the list of tools.\n * @param args.humanMessageTemplate - String to use directly as the human message template\n * @param args.formatInstructions - Formattable string to use as the instructions template\n */\n static createPrompt(tools: ToolInterface[], args?: ChatCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates a ChatAgent instance using a language model, tools, and\n * optional arguments.\n * @param llm BaseLanguageModelInterface instance to use in the agent.\n * @param tools Array of Tool instances to include in the agent.\n * @param args Optional arguments to customize the agent and prompt.\n * @returns ChatAgent instance\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatCreatePromptArgs & AgentArgs): ChatAgent;\n}\n"],"mappings":";;;;;;;;;;;;;AAWA;AAgBYW,UAhBKD,oBAAAA,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","Optional","Agent","AgentArgs","OutputParserArgs","AgentInput","ChatAgentOutputParser","ChatCreatePromptArgs","ChatAgentInput","ChatAgent","Promise"],"sources":["../../../src/agents/chat/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentInput } from \"../types.js\";\nimport { ChatAgentOutputParser } from \"./outputParser.js\";\n/**\n * Interface for arguments used to create a chat prompt.\n */\nexport interface ChatCreatePromptArgs {\n /** String to put after the list of tools. */\n suffix?: string;\n /** String to put before the list of tools. */\n prefix?: string;\n /** String to use directly as the human message template. */\n humanMessageTemplate?: string;\n /** Formattable string to use as the instructions template. */\n formatInstructions?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n}\n/**\n * Type for input data for creating a ChatAgent, extending AgentInput with\n * optional 'outputParser'.\n */\nexport type ChatAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatAgentInput);\n _agentType(): \"chat-zero-shot-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n /**\n * Validates that all tools have descriptions. Throws an error if a tool\n * without a description is found.\n * @param tools Array of Tool instances to validate.\n * @returns void\n */\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Returns a default output parser for the ChatAgent.\n * @param _fields Optional OutputParserArgs to customize the output parser.\n * @returns ChatAgentOutputParser instance\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): ChatAgentOutputParser;\n /**\n * Constructs the agent's scratchpad, which is a string representation of\n * the agent's previous steps.\n * @param steps Array of AgentStep instances representing the agent's previous steps.\n * @returns Promise resolving to a string representing the agent's scratchpad.\n */\n constructScratchPad(steps: AgentStep[]): Promise<string>;\n /**\n * Create prompt in the style of the zero shot agent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.suffix - String to put after the list of tools.\n * @param args.prefix - String to put before the list of tools.\n * @param args.humanMessageTemplate - String to use directly as the human message template\n * @param args.formatInstructions - Formattable string to use as the instructions template\n */\n static createPrompt(tools: ToolInterface[], args?: ChatCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates a ChatAgent instance using a language model, tools, and\n * optional arguments.\n * @param llm BaseLanguageModelInterface instance to use in the agent.\n * @param tools Array of Tool instances to include in the agent.\n * @param args Optional arguments to customize the agent and prompt.\n * @returns ChatAgent instance\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatCreatePromptArgs & AgentArgs): ChatAgent;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;AAWA;AAgBYW,UAhBKD,oBAAAA,CAgBqBF;EAKjBI;EAGPX,MAAAA,CAAAA,EAAAA,MAAAA;EACSU;EAWSV,MAAAA,CAAAA,EAAAA,MAAAA;EAMYM;EAAmBE,oBAAAA,CAAAA,EAAAA,MAAAA;EAOhCN;EAAcU,kBAAAA,CAAAA,EAAAA,MAAAA;EAWdZ;EAAwBS,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;;;;;;AASuEE,KArDlHD,cAAAA,GAAiBP,QAqDiGQ,CArDxFJ,UAqDwFI,EAAAA,cAAAA,CAAAA;;AAhDlF;;;cAAvBA,SAAAA,SAAkBP,KAAAA;;;YAGzBJ;qBACSU;;;;;;;;;;;8BAWSV;;;;;;0CAMYM,mBAAmBE;;;;;;;6BAOhCN,cAAcU;;;;;;;;;;;6BAWdZ,wBAAwBS,uBAAuBR;;;;;;;;;8BAS9CF,mCAAmCC,wBAAwBS,uBAAuBJ,YAAYM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","Optional","Agent","AgentArgs","OutputParserArgs","AgentInput","ChatAgentOutputParser","ChatCreatePromptArgs","ChatAgentInput","ChatAgent","Promise"],"sources":["../../../src/agents/chat/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentInput } from \"../types.js\";\nimport { ChatAgentOutputParser } from \"./outputParser.js\";\n/**\n * Interface for arguments used to create a chat prompt.\n */\nexport interface ChatCreatePromptArgs {\n /** String to put after the list of tools. */\n suffix?: string;\n /** String to put before the list of tools. */\n prefix?: string;\n /** String to use directly as the human message template. */\n humanMessageTemplate?: string;\n /** Formattable string to use as the instructions template. */\n formatInstructions?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n}\n/**\n * Type for input data for creating a ChatAgent, extending AgentInput with\n * optional 'outputParser'.\n */\nexport type ChatAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatAgentInput);\n _agentType(): \"chat-zero-shot-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n /**\n * Validates that all tools have descriptions. Throws an error if a tool\n * without a description is found.\n * @param tools Array of Tool instances to validate.\n * @returns void\n */\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Returns a default output parser for the ChatAgent.\n * @param _fields Optional OutputParserArgs to customize the output parser.\n * @returns ChatAgentOutputParser instance\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): ChatAgentOutputParser;\n /**\n * Constructs the agent's scratchpad, which is a string representation of\n * the agent's previous steps.\n * @param steps Array of AgentStep instances representing the agent's previous steps.\n * @returns Promise resolving to a string representing the agent's scratchpad.\n */\n constructScratchPad(steps: AgentStep[]): Promise<string>;\n /**\n * Create prompt in the style of the zero shot agent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.suffix - String to put after the list of tools.\n * @param args.prefix - String to put before the list of tools.\n * @param args.humanMessageTemplate - String to use directly as the human message template\n * @param args.formatInstructions - Formattable string to use as the instructions template\n */\n static createPrompt(tools: ToolInterface[], args?: ChatCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates a ChatAgent instance using a language model, tools, and\n * optional arguments.\n * @param llm BaseLanguageModelInterface instance to use in the agent.\n * @param tools Array of Tool instances to include in the agent.\n * @param args Optional arguments to customize the agent and prompt.\n * @returns ChatAgent instance\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatCreatePromptArgs & AgentArgs): ChatAgent;\n}\n"],"mappings":";;;;;;;;;;;;;AAWA;AAgBYW,UAhBKD,oBAAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","Optional","Agent","AgentArgs","OutputParserArgs","AgentInput","ChatAgentOutputParser","ChatCreatePromptArgs","ChatAgentInput","ChatAgent","Promise"],"sources":["../../../src/agents/chat/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentInput } from \"../types.js\";\nimport { ChatAgentOutputParser } from \"./outputParser.js\";\n/**\n * Interface for arguments used to create a chat prompt.\n */\nexport interface ChatCreatePromptArgs {\n /** String to put after the list of tools. */\n suffix?: string;\n /** String to put before the list of tools. */\n prefix?: string;\n /** String to use directly as the human message template. */\n humanMessageTemplate?: string;\n /** Formattable string to use as the instructions template. */\n formatInstructions?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n}\n/**\n * Type for input data for creating a ChatAgent, extending AgentInput with\n * optional 'outputParser'.\n */\nexport type ChatAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatAgentInput);\n _agentType(): \"chat-zero-shot-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n /**\n * Validates that all tools have descriptions. Throws an error if a tool\n * without a description is found.\n * @param tools Array of Tool instances to validate.\n * @returns void\n */\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Returns a default output parser for the ChatAgent.\n * @param _fields Optional OutputParserArgs to customize the output parser.\n * @returns ChatAgentOutputParser instance\n */\n static getDefaultOutputParser(_fields?: OutputParserArgs): ChatAgentOutputParser;\n /**\n * Constructs the agent's scratchpad, which is a string representation of\n * the agent's previous steps.\n * @param steps Array of AgentStep instances representing the agent's previous steps.\n * @returns Promise resolving to a string representing the agent's scratchpad.\n */\n constructScratchPad(steps: AgentStep[]): Promise<string>;\n /**\n * Create prompt in the style of the zero shot agent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.suffix - String to put after the list of tools.\n * @param args.prefix - String to put before the list of tools.\n * @param args.humanMessageTemplate - String to use directly as the human message template\n * @param args.formatInstructions - Formattable string to use as the instructions template\n */\n static createPrompt(tools: ToolInterface[], args?: ChatCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates a ChatAgent instance using a language model, tools, and\n * optional arguments.\n * @param llm BaseLanguageModelInterface instance to use in the agent.\n * @param tools Array of Tool instances to include in the agent.\n * @param args Optional arguments to customize the agent and prompt.\n * @returns ChatAgent instance\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatCreatePromptArgs & AgentArgs): ChatAgent;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;AAWA;AAgBYW,UAhBKD,oBAAAA,CAgBqBF;EAKjBI;EAGPX,MAAAA,CAAAA,EAAAA,MAAAA;EACSU;EAWSV,MAAAA,CAAAA,EAAAA,MAAAA;EAMYM;EAAmBE,oBAAAA,CAAAA,EAAAA,MAAAA;EAOhCN;EAAcU,kBAAAA,CAAAA,EAAAA,MAAAA;EAWdZ;EAAwBS,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;;;;;;AASuEE,KArDlHD,cAAAA,GAAiBP,QAqDiGQ,CArDxFJ,UAqDwFI,EAAAA,cAAAA,CAAAA;;AAhDlF;;;cAAvBA,SAAAA,SAAkBP,KAAAA;;;YAGzBJ;qBACSU;;;;;;;;;;;8BAWSV;;;;;;0CAMYM,mBAAmBE;;;;;;;6BAOhCN,cAAcU;;;;;;;;;;;6BAWdZ,wBAAwBS,uBAAuBR;;;;;;;;;8BAS9CF,mCAAmCC,wBAAwBS,uBAAuBJ,YAAYM"}
|
|
@@ -51,12 +51,12 @@ declare class ChatAgentOutputParser extends AgentActionOutputParser {
|
|
|
51
51
|
* @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.
|
|
52
52
|
*/
|
|
53
53
|
parse(text: string): Promise<{
|
|
54
|
+
tool?: undefined;
|
|
55
|
+
toolInput?: undefined;
|
|
54
56
|
returnValues: {
|
|
55
57
|
output: string;
|
|
56
58
|
};
|
|
57
59
|
log: string;
|
|
58
|
-
tool?: undefined;
|
|
59
|
-
toolInput?: undefined;
|
|
60
60
|
} | {
|
|
61
61
|
returnValues?: undefined;
|
|
62
62
|
tool: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputParser.d.cts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n
|
|
1
|
+
{"version":3,"file":"outputParser.d.cts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n tool?: undefined;\n toolInput?: undefined;\n returnValues: {\n output: string;\n };\n log: string;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputParser.d.ts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n tool?: undefined;\n toolInput?: undefined;\n returnValues: {\n output: string;\n };\n log: string;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n"],"mappings":";;;;;AAuCA
|
|
1
|
+
{"version":3,"file":"outputParser.d.ts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n tool?: undefined;\n toolInput?: undefined;\n returnValues: {\n output: string;\n };\n log: string;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","BaseMessage","Optional","Agent","AgentArgs","OutputParserArgs","AgentActionOutputParser","AgentInput","ChatConversationalCreatePromptArgs","ChatConversationalAgentInput","ChatConversationalAgent","Promise"],"sources":["../../../src/agents/chat_convo/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { type BaseMessage } from \"@langchain/core/messages\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser, AgentInput } from \"../types.js\";\n/**\n * Interface defining the structure of arguments used to create a prompt\n * for the ChatConversationalAgent class.\n */\nexport interface ChatConversationalCreatePromptArgs {\n /** String to put after the list of tools. */\n systemMessage?: string;\n /** String to put before the list of tools. */\n humanMessage?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n /** Output parser to use for formatting. */\n outputParser?: AgentActionOutputParser;\n}\n/**\n * Type that extends the AgentInput interface for the\n * ChatConversationalAgent class, making the outputParser property\n * optional.\n */\nexport type ChatConversationalAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatConversationalAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatConversationalAgentInput);\n _agentType(): \"chat-conversational-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Constructs the agent scratchpad based on the agent steps. It returns an\n * array of base messages representing the thoughts of the agent.\n * @param steps The agent steps to construct the scratchpad from.\n * @returns An array of base messages representing the thoughts of the agent.\n */\n constructScratchPad(steps: AgentStep[]): Promise<BaseMessage[]>;\n /**\n * Returns the default output parser for the ChatConversationalAgent\n * class. It takes optional fields as arguments to customize the output\n * parser.\n * @param fields Optional fields to customize the output parser.\n * @returns The default output parser for the ChatConversationalAgent class.\n */\n static getDefaultOutputParser(fields?: OutputParserArgs & {\n toolNames: string[];\n }): AgentActionOutputParser;\n /**\n * Create prompt in the style of the ChatConversationAgent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.systemMessage - String to put before the list of tools.\n * @param args.humanMessage - String to put after the list of tools.\n * @param args.outputParser - Output parser to use for formatting.\n */\n static createPrompt(tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates an instance of the ChatConversationalAgent class from a\n * BaseLanguageModel and a set of tools. It takes optional arguments to\n * customize the agent.\n * @param llm The BaseLanguageModel to create the agent from.\n * @param tools The set of tools to create the agent from.\n * @param args Optional arguments to customize the agent.\n * @returns An instance of the ChatConversationalAgent class.\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs & AgentArgs): ChatConversationalAgent;\n}\n"],"mappings":";;;;;;;;;;;;;AAYA;AAeA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","BaseMessage","Optional","Agent","AgentArgs","OutputParserArgs","AgentActionOutputParser","AgentInput","ChatConversationalCreatePromptArgs","ChatConversationalAgentInput","ChatConversationalAgent","Promise"],"sources":["../../../src/agents/chat_convo/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { type BaseMessage } from \"@langchain/core/messages\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser, AgentInput } from \"../types.js\";\n/**\n * Interface defining the structure of arguments used to create a prompt\n * for the ChatConversationalAgent class.\n */\nexport interface ChatConversationalCreatePromptArgs {\n /** String to put after the list of tools. */\n systemMessage?: string;\n /** String to put before the list of tools. */\n humanMessage?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n /** Output parser to use for formatting. */\n outputParser?: AgentActionOutputParser;\n}\n/**\n * Type that extends the AgentInput interface for the\n * ChatConversationalAgent class, making the outputParser property\n * optional.\n */\nexport type ChatConversationalAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatConversationalAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatConversationalAgentInput);\n _agentType(): \"chat-conversational-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Constructs the agent scratchpad based on the agent steps. It returns an\n * array of base messages representing the thoughts of the agent.\n * @param steps The agent steps to construct the scratchpad from.\n * @returns An array of base messages representing the thoughts of the agent.\n */\n constructScratchPad(steps: AgentStep[]): Promise<BaseMessage[]>;\n /**\n * Returns the default output parser for the ChatConversationalAgent\n * class. It takes optional fields as arguments to customize the output\n * parser.\n * @param fields Optional fields to customize the output parser.\n * @returns The default output parser for the ChatConversationalAgent class.\n */\n static getDefaultOutputParser(fields?: OutputParserArgs & {\n toolNames: string[];\n }): AgentActionOutputParser;\n /**\n * Create prompt in the style of the ChatConversationAgent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.systemMessage - String to put before the list of tools.\n * @param args.humanMessage - String to put after the list of tools.\n * @param args.outputParser - Output parser to use for formatting.\n */\n static createPrompt(tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates an instance of the ChatConversationalAgent class from a\n * BaseLanguageModel and a set of tools. It takes optional arguments to\n * customize the agent.\n * @param llm The BaseLanguageModel to create the agent from.\n * @param tools The set of tools to create the agent from.\n * @param args Optional arguments to customize the agent.\n * @returns An instance of the ChatConversationalAgent class.\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs & AgentArgs): ChatConversationalAgent;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;AAYA;AAeA;AAKqBa,UApBJF,kCAAAA,CAoB2B;EAG9BV;EACSW,aAAAA,CAAAA,EAAAA,MAAAA;EAKSX;EAODE,YAAAA,CAAAA,EAAAA,MAAAA;EAAsBC;EAARU,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAQFN;EAEnCC,YAAAA,CAAAA,EAtCWA,uBAsCXA;;;;;;;AAoBwHF,KAnDpHK,4BAAAA,GAA+BP,QAmDqFE,CAnD5EG,UAmD4EH,EAAAA,cAAAA,CAAAA;;;AA9CtE;;cAArCM,uBAAAA,SAAgCP,KAAAA;;;YAGvCL;qBACSW;;;;;8BAKSX;;;;;;;6BAODE,cAAcW,QAAQV;;;;;;;;yCAQVI;;MAEnCC;;;;;;;;;;6BAUuBR,wBAAwBU,qCAAqCT;;;;;;;;;;8BAU5DF,mCAAmCC,wBAAwBU,qCAAqCJ,YAAYM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","BaseMessage","Optional","Agent","AgentArgs","OutputParserArgs","AgentActionOutputParser","AgentInput","ChatConversationalCreatePromptArgs","ChatConversationalAgentInput","ChatConversationalAgent","Promise"],"sources":["../../../src/agents/chat_convo/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { type BaseMessage } from \"@langchain/core/messages\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser, AgentInput } from \"../types.js\";\n/**\n * Interface defining the structure of arguments used to create a prompt\n * for the ChatConversationalAgent class.\n */\nexport interface ChatConversationalCreatePromptArgs {\n /** String to put after the list of tools. */\n systemMessage?: string;\n /** String to put before the list of tools. */\n humanMessage?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n /** Output parser to use for formatting. */\n outputParser?: AgentActionOutputParser;\n}\n/**\n * Type that extends the AgentInput interface for the\n * ChatConversationalAgent class, making the outputParser property\n * optional.\n */\nexport type ChatConversationalAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatConversationalAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatConversationalAgentInput);\n _agentType(): \"chat-conversational-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Constructs the agent scratchpad based on the agent steps. It returns an\n * array of base messages representing the thoughts of the agent.\n * @param steps The agent steps to construct the scratchpad from.\n * @returns An array of base messages representing the thoughts of the agent.\n */\n constructScratchPad(steps: AgentStep[]): Promise<BaseMessage[]>;\n /**\n * Returns the default output parser for the ChatConversationalAgent\n * class. It takes optional fields as arguments to customize the output\n * parser.\n * @param fields Optional fields to customize the output parser.\n * @returns The default output parser for the ChatConversationalAgent class.\n */\n static getDefaultOutputParser(fields?: OutputParserArgs & {\n toolNames: string[];\n }): AgentActionOutputParser;\n /**\n * Create prompt in the style of the ChatConversationAgent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.systemMessage - String to put before the list of tools.\n * @param args.humanMessage - String to put after the list of tools.\n * @param args.outputParser - Output parser to use for formatting.\n */\n static createPrompt(tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates an instance of the ChatConversationalAgent class from a\n * BaseLanguageModel and a set of tools. It takes optional arguments to\n * customize the agent.\n * @param llm The BaseLanguageModel to create the agent from.\n * @param tools The set of tools to create the agent from.\n * @param args Optional arguments to customize the agent.\n * @returns An instance of the ChatConversationalAgent class.\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs & AgentArgs): ChatConversationalAgent;\n}\n"],"mappings":";;;;;;;;;;;;;AAYA;AAeA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["BaseLanguageModelInterface","ToolInterface","ChatPromptTemplate","AgentStep","BaseMessage","Optional","Agent","AgentArgs","OutputParserArgs","AgentActionOutputParser","AgentInput","ChatConversationalCreatePromptArgs","ChatConversationalAgentInput","ChatConversationalAgent","Promise"],"sources":["../../../src/agents/chat_convo/index.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { ToolInterface } from \"@langchain/core/tools\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport type { AgentStep } from \"@langchain/core/agents\";\nimport { type BaseMessage } from \"@langchain/core/messages\";\nimport { Optional } from \"../../types/type-utils.js\";\nimport { Agent, AgentArgs, OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser, AgentInput } from \"../types.js\";\n/**\n * Interface defining the structure of arguments used to create a prompt\n * for the ChatConversationalAgent class.\n */\nexport interface ChatConversationalCreatePromptArgs {\n /** String to put after the list of tools. */\n systemMessage?: string;\n /** String to put before the list of tools. */\n humanMessage?: string;\n /** List of input variables the final prompt will expect. */\n inputVariables?: string[];\n /** Output parser to use for formatting. */\n outputParser?: AgentActionOutputParser;\n}\n/**\n * Type that extends the AgentInput interface for the\n * ChatConversationalAgent class, making the outputParser property\n * optional.\n */\nexport type ChatConversationalAgentInput = Optional<AgentInput, \"outputParser\">;\n/**\n * Agent for the MRKL chain.\n * @augments Agent\n */\nexport declare class ChatConversationalAgent extends Agent {\n static lc_name(): string;\n lc_namespace: string[];\n ToolType: ToolInterface;\n constructor(input: ChatConversationalAgentInput);\n _agentType(): \"chat-conversational-react-description\";\n observationPrefix(): string;\n llmPrefix(): string;\n _stop(): string[];\n static validateTools(tools: ToolInterface[]): void;\n /**\n * Constructs the agent scratchpad based on the agent steps. It returns an\n * array of base messages representing the thoughts of the agent.\n * @param steps The agent steps to construct the scratchpad from.\n * @returns An array of base messages representing the thoughts of the agent.\n */\n constructScratchPad(steps: AgentStep[]): Promise<BaseMessage[]>;\n /**\n * Returns the default output parser for the ChatConversationalAgent\n * class. It takes optional fields as arguments to customize the output\n * parser.\n * @param fields Optional fields to customize the output parser.\n * @returns The default output parser for the ChatConversationalAgent class.\n */\n static getDefaultOutputParser(fields?: OutputParserArgs & {\n toolNames: string[];\n }): AgentActionOutputParser;\n /**\n * Create prompt in the style of the ChatConversationAgent.\n *\n * @param tools - List of tools the agent will have access to, used to format the prompt.\n * @param args - Arguments to create the prompt with.\n * @param args.systemMessage - String to put before the list of tools.\n * @param args.humanMessage - String to put after the list of tools.\n * @param args.outputParser - Output parser to use for formatting.\n */\n static createPrompt(tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs): ChatPromptTemplate<any, any>;\n /**\n * Creates an instance of the ChatConversationalAgent class from a\n * BaseLanguageModel and a set of tools. It takes optional arguments to\n * customize the agent.\n * @param llm The BaseLanguageModel to create the agent from.\n * @param tools The set of tools to create the agent from.\n * @param args Optional arguments to customize the agent.\n * @returns An instance of the ChatConversationalAgent class.\n */\n static fromLLMAndTools(llm: BaseLanguageModelInterface, tools: ToolInterface[], args?: ChatConversationalCreatePromptArgs & AgentArgs): ChatConversationalAgent;\n}\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;AAYA;AAeA;AAKqBa,UApBJF,kCAAAA,CAoB2B;EAG9BV;EACSW,aAAAA,CAAAA,EAAAA,MAAAA;EAKSX;EAODE,YAAAA,CAAAA,EAAAA,MAAAA;EAAsBC;EAARU,cAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAQFN;EAEnCC,YAAAA,CAAAA,EAtCWA,uBAsCXA;;;;;;;AAoBwHF,KAnDpHK,4BAAAA,GAA+BP,QAmDqFE,CAnD5EG,UAmD4EH,EAAAA,cAAAA,CAAAA;;;AA9CtE;;cAArCM,uBAAAA,SAAgCP,KAAAA;;;YAGvCL;qBACSW;;;;;8BAKSX;;;;;;;6BAODE,cAAcW,QAAQV;;;;;;;;yCAQVI;;MAEnCC;;;;;;;;;;6BAUuBR,wBAAwBU,qCAAqCT;;;;;;;;;;8BAU5DF,mCAAmCC,wBAAwBU,qCAAqCJ,YAAYM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputParser.d.cts","names":["BaseLanguageModelInterface","AgentAction","AgentFinish","FormatInstructionsOptions","AgentActionOutputParser","OutputFixingParser","ChatConversationalAgentOutputParserFormatInstructionsOptions","ChatConversationalAgentOutputParser","Promise","ChatConversationalAgentOutputParserArgs","ChatConversationalAgentOutputParserWithRetries","Omit"],"sources":["../../../src/agents/chat_convo/outputParser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { AgentAction, AgentFinish } from \"@langchain/core/agents\";\nimport { FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { AgentActionOutputParser } from \"../types.js\";\nimport { OutputFixingParser } from \"../../output_parsers/fix.js\";\nexport type ChatConversationalAgentOutputParserFormatInstructionsOptions = FormatInstructionsOptions & {\n toolNames: string[];\n raw?: boolean;\n};\n/**\n * Class that represents an output parser for the ChatConversationalAgent\n * class. It extends the AgentActionOutputParser class and provides\n * methods for parsing the output of the MRKL chain into agent actions.\n */\nexport declare class ChatConversationalAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n private toolNames;\n constructor(fields: {\n toolNames: string[];\n });\n /**\n * Parses the given text into an AgentAction or AgentFinish object. If an\n * output fixing parser is defined, uses it to parse the text.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Returns the format instructions as a string. If the 'raw' option is\n * true, returns the raw FORMAT_INSTRUCTIONS.\n * @param options Options for getting the format instructions.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(): string;\n}\nexport type ChatConversationalAgentOutputParserArgs = {\n baseParser?: ChatConversationalAgentOutputParser;\n outputFixingParser?: OutputFixingParser<AgentAction | AgentFinish>;\n toolNames?: string[];\n};\n/**\n * Class that represents an output parser with retries for the\n * ChatConversationalAgent class. It extends the AgentActionOutputParser\n * class and provides methods for parsing the output of the MRKL chain\n * into agent actions with retry functionality.\n */\nexport declare class ChatConversationalAgentOutputParserWithRetries extends AgentActionOutputParser {\n lc_namespace: string[];\n private baseParser;\n private outputFixingParser?;\n private toolNames;\n constructor(fields: ChatConversationalAgentOutputParserArgs);\n /**\n * Returns the format instructions as a string.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(options: ChatConversationalAgentOutputParserFormatInstructionsOptions): string;\n /**\n * Parses the given text into an AgentAction or AgentFinish object.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Static method to create a new\n * ChatConversationalAgentOutputParserWithRetries from a BaseLanguageModelInterface\n * and options. If no base parser is provided in the options, a new\n * ChatConversationalAgentOutputParser is created. An OutputFixingParser\n * is also created from the BaseLanguageModelInterface and the base parser.\n * @param llm BaseLanguageModelInterface instance used to create the OutputFixingParser.\n * @param options Options for creating the ChatConversationalAgentOutputParserWithRetries instance.\n * @returns A new instance of ChatConversationalAgentOutputParserWithRetries.\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ChatConversationalAgentOutputParserArgs, \"outputFixingParser\">): ChatConversationalAgentOutputParserWithRetries;\n}\n"],"mappings":";;;;;;;KAKYM,4DAAAA,GAA+DH;;EAA/DG,GAAAA,CAAAA,EAAAA,OAAAA;AASZ,CAAA
|
|
1
|
+
{"version":3,"file":"outputParser.d.cts","names":["BaseLanguageModelInterface","AgentAction","AgentFinish","FormatInstructionsOptions","AgentActionOutputParser","OutputFixingParser","ChatConversationalAgentOutputParserFormatInstructionsOptions","ChatConversationalAgentOutputParser","Promise","ChatConversationalAgentOutputParserArgs","ChatConversationalAgentOutputParserWithRetries","Omit"],"sources":["../../../src/agents/chat_convo/outputParser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { AgentAction, AgentFinish } from \"@langchain/core/agents\";\nimport { FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { AgentActionOutputParser } from \"../types.js\";\nimport { OutputFixingParser } from \"../../output_parsers/fix.js\";\nexport type ChatConversationalAgentOutputParserFormatInstructionsOptions = FormatInstructionsOptions & {\n toolNames: string[];\n raw?: boolean;\n};\n/**\n * Class that represents an output parser for the ChatConversationalAgent\n * class. It extends the AgentActionOutputParser class and provides\n * methods for parsing the output of the MRKL chain into agent actions.\n */\nexport declare class ChatConversationalAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n private toolNames;\n constructor(fields: {\n toolNames: string[];\n });\n /**\n * Parses the given text into an AgentAction or AgentFinish object. If an\n * output fixing parser is defined, uses it to parse the text.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Returns the format instructions as a string. If the 'raw' option is\n * true, returns the raw FORMAT_INSTRUCTIONS.\n * @param options Options for getting the format instructions.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(): string;\n}\nexport type ChatConversationalAgentOutputParserArgs = {\n baseParser?: ChatConversationalAgentOutputParser;\n outputFixingParser?: OutputFixingParser<AgentAction | AgentFinish>;\n toolNames?: string[];\n};\n/**\n * Class that represents an output parser with retries for the\n * ChatConversationalAgent class. It extends the AgentActionOutputParser\n * class and provides methods for parsing the output of the MRKL chain\n * into agent actions with retry functionality.\n */\nexport declare class ChatConversationalAgentOutputParserWithRetries extends AgentActionOutputParser {\n lc_namespace: string[];\n private baseParser;\n private outputFixingParser?;\n private toolNames;\n constructor(fields: ChatConversationalAgentOutputParserArgs);\n /**\n * Returns the format instructions as a string.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(options: ChatConversationalAgentOutputParserFormatInstructionsOptions): string;\n /**\n * Parses the given text into an AgentAction or AgentFinish object.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Static method to create a new\n * ChatConversationalAgentOutputParserWithRetries from a BaseLanguageModelInterface\n * and options. If no base parser is provided in the options, a new\n * ChatConversationalAgentOutputParser is created. An OutputFixingParser\n * is also created from the BaseLanguageModelInterface and the base parser.\n * @param llm BaseLanguageModelInterface instance used to create the OutputFixingParser.\n * @param options Options for creating the ChatConversationalAgentOutputParserWithRetries instance.\n * @returns A new instance of ChatConversationalAgentOutputParserWithRetries.\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ChatConversationalAgentOutputParserArgs, \"outputFixingParser\">): ChatConversationalAgentOutputParserWithRetries;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;;KAKYM,4DAAAA,GAA+DH;;EAA/DG,GAAAA,CAAAA,EAAAA,OAAAA;AASZ,CAAA;;;;;AAAwF;AAqB5EG,cArBSF,mCAAAA,SAA4CH,uBAAAA,CAqBd;EAClCG,YAAAA,EAAAA,MAAAA,EAAAA;EAC2BN,QAAAA,SAAAA;EAAcC,WAAAA,CAAAA,MAAAA,EAAAA;IAAjCG,SAAAA,EAAAA,MAAAA,EAAAA;EAAkB,CAAA;EAStBK;;;;;;EA2BGV,KAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EA/CCQ,OA+CDR,CA/CSC,WA+CTD,GA/CuBE,WA+CvBF,CAAAA;EAA0CS;;;;AA3BiC;;;;KAXvFA,uCAAAA;eACKF;uBACQF,mBAAmBJ,cAAcC;;;;;;;;;cASrCQ,8CAAAA,SAAuDN,uBAAAA;;;;;sBAKpDK;;;;;iCAKWH;;;;;;uBAMVE,QAAQP,cAAcC;;;;;;;;;;;sBAWvBF,qCAAqCW,KAAKF,iEAAiEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputParser.d.ts","names":["BaseLanguageModelInterface","AgentAction","AgentFinish","FormatInstructionsOptions","AgentActionOutputParser","OutputFixingParser","ChatConversationalAgentOutputParserFormatInstructionsOptions","ChatConversationalAgentOutputParser","Promise","ChatConversationalAgentOutputParserArgs","ChatConversationalAgentOutputParserWithRetries","Omit"],"sources":["../../../src/agents/chat_convo/outputParser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { AgentAction, AgentFinish } from \"@langchain/core/agents\";\nimport { FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { AgentActionOutputParser } from \"../types.js\";\nimport { OutputFixingParser } from \"../../output_parsers/fix.js\";\nexport type ChatConversationalAgentOutputParserFormatInstructionsOptions = FormatInstructionsOptions & {\n toolNames: string[];\n raw?: boolean;\n};\n/**\n * Class that represents an output parser for the ChatConversationalAgent\n * class. It extends the AgentActionOutputParser class and provides\n * methods for parsing the output of the MRKL chain into agent actions.\n */\nexport declare class ChatConversationalAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n private toolNames;\n constructor(fields: {\n toolNames: string[];\n });\n /**\n * Parses the given text into an AgentAction or AgentFinish object. If an\n * output fixing parser is defined, uses it to parse the text.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Returns the format instructions as a string. If the 'raw' option is\n * true, returns the raw FORMAT_INSTRUCTIONS.\n * @param options Options for getting the format instructions.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(): string;\n}\nexport type ChatConversationalAgentOutputParserArgs = {\n baseParser?: ChatConversationalAgentOutputParser;\n outputFixingParser?: OutputFixingParser<AgentAction | AgentFinish>;\n toolNames?: string[];\n};\n/**\n * Class that represents an output parser with retries for the\n * ChatConversationalAgent class. It extends the AgentActionOutputParser\n * class and provides methods for parsing the output of the MRKL chain\n * into agent actions with retry functionality.\n */\nexport declare class ChatConversationalAgentOutputParserWithRetries extends AgentActionOutputParser {\n lc_namespace: string[];\n private baseParser;\n private outputFixingParser?;\n private toolNames;\n constructor(fields: ChatConversationalAgentOutputParserArgs);\n /**\n * Returns the format instructions as a string.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(options: ChatConversationalAgentOutputParserFormatInstructionsOptions): string;\n /**\n * Parses the given text into an AgentAction or AgentFinish object.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Static method to create a new\n * ChatConversationalAgentOutputParserWithRetries from a BaseLanguageModelInterface\n * and options. If no base parser is provided in the options, a new\n * ChatConversationalAgentOutputParser is created. An OutputFixingParser\n * is also created from the BaseLanguageModelInterface and the base parser.\n * @param llm BaseLanguageModelInterface instance used to create the OutputFixingParser.\n * @param options Options for creating the ChatConversationalAgentOutputParserWithRetries instance.\n * @returns A new instance of ChatConversationalAgentOutputParserWithRetries.\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ChatConversationalAgentOutputParserArgs, \"outputFixingParser\">): ChatConversationalAgentOutputParserWithRetries;\n}\n"],"mappings":";;;;;;;KAKYM,4DAAAA,GAA+DH;;EAA/DG,GAAAA,CAAAA,EAAAA,OAAAA;AASZ,CAAA
|
|
1
|
+
{"version":3,"file":"outputParser.d.ts","names":["BaseLanguageModelInterface","AgentAction","AgentFinish","FormatInstructionsOptions","AgentActionOutputParser","OutputFixingParser","ChatConversationalAgentOutputParserFormatInstructionsOptions","ChatConversationalAgentOutputParser","Promise","ChatConversationalAgentOutputParserArgs","ChatConversationalAgentOutputParserWithRetries","Omit"],"sources":["../../../src/agents/chat_convo/outputParser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { AgentAction, AgentFinish } from \"@langchain/core/agents\";\nimport { FormatInstructionsOptions } from \"@langchain/core/output_parsers\";\nimport { AgentActionOutputParser } from \"../types.js\";\nimport { OutputFixingParser } from \"../../output_parsers/fix.js\";\nexport type ChatConversationalAgentOutputParserFormatInstructionsOptions = FormatInstructionsOptions & {\n toolNames: string[];\n raw?: boolean;\n};\n/**\n * Class that represents an output parser for the ChatConversationalAgent\n * class. It extends the AgentActionOutputParser class and provides\n * methods for parsing the output of the MRKL chain into agent actions.\n */\nexport declare class ChatConversationalAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n private toolNames;\n constructor(fields: {\n toolNames: string[];\n });\n /**\n * Parses the given text into an AgentAction or AgentFinish object. If an\n * output fixing parser is defined, uses it to parse the text.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Returns the format instructions as a string. If the 'raw' option is\n * true, returns the raw FORMAT_INSTRUCTIONS.\n * @param options Options for getting the format instructions.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(): string;\n}\nexport type ChatConversationalAgentOutputParserArgs = {\n baseParser?: ChatConversationalAgentOutputParser;\n outputFixingParser?: OutputFixingParser<AgentAction | AgentFinish>;\n toolNames?: string[];\n};\n/**\n * Class that represents an output parser with retries for the\n * ChatConversationalAgent class. It extends the AgentActionOutputParser\n * class and provides methods for parsing the output of the MRKL chain\n * into agent actions with retry functionality.\n */\nexport declare class ChatConversationalAgentOutputParserWithRetries extends AgentActionOutputParser {\n lc_namespace: string[];\n private baseParser;\n private outputFixingParser?;\n private toolNames;\n constructor(fields: ChatConversationalAgentOutputParserArgs);\n /**\n * Returns the format instructions as a string.\n * @returns Format instructions as a string.\n */\n getFormatInstructions(options: ChatConversationalAgentOutputParserFormatInstructionsOptions): string;\n /**\n * Parses the given text into an AgentAction or AgentFinish object.\n * @param text Text to parse.\n * @returns Promise that resolves to an AgentAction or AgentFinish object.\n */\n parse(text: string): Promise<AgentAction | AgentFinish>;\n /**\n * Static method to create a new\n * ChatConversationalAgentOutputParserWithRetries from a BaseLanguageModelInterface\n * and options. If no base parser is provided in the options, a new\n * ChatConversationalAgentOutputParser is created. An OutputFixingParser\n * is also created from the BaseLanguageModelInterface and the base parser.\n * @param llm BaseLanguageModelInterface instance used to create the OutputFixingParser.\n * @param options Options for creating the ChatConversationalAgentOutputParserWithRetries instance.\n * @returns A new instance of ChatConversationalAgentOutputParserWithRetries.\n */\n static fromLLM(llm: BaseLanguageModelInterface, options: Omit<ChatConversationalAgentOutputParserArgs, \"outputFixingParser\">): ChatConversationalAgentOutputParserWithRetries;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;;KAKYM,4DAAAA,GAA+DH;;EAA/DG,GAAAA,CAAAA,EAAAA,OAAAA;AASZ,CAAA;;;;;AAAwF;AAqB5EG,cArBSF,mCAAAA,SAA4CH,uBAAAA,CAqBd;EAClCG,YAAAA,EAAAA,MAAAA,EAAAA;EAC2BN,QAAAA,SAAAA;EAAcC,WAAAA,CAAAA,MAAAA,EAAAA;IAAjCG,SAAAA,EAAAA,MAAAA,EAAAA;EAAkB,CAAA;EAStBK;;;;;;EA2BGV,KAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EA/CCQ,OA+CDR,CA/CSC,WA+CTD,GA/CuBE,WA+CvBF,CAAAA;EAA0CS;;;;AA3BiC;;;;KAXvFA,uCAAAA;eACKF;uBACQF,mBAAmBJ,cAAcC;;;;;;;;;cASrCQ,8CAAAA,SAAuDN,uBAAAA;;;;;sBAKpDK;;;;;iCAKWH;;;;;;uBAMVE,QAAQP,cAAcC;;;;;;;;;;;sBAWvBF,qCAAqCW,KAAKF,iEAAiEC"}
|