langchain 0.1.10 → 0.1.12
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/agents/format_scratchpad/log.d.cts +1 -0
- package/agents/format_scratchpad/log_to_message.d.cts +1 -0
- package/agents/format_scratchpad/openai_tools.d.cts +1 -0
- package/agents/format_scratchpad/xml.d.cts +1 -0
- package/agents/format_scratchpad.d.cts +1 -0
- package/agents/load.d.cts +1 -0
- package/agents/openai/output_parser.d.cts +1 -0
- package/agents/react/output_parser.d.cts +1 -0
- package/agents/toolkits/aws_sfn.d.cts +1 -0
- package/agents/toolkits/connery.d.cts +1 -0
- package/agents/toolkits/sql.d.cts +1 -0
- package/agents/toolkits.d.cts +1 -0
- package/agents/xml/output_parser.d.cts +1 -0
- package/agents.d.cts +1 -0
- package/base_language.d.cts +1 -0
- package/cache/cloudflare_kv.d.cts +1 -0
- package/cache/file_system.d.cts +1 -0
- package/cache/ioredis.d.cts +1 -0
- package/cache/momento.d.cts +1 -0
- package/cache/redis.d.cts +1 -0
- package/cache/upstash_redis.d.cts +1 -0
- package/cache.d.cts +1 -0
- package/callbacks/handlers/llmonitor.d.cts +1 -0
- package/callbacks.d.cts +1 -0
- package/chains/combine_documents/reduce.d.cts +1 -0
- package/chains/combine_documents.d.cts +1 -0
- package/chains/graph_qa/cypher.d.cts +1 -0
- package/chains/history_aware_retriever.d.cts +1 -0
- package/chains/load.d.cts +1 -0
- package/chains/openai_functions.d.cts +1 -0
- package/chains/query_constructor/ir.d.cts +1 -0
- package/chains/query_constructor.d.cts +1 -0
- package/chains/retrieval.d.cts +1 -0
- package/chains/sql_db.d.cts +1 -0
- package/chains.d.cts +1 -0
- package/chat_models/anthropic.d.cts +1 -0
- package/chat_models/baiduwenxin.d.cts +1 -0
- package/chat_models/base.d.cts +1 -0
- package/chat_models/bedrock/web.d.cts +1 -0
- package/chat_models/bedrock.d.cts +1 -0
- package/chat_models/cloudflare_workersai.d.cts +1 -0
- package/chat_models/fake.d.cts +1 -0
- package/chat_models/fireworks.d.cts +1 -0
- package/chat_models/googlepalm.d.cts +1 -0
- package/chat_models/googlevertexai/web.d.cts +1 -0
- package/chat_models/googlevertexai.d.cts +1 -0
- package/chat_models/iflytek_xinghuo/web.d.cts +1 -0
- package/chat_models/iflytek_xinghuo.d.cts +1 -0
- package/chat_models/llama_cpp.d.cts +1 -0
- package/chat_models/minimax.d.cts +1 -0
- package/chat_models/ollama.d.cts +1 -0
- package/chat_models/openai.d.cts +1 -0
- package/chat_models/portkey.d.cts +1 -0
- package/chat_models/yandex.d.cts +1 -0
- package/dist/chains/history_aware_retriever.d.ts +2 -2
- package/dist/chains/retrieval.d.ts +2 -2
- package/dist/document.cjs +0 -6
- package/dist/document.js +0 -6
- package/dist/document_loaders/web/confluence.cjs +20 -6
- package/dist/document_loaders/web/confluence.d.ts +14 -2
- package/dist/document_loaders/web/confluence.js +20 -6
- package/dist/experimental/prompts/custom_format.cjs +12 -2
- package/dist/experimental/prompts/custom_format.js +12 -2
- package/dist/load/import_map.cjs +16 -15
- package/dist/load/import_map.d.ts +1 -0
- package/dist/load/import_map.js +17 -16
- package/dist/load/import_type.cjs +3 -0
- package/dist/load/import_type.d.ts +8 -0
- package/dist/load/import_type.js +2 -0
- package/dist/util/entrypoint_deprecation.cjs +4 -1
- package/dist/util/entrypoint_deprecation.js +4 -1
- package/document.d.cts +1 -0
- package/document_loaders/base.d.cts +1 -0
- package/document_loaders/fs/buffer.d.cts +1 -0
- package/document_loaders/fs/chatgpt.d.cts +1 -0
- package/document_loaders/fs/csv.d.cts +1 -0
- package/document_loaders/fs/directory.d.cts +1 -0
- package/document_loaders/fs/docx.d.cts +1 -0
- package/document_loaders/fs/epub.d.cts +1 -0
- package/document_loaders/fs/json.d.cts +1 -0
- package/document_loaders/fs/notion.d.cts +1 -0
- package/document_loaders/fs/obsidian.d.cts +1 -0
- package/document_loaders/fs/openai_whisper_audio.d.cts +1 -0
- package/document_loaders/fs/pdf.d.cts +1 -0
- package/document_loaders/fs/pptx.d.cts +1 -0
- package/document_loaders/fs/srt.d.cts +1 -0
- package/document_loaders/fs/text.d.cts +1 -0
- package/document_loaders/fs/unstructured.d.cts +1 -0
- package/document_loaders/web/apify_dataset.d.cts +1 -0
- package/document_loaders/web/assemblyai.d.cts +1 -0
- package/document_loaders/web/azure_blob_storage_container.d.cts +1 -0
- package/document_loaders/web/azure_blob_storage_file.d.cts +1 -0
- package/document_loaders/web/cheerio.d.cts +1 -0
- package/document_loaders/web/college_confidential.d.cts +1 -0
- package/document_loaders/web/confluence.d.cts +1 -0
- package/document_loaders/web/figma.d.cts +1 -0
- package/document_loaders/web/gitbook.d.cts +1 -0
- package/document_loaders/web/github.d.cts +1 -0
- package/document_loaders/web/hn.d.cts +1 -0
- package/document_loaders/web/imsdb.d.cts +1 -0
- package/document_loaders/web/notionapi.d.cts +1 -0
- package/document_loaders/web/notiondb.d.cts +1 -0
- package/document_loaders/web/pdf.d.cts +1 -0
- package/document_loaders/web/playwright.d.cts +1 -0
- package/document_loaders/web/puppeteer.d.cts +1 -0
- package/document_loaders/web/recursive_url.d.cts +1 -0
- package/document_loaders/web/s3.d.cts +1 -0
- package/document_loaders/web/searchapi.d.cts +1 -0
- package/document_loaders/web/serpapi.d.cts +1 -0
- package/document_loaders/web/sonix_audio.d.cts +1 -0
- package/document_loaders/web/sort_xyz_blockchain.d.cts +1 -0
- package/document_loaders/web/youtube.d.cts +1 -0
- package/document_transformers/html_to_text.d.cts +1 -0
- package/document_transformers/mozilla_readability.d.cts +1 -0
- package/document_transformers/openai_functions.d.cts +1 -0
- package/embeddings/base.d.cts +1 -0
- package/embeddings/bedrock.d.cts +1 -0
- package/embeddings/cache_backed.d.cts +1 -0
- package/embeddings/cloudflare_workersai.d.cts +1 -0
- package/embeddings/cohere.d.cts +1 -0
- package/embeddings/fake.d.cts +1 -0
- package/embeddings/googlepalm.d.cts +1 -0
- package/embeddings/googlevertexai.d.cts +1 -0
- package/embeddings/gradient_ai.d.cts +1 -0
- package/embeddings/hf.d.cts +1 -0
- package/embeddings/hf_transformers.d.cts +1 -0
- package/embeddings/llama_cpp.d.cts +1 -0
- package/embeddings/minimax.d.cts +1 -0
- package/embeddings/ollama.d.cts +1 -0
- package/embeddings/openai.d.cts +1 -0
- package/embeddings/tensorflow.d.cts +1 -0
- package/embeddings/voyage.d.cts +1 -0
- package/evaluation.d.cts +1 -0
- package/experimental/autogpt.d.cts +1 -0
- package/experimental/babyagi.d.cts +1 -0
- package/experimental/chains/violation_of_expectations.d.cts +1 -0
- package/experimental/chat_models/anthropic_functions.d.cts +1 -0
- package/experimental/chat_models/bittensor.d.cts +1 -0
- package/experimental/chat_models/ollama_functions.d.cts +1 -0
- package/experimental/generative_agents.d.cts +1 -0
- package/experimental/hubs/makersuite/googlemakersuitehub.d.cts +1 -0
- package/experimental/llms/bittensor.d.cts +1 -0
- package/experimental/masking.d.cts +1 -0
- package/experimental/multimodal_embeddings/googlevertexai.d.cts +1 -0
- package/experimental/openai_assistant.d.cts +1 -0
- package/experimental/openai_files.d.cts +1 -0
- package/experimental/plan_and_execute.d.cts +1 -0
- package/experimental/prompts/custom_format.d.cts +1 -0
- package/experimental/prompts/handlebars.d.cts +1 -0
- package/experimental/tools/pyinterpreter.d.cts +1 -0
- package/graphs/neo4j_graph.d.cts +1 -0
- package/hub.d.cts +1 -0
- package/indexes.d.cts +1 -0
- package/llms/ai21.d.cts +1 -0
- package/llms/aleph_alpha.d.cts +1 -0
- package/llms/base.d.cts +1 -0
- package/llms/bedrock/web.d.cts +1 -0
- package/llms/bedrock.d.cts +1 -0
- package/llms/cloudflare_workersai.d.cts +1 -0
- package/llms/cohere.d.cts +1 -0
- package/llms/fake.d.cts +1 -0
- package/llms/fireworks.d.cts +1 -0
- package/llms/googlepalm.d.cts +1 -0
- package/llms/googlevertexai/web.d.cts +1 -0
- package/llms/googlevertexai.d.cts +1 -0
- package/llms/gradient_ai.d.cts +1 -0
- package/llms/hf.d.cts +1 -0
- package/llms/llama_cpp.d.cts +1 -0
- package/llms/load.d.cts +1 -0
- package/llms/ollama.d.cts +1 -0
- package/llms/openai.d.cts +1 -0
- package/llms/portkey.d.cts +1 -0
- package/llms/raycast.d.cts +1 -0
- package/llms/replicate.d.cts +1 -0
- package/llms/sagemaker_endpoint.d.cts +1 -0
- package/llms/watsonx_ai.d.cts +1 -0
- package/llms/writer.d.cts +1 -0
- package/llms/yandex.d.cts +1 -0
- package/load/serializable.d.cts +1 -0
- package/load.d.cts +1 -0
- package/memory/zep.d.cts +1 -0
- package/memory.d.cts +1 -0
- package/output_parsers/expression.d.cts +1 -0
- package/output_parsers.d.cts +1 -0
- package/package.json +1743 -293
- package/prompts/load.d.cts +1 -0
- package/prompts.d.cts +1 -0
- package/retrievers/amazon_kendra.d.cts +1 -0
- package/retrievers/chaindesk.d.cts +1 -0
- package/retrievers/contextual_compression.d.cts +1 -0
- package/retrievers/databerry.d.cts +1 -0
- package/retrievers/document_compressors/chain_extract.d.cts +1 -0
- package/retrievers/document_compressors/embeddings_filter.d.cts +1 -0
- package/retrievers/document_compressors.d.cts +1 -0
- package/retrievers/hyde.d.cts +1 -0
- package/retrievers/metal.d.cts +1 -0
- package/retrievers/multi_query.d.cts +1 -0
- package/retrievers/multi_vector.d.cts +1 -0
- package/retrievers/parent_document.d.cts +1 -0
- package/retrievers/remote.d.cts +1 -0
- package/retrievers/score_threshold.d.cts +1 -0
- package/retrievers/self_query/chroma.d.cts +1 -0
- package/retrievers/self_query/functional.d.cts +1 -0
- package/retrievers/self_query/pinecone.d.cts +1 -0
- package/retrievers/self_query/supabase.d.cts +1 -0
- package/retrievers/self_query/vectara.d.cts +1 -0
- package/retrievers/self_query/weaviate.d.cts +1 -0
- package/retrievers/self_query.d.cts +1 -0
- package/retrievers/supabase.d.cts +1 -0
- package/retrievers/tavily_search_api.d.cts +1 -0
- package/retrievers/time_weighted.d.cts +1 -0
- package/retrievers/vectara_summary.d.cts +1 -0
- package/retrievers/vespa.d.cts +1 -0
- package/retrievers/zep.d.cts +1 -0
- package/runnables/remote.d.cts +1 -0
- package/runnables.d.cts +1 -0
- package/schema/document.d.cts +1 -0
- package/schema/output_parser.d.cts +1 -0
- package/schema/prompt_template.d.cts +1 -0
- package/schema/query_constructor.d.cts +1 -0
- package/schema/retriever.d.cts +1 -0
- package/schema/runnable.d.cts +1 -0
- package/schema/storage.d.cts +1 -0
- package/schema.d.cts +1 -0
- package/smith.d.cts +1 -0
- package/sql_db.d.cts +1 -0
- package/storage/convex.d.cts +1 -0
- package/storage/encoder_backed.d.cts +1 -0
- package/storage/file_system.d.cts +1 -0
- package/storage/in_memory.d.cts +1 -0
- package/storage/ioredis.d.cts +1 -0
- package/storage/upstash_redis.d.cts +1 -0
- package/storage/vercel_kv.d.cts +1 -0
- package/stores/doc/gcs.d.cts +1 -0
- package/stores/doc/in_memory.d.cts +1 -0
- package/stores/file/in_memory.d.cts +1 -0
- package/stores/file/node.d.cts +1 -0
- package/stores/message/cassandra.d.cts +1 -0
- package/stores/message/cloudflare_d1.d.cts +1 -0
- package/stores/message/convex.d.cts +1 -0
- package/stores/message/dynamodb.d.cts +1 -0
- package/stores/message/firestore.d.cts +1 -0
- package/stores/message/in_memory.d.cts +1 -0
- package/stores/message/ioredis.d.cts +1 -0
- package/stores/message/momento.d.cts +1 -0
- package/stores/message/mongodb.d.cts +1 -0
- package/stores/message/planetscale.d.cts +1 -0
- package/stores/message/redis.d.cts +1 -0
- package/stores/message/upstash_redis.d.cts +1 -0
- package/stores/message/xata.d.cts +1 -0
- package/text_splitter.d.cts +1 -0
- package/tools/aws_lambda.d.cts +1 -0
- package/tools/aws_sfn.d.cts +1 -0
- package/tools/calculator.d.cts +1 -0
- package/tools/chain.d.cts +1 -0
- package/tools/connery.d.cts +1 -0
- package/tools/gmail.d.cts +1 -0
- package/tools/google_calendar.d.cts +1 -0
- package/tools/google_places.d.cts +1 -0
- package/tools/render.d.cts +1 -0
- package/tools/retriever.d.cts +1 -0
- package/tools/sql.d.cts +1 -0
- package/tools/webbrowser.d.cts +1 -0
- package/tools.d.cts +1 -0
- package/util/convex.d.cts +1 -0
- package/util/document.d.cts +1 -0
- package/util/math.d.cts +1 -0
- package/util/time.d.cts +1 -0
- package/vectorstores/analyticdb.d.cts +1 -0
- package/vectorstores/base.d.cts +1 -0
- package/vectorstores/cassandra.d.cts +1 -0
- package/vectorstores/chroma.d.cts +1 -0
- package/vectorstores/clickhouse.d.cts +1 -0
- package/vectorstores/closevector/node.d.cts +1 -0
- package/vectorstores/closevector/web.d.cts +1 -0
- package/vectorstores/cloudflare_vectorize.d.cts +1 -0
- package/vectorstores/convex.d.cts +1 -0
- package/vectorstores/elasticsearch.d.cts +1 -0
- package/vectorstores/faiss.d.cts +1 -0
- package/vectorstores/googlevertexai.d.cts +1 -0
- package/vectorstores/hnswlib.d.cts +1 -0
- package/vectorstores/lancedb.d.cts +1 -0
- package/vectorstores/memory.d.cts +1 -0
- package/vectorstores/milvus.d.cts +1 -0
- package/vectorstores/momento_vector_index.d.cts +1 -0
- package/vectorstores/mongo.d.cts +1 -0
- package/vectorstores/mongodb_atlas.d.cts +1 -0
- package/vectorstores/myscale.d.cts +1 -0
- package/vectorstores/neo4j_vector.d.cts +1 -0
- package/vectorstores/opensearch.d.cts +1 -0
- package/vectorstores/pgvector.d.cts +1 -0
- package/vectorstores/pinecone.d.cts +1 -0
- package/vectorstores/prisma.d.cts +1 -0
- package/vectorstores/qdrant.d.cts +1 -0
- package/vectorstores/redis.d.cts +1 -0
- package/vectorstores/rockset.d.cts +1 -0
- package/vectorstores/singlestore.d.cts +1 -0
- package/vectorstores/supabase.d.cts +1 -0
- package/vectorstores/tigris.d.cts +1 -0
- package/vectorstores/typeorm.d.cts +1 -0
- package/vectorstores/typesense.d.cts +1 -0
- package/vectorstores/usearch.d.cts +1 -0
- package/vectorstores/vectara.d.cts +1 -0
- package/vectorstores/vercel_postgres.d.cts +1 -0
- package/vectorstores/voy.d.cts +1 -0
- package/vectorstores/weaviate.d.cts +1 -0
- package/vectorstores/xata.d.cts +1 -0
- package/vectorstores/zep.d.cts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/format_scratchpad/log.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/format_scratchpad/log_to_message.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/format_scratchpad/openai_tools.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/format_scratchpad/xml.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/agents/format_scratchpad/openai_functions.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/agents/load.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/openai/output_parser.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/react/output_parser.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/aws_sfn.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/connery/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/sql/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/agents/toolkits/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/xml/output_parser.js'
|
package/agents.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/agents/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/base_language/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/cloudflare_kv.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/file_system.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/ioredis.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/momento.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/redis.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/cache/upstash_redis.js'
|
package/cache.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/cache/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/callbacks/handlers/llmonitor.js'
|
package/callbacks.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/callbacks/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chains/combine_documents/reduce.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/combine_documents/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chains/graph_qa/cypher.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/history_aware_retriever.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/load.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/openai_functions/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chains/query_constructor/ir.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/query_constructor/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/retrieval.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/sql_db/index.js'
|
package/chains.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/chains/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/anthropic.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/baiduwenxin.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/base.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chat_models/bedrock/web.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/bedrock/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/cloudflare_workersai.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/fake.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/fireworks.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/googlepalm.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chat_models/googlevertexai/web.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/googlevertexai/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/chat_models/iflytek_xinghuo/web.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/iflytek_xinghuo/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/llama_cpp.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/minimax.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/ollama.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/openai.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/portkey.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chat_models/yandex.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LanguageModelLike } from "@langchain/core/language_models/base";
|
|
2
|
-
import { type RunnableInterface } from "@langchain/core/runnables";
|
|
2
|
+
import { type Runnable, type RunnableInterface } from "@langchain/core/runnables";
|
|
3
3
|
import { type BasePromptTemplate } from "@langchain/core/prompts";
|
|
4
4
|
import type { DocumentInterface } from "@langchain/core/documents";
|
|
5
5
|
import type { BaseMessage } from "@langchain/core/messages";
|
|
@@ -49,7 +49,7 @@ export type CreateHistoryAwareRetrieverParams = {
|
|
|
49
49
|
* const result = await chain.invoke({"input": "...", "chat_history": [] })
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export declare function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt, }: CreateHistoryAwareRetrieverParams): Promise<
|
|
52
|
+
export declare function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt, }: CreateHistoryAwareRetrieverParams): Promise<Runnable<{
|
|
53
53
|
input: string;
|
|
54
54
|
chat_history: string | BaseMessage[];
|
|
55
55
|
}, DocumentInterface[]>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseRetrieverInterface } from "@langchain/core/retrievers";
|
|
2
|
-
import { type RunnableInterface } from "@langchain/core/runnables";
|
|
2
|
+
import { type Runnable, type RunnableInterface } from "@langchain/core/runnables";
|
|
3
3
|
import type { BaseMessage } from "@langchain/core/messages";
|
|
4
4
|
import type { DocumentInterface } from "@langchain/core/documents";
|
|
5
5
|
/**
|
|
@@ -52,7 +52,7 @@ export type CreateRetrievalChainParams<RunOutput> = {
|
|
|
52
52
|
* const response = await chain.invoke({ input: "..." });
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
|
-
export declare function createRetrievalChain<RunOutput>({ retriever, combineDocsChain, }: CreateRetrievalChainParams<RunOutput>): Promise<
|
|
55
|
+
export declare function createRetrievalChain<RunOutput>({ retriever, combineDocsChain, }: CreateRetrievalChainParams<RunOutput>): Promise<Runnable<{
|
|
56
56
|
input: string;
|
|
57
57
|
chat_history?: BaseMessage[] | string;
|
|
58
58
|
} & {
|
package/dist/document.cjs
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Document = void 0;
|
|
4
|
-
const entrypoint_deprecation_js_1 = require("./util/entrypoint_deprecation.cjs");
|
|
5
|
-
/* #__PURE__ */ (0, entrypoint_deprecation_js_1.logVersion010MigrationWarning)({
|
|
6
|
-
oldEntrypointName: "document",
|
|
7
|
-
newEntrypointName: "documents",
|
|
8
|
-
newPackageName: "@langchain/core",
|
|
9
|
-
});
|
|
10
4
|
var documents_1 = require("@langchain/core/documents");
|
|
11
5
|
Object.defineProperty(exports, "Document", { enumerable: true, get: function () { return documents_1.Document; } });
|
package/dist/document.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
import { logVersion010MigrationWarning } from "./util/entrypoint_deprecation.js";
|
|
2
|
-
/* #__PURE__ */ logVersion010MigrationWarning({
|
|
3
|
-
oldEntrypointName: "document",
|
|
4
|
-
newEntrypointName: "documents",
|
|
5
|
-
newPackageName: "@langchain/core",
|
|
6
|
-
});
|
|
7
1
|
export { Document } from "@langchain/core/documents";
|
|
@@ -19,7 +19,7 @@ const base_js_1 = require("../base.cjs");
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
22
|
-
constructor({ baseUrl, spaceKey, username, accessToken, limit = 25, personalAccessToken, }) {
|
|
22
|
+
constructor({ baseUrl, spaceKey, username, accessToken, limit = 25, expand = "body.storage", personalAccessToken, }) {
|
|
23
23
|
super();
|
|
24
24
|
Object.defineProperty(this, "baseUrl", {
|
|
25
25
|
enumerable: true,
|
|
@@ -51,6 +51,16 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
51
51
|
writable: true,
|
|
52
52
|
value: void 0
|
|
53
53
|
});
|
|
54
|
+
/**
|
|
55
|
+
* expand parameter for confluence rest api
|
|
56
|
+
* description can be found at https://developer.atlassian.com/server/confluence/expansions-in-the-rest-api/
|
|
57
|
+
*/
|
|
58
|
+
Object.defineProperty(this, "expand", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: void 0
|
|
63
|
+
});
|
|
54
64
|
Object.defineProperty(this, "personalAccessToken", {
|
|
55
65
|
enumerable: true,
|
|
56
66
|
configurable: true,
|
|
@@ -62,6 +72,7 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
62
72
|
this.username = username;
|
|
63
73
|
this.accessToken = accessToken;
|
|
64
74
|
this.limit = limit;
|
|
75
|
+
this.expand = expand;
|
|
65
76
|
this.personalAccessToken = personalAccessToken;
|
|
66
77
|
}
|
|
67
78
|
/**
|
|
@@ -81,11 +92,14 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
81
92
|
/**
|
|
82
93
|
* Fetches all the pages in the specified space and converts each page to
|
|
83
94
|
* a Document instance.
|
|
95
|
+
* @param options the extra options of the load function
|
|
96
|
+
* @param options.limit The limit parameter to overwrite the size to fetch pages.
|
|
97
|
+
* @param options.start The start parameter to set inital offset to fetch pages.
|
|
84
98
|
* @returns Promise resolving to an array of Document instances.
|
|
85
99
|
*/
|
|
86
|
-
async load() {
|
|
100
|
+
async load(options) {
|
|
87
101
|
try {
|
|
88
|
-
const pages = await this.fetchAllPagesInSpace();
|
|
102
|
+
const pages = await this.fetchAllPagesInSpace(options?.start, options?.limit);
|
|
89
103
|
return pages.map((page) => this.createDocumentFromPage(page));
|
|
90
104
|
}
|
|
91
105
|
catch (error) {
|
|
@@ -125,14 +139,14 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
125
139
|
* @param start The start parameter to paginate through the results.
|
|
126
140
|
* @returns Promise resolving to an array of ConfluencePage objects.
|
|
127
141
|
*/
|
|
128
|
-
async fetchAllPagesInSpace(start = 0) {
|
|
129
|
-
const url = `${this.baseUrl}/rest/api/content?spaceKey=${this.spaceKey}&limit=${
|
|
142
|
+
async fetchAllPagesInSpace(start = 0, limit = this.limit) {
|
|
143
|
+
const url = `${this.baseUrl}/rest/api/content?spaceKey=${this.spaceKey}&limit=${limit}&start=${start}&expand=${this.expand}`;
|
|
130
144
|
const data = await this.fetchConfluenceData(url);
|
|
131
145
|
if (data.size === 0) {
|
|
132
146
|
return [];
|
|
133
147
|
}
|
|
134
148
|
const nextPageStart = start + data.size;
|
|
135
|
-
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart);
|
|
149
|
+
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart, limit);
|
|
136
150
|
return data.results.concat(nextPageResults);
|
|
137
151
|
}
|
|
138
152
|
/**
|
|
@@ -11,6 +11,7 @@ export interface ConfluencePagesLoaderParams {
|
|
|
11
11
|
accessToken?: string;
|
|
12
12
|
personalAccessToken?: string;
|
|
13
13
|
limit?: number;
|
|
14
|
+
expand?: string;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Interface representing a Confluence page.
|
|
@@ -51,8 +52,13 @@ export declare class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
51
52
|
readonly username?: string;
|
|
52
53
|
readonly accessToken?: string;
|
|
53
54
|
readonly limit: number;
|
|
55
|
+
/**
|
|
56
|
+
* expand parameter for confluence rest api
|
|
57
|
+
* description can be found at https://developer.atlassian.com/server/confluence/expansions-in-the-rest-api/
|
|
58
|
+
*/
|
|
59
|
+
readonly expand?: string;
|
|
54
60
|
readonly personalAccessToken?: string;
|
|
55
|
-
constructor({ baseUrl, spaceKey, username, accessToken, limit, personalAccessToken, }: ConfluencePagesLoaderParams);
|
|
61
|
+
constructor({ baseUrl, spaceKey, username, accessToken, limit, expand, personalAccessToken, }: ConfluencePagesLoaderParams);
|
|
56
62
|
/**
|
|
57
63
|
* Returns the authorization header for the request.
|
|
58
64
|
* @returns The authorization header as a string, or undefined if no credentials were provided.
|
|
@@ -61,9 +67,15 @@ export declare class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
61
67
|
/**
|
|
62
68
|
* Fetches all the pages in the specified space and converts each page to
|
|
63
69
|
* a Document instance.
|
|
70
|
+
* @param options the extra options of the load function
|
|
71
|
+
* @param options.limit The limit parameter to overwrite the size to fetch pages.
|
|
72
|
+
* @param options.start The start parameter to set inital offset to fetch pages.
|
|
64
73
|
* @returns Promise resolving to an array of Document instances.
|
|
65
74
|
*/
|
|
66
|
-
load(
|
|
75
|
+
load(options?: {
|
|
76
|
+
start?: number;
|
|
77
|
+
limit?: number;
|
|
78
|
+
}): Promise<Document[]>;
|
|
67
79
|
/**
|
|
68
80
|
* Fetches data from the Confluence API using the provided URL.
|
|
69
81
|
* @param url The URL to fetch data from.
|
|
@@ -16,7 +16,7 @@ import { BaseDocumentLoader } from "../base.js";
|
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
18
|
export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
19
|
-
constructor({ baseUrl, spaceKey, username, accessToken, limit = 25, personalAccessToken, }) {
|
|
19
|
+
constructor({ baseUrl, spaceKey, username, accessToken, limit = 25, expand = "body.storage", personalAccessToken, }) {
|
|
20
20
|
super();
|
|
21
21
|
Object.defineProperty(this, "baseUrl", {
|
|
22
22
|
enumerable: true,
|
|
@@ -48,6 +48,16 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
48
48
|
writable: true,
|
|
49
49
|
value: void 0
|
|
50
50
|
});
|
|
51
|
+
/**
|
|
52
|
+
* expand parameter for confluence rest api
|
|
53
|
+
* description can be found at https://developer.atlassian.com/server/confluence/expansions-in-the-rest-api/
|
|
54
|
+
*/
|
|
55
|
+
Object.defineProperty(this, "expand", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: void 0
|
|
60
|
+
});
|
|
51
61
|
Object.defineProperty(this, "personalAccessToken", {
|
|
52
62
|
enumerable: true,
|
|
53
63
|
configurable: true,
|
|
@@ -59,6 +69,7 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
59
69
|
this.username = username;
|
|
60
70
|
this.accessToken = accessToken;
|
|
61
71
|
this.limit = limit;
|
|
72
|
+
this.expand = expand;
|
|
62
73
|
this.personalAccessToken = personalAccessToken;
|
|
63
74
|
}
|
|
64
75
|
/**
|
|
@@ -78,11 +89,14 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
78
89
|
/**
|
|
79
90
|
* Fetches all the pages in the specified space and converts each page to
|
|
80
91
|
* a Document instance.
|
|
92
|
+
* @param options the extra options of the load function
|
|
93
|
+
* @param options.limit The limit parameter to overwrite the size to fetch pages.
|
|
94
|
+
* @param options.start The start parameter to set inital offset to fetch pages.
|
|
81
95
|
* @returns Promise resolving to an array of Document instances.
|
|
82
96
|
*/
|
|
83
|
-
async load() {
|
|
97
|
+
async load(options) {
|
|
84
98
|
try {
|
|
85
|
-
const pages = await this.fetchAllPagesInSpace();
|
|
99
|
+
const pages = await this.fetchAllPagesInSpace(options?.start, options?.limit);
|
|
86
100
|
return pages.map((page) => this.createDocumentFromPage(page));
|
|
87
101
|
}
|
|
88
102
|
catch (error) {
|
|
@@ -122,14 +136,14 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
122
136
|
* @param start The start parameter to paginate through the results.
|
|
123
137
|
* @returns Promise resolving to an array of ConfluencePage objects.
|
|
124
138
|
*/
|
|
125
|
-
async fetchAllPagesInSpace(start = 0) {
|
|
126
|
-
const url = `${this.baseUrl}/rest/api/content?spaceKey=${this.spaceKey}&limit=${
|
|
139
|
+
async fetchAllPagesInSpace(start = 0, limit = this.limit) {
|
|
140
|
+
const url = `${this.baseUrl}/rest/api/content?spaceKey=${this.spaceKey}&limit=${limit}&start=${start}&expand=${this.expand}`;
|
|
127
141
|
const data = await this.fetchConfluenceData(url);
|
|
128
142
|
if (data.size === 0) {
|
|
129
143
|
return [];
|
|
130
144
|
}
|
|
131
145
|
const nextPageStart = start + data.size;
|
|
132
|
-
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart);
|
|
146
|
+
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart, limit);
|
|
133
147
|
return data.results.concat(nextPageResults);
|
|
134
148
|
}
|
|
135
149
|
/**
|
|
@@ -32,7 +32,12 @@ class CustomFormatPromptTemplate extends prompts_1.PromptTemplate {
|
|
|
32
32
|
if (this.partialVariables) {
|
|
33
33
|
totalInputVariables = totalInputVariables.concat(Object.keys(this.partialVariables));
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
if (typeof this.template === "string") {
|
|
36
|
+
this.templateValidator(this.template, totalInputVariables);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
throw new Error(`Must pass in string as template. Received: ${this.template}`);
|
|
40
|
+
}
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
@@ -62,7 +67,12 @@ class CustomFormatPromptTemplate extends prompts_1.PromptTemplate {
|
|
|
62
67
|
*/
|
|
63
68
|
async format(values) {
|
|
64
69
|
const allValues = await this.mergePartialAndUserVariables(values);
|
|
65
|
-
|
|
70
|
+
if (typeof this.template === "string") {
|
|
71
|
+
return this.renderer(this.template, allValues);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
throw new Error(`Must pass in string as template. Received: ${this.template}`);
|
|
75
|
+
}
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.CustomFormatPromptTemplate = CustomFormatPromptTemplate;
|
|
@@ -29,7 +29,12 @@ export class CustomFormatPromptTemplate extends PromptTemplate {
|
|
|
29
29
|
if (this.partialVariables) {
|
|
30
30
|
totalInputVariables = totalInputVariables.concat(Object.keys(this.partialVariables));
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
if (typeof this.template === "string") {
|
|
33
|
+
this.templateValidator(this.template, totalInputVariables);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new Error(`Must pass in string as template. Received: ${this.template}`);
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
@@ -59,6 +64,11 @@ export class CustomFormatPromptTemplate extends PromptTemplate {
|
|
|
59
64
|
*/
|
|
60
65
|
async format(values) {
|
|
61
66
|
const allValues = await this.mergePartialAndUserVariables(values);
|
|
62
|
-
|
|
67
|
+
if (typeof this.template === "string") {
|
|
68
|
+
return this.renderer(this.template, allValues);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
throw new Error(`Must pass in string as template. Received: ${this.template}`);
|
|
72
|
+
}
|
|
63
73
|
}
|
|
64
74
|
}
|
package/dist/load/import_map.cjs
CHANGED
|
@@ -24,8 +24,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
28
|
-
exports.llms__fireworks = exports.chat_models__fireworks = exports.schema__output = exports.schema__output_parser = exports.schema__runnable = exports.prompts__base = exports.prompts__pipeline = exports.prompts__chat = exports.schema__messages = exports.prompts__prompt = exports.embeddings__openai = exports.llms__openai = exports.chat_models__openai = exports.indexes = exports.runnables__remote = exports.smith = exports.evaluation = exports.experimental__prompts__custom_format = exports.experimental__masking = exports.experimental__chains__violation_of_expectations = exports.experimental__chat_models__bittensor = exports.experimental__plan_and_execute = exports.experimental__generative_agents = exports.experimental__babyagi = exports.experimental__openai_files = exports.experimental__openai_assistant = exports.experimental__autogpt = exports.util__time = exports.util__math = void 0;
|
|
27
|
+
exports.storage__in_memory = exports.storage__encoder_backed = exports.stores__message__in_memory = exports.stores__file__in_memory = exports.stores__doc__in_memory = exports.retrievers__vespa = exports.retrievers__score_threshold = exports.retrievers__hyde = exports.retrievers__document_compressors__embeddings_filter = exports.retrievers__document_compressors__chain_extract = exports.retrievers__time_weighted = exports.retrievers__parent_document = exports.retrievers__multi_vector = exports.retrievers__multi_query = exports.retrievers__document_compressors = exports.retrievers__contextual_compression = exports.retrievers__remote = exports.output_parsers = exports.schema__query_constructor = exports.schema__prompt_template = exports.chat_models__anthropic = exports.document_transformers__openai_functions = exports.document_loaders__web__sort_xyz_blockchain = exports.document_loaders__web__serpapi = exports.document_loaders__web__searchapi = exports.document_loaders__base = exports.text_splitter = exports.vectorstores__memory = exports.llms__fake = exports.embeddings__fake = exports.embeddings__cache_backed = exports.chains__retrieval = exports.chains__openai_functions = exports.chains__history_aware_retriever = exports.chains__combine_documents__reduce = exports.chains__combine_documents = exports.chains = exports.tools__retriever = exports.tools__render = exports.tools__chain = exports.agents__openai__output_parser = exports.agents__xml__output_parser = exports.agents__react__output_parser = exports.agents__format_scratchpad__log_to_message = exports.agents__format_scratchpad__xml = exports.agents__format_scratchpad__log = exports.agents__format_scratchpad__openai_tools = exports.agents__format_scratchpad = exports.agents__toolkits = exports.agents = void 0;
|
|
28
|
+
exports.llms__fireworks = exports.chat_models__fireworks = exports.schema__output = exports.schema__output_parser = exports.schema__runnable = exports.prompts__base = exports.prompts__pipeline = exports.prompts__chat = exports.schema__messages = exports.prompts__prompt = exports.embeddings__openai = exports.llms__openai = exports.chat_models__openai = exports.indexes = exports.runnables__remote = exports.smith = exports.evaluation = exports.experimental__prompts__custom_format = exports.experimental__masking = exports.experimental__chains__violation_of_expectations = exports.experimental__chat_models__bittensor = exports.experimental__plan_and_execute = exports.experimental__generative_agents = exports.experimental__babyagi = exports.experimental__openai_files = exports.experimental__openai_assistant = exports.experimental__autogpt = exports.util__time = exports.util__math = exports.util__document = void 0;
|
|
29
29
|
exports.agents = __importStar(require("../agents/index.cjs"));
|
|
30
30
|
exports.agents__toolkits = __importStar(require("../agents/toolkits/index.cjs"));
|
|
31
31
|
exports.agents__format_scratchpad = __importStar(require("../agents/format_scratchpad/openai_functions.cjs"));
|
|
@@ -36,6 +36,7 @@ exports.agents__format_scratchpad__log_to_message = __importStar(require("../age
|
|
|
36
36
|
exports.agents__react__output_parser = __importStar(require("../agents/react/output_parser.cjs"));
|
|
37
37
|
exports.agents__xml__output_parser = __importStar(require("../agents/xml/output_parser.cjs"));
|
|
38
38
|
exports.agents__openai__output_parser = __importStar(require("../agents/openai/output_parser.cjs"));
|
|
39
|
+
exports.tools__chain = __importStar(require("../tools/chain.cjs"));
|
|
39
40
|
exports.tools__render = __importStar(require("../tools/render.cjs"));
|
|
40
41
|
exports.tools__retriever = __importStar(require("../tools/retriever.cjs"));
|
|
41
42
|
exports.chains = __importStar(require("../chains/index.cjs"));
|
|
@@ -102,19 +103,19 @@ const outputs_1 = require("@langchain/core/outputs");
|
|
|
102
103
|
const fireworks_1 = require("@langchain/community/chat_models/fireworks");
|
|
103
104
|
const fireworks_2 = require("@langchain/community/llms/fireworks");
|
|
104
105
|
const chat_models__openai = {
|
|
105
|
-
ChatOpenAI: openai_1.ChatOpenAI
|
|
106
|
+
ChatOpenAI: openai_1.ChatOpenAI,
|
|
106
107
|
};
|
|
107
108
|
exports.chat_models__openai = chat_models__openai;
|
|
108
109
|
const llms__openai = {
|
|
109
|
-
OpenAI: openai_1.OpenAI
|
|
110
|
+
OpenAI: openai_1.OpenAI,
|
|
110
111
|
};
|
|
111
112
|
exports.llms__openai = llms__openai;
|
|
112
113
|
const embeddings__openai = {
|
|
113
|
-
OpenAIEmbeddings: openai_1.OpenAIEmbeddings
|
|
114
|
+
OpenAIEmbeddings: openai_1.OpenAIEmbeddings,
|
|
114
115
|
};
|
|
115
116
|
exports.embeddings__openai = embeddings__openai;
|
|
116
117
|
const prompts__prompt = {
|
|
117
|
-
PromptTemplate: prompts_1.PromptTemplate
|
|
118
|
+
PromptTemplate: prompts_1.PromptTemplate,
|
|
118
119
|
};
|
|
119
120
|
exports.prompts__prompt = prompts__prompt;
|
|
120
121
|
const schema__messages = {
|
|
@@ -131,7 +132,7 @@ const schema__messages = {
|
|
|
131
132
|
SystemMessage: messages_1.SystemMessage,
|
|
132
133
|
SystemMessageChunk: messages_1.SystemMessageChunk,
|
|
133
134
|
ToolMessage: messages_1.ToolMessage,
|
|
134
|
-
ToolMessageChunk: messages_1.ToolMessageChunk
|
|
135
|
+
ToolMessageChunk: messages_1.ToolMessageChunk,
|
|
135
136
|
};
|
|
136
137
|
exports.schema__messages = schema__messages;
|
|
137
138
|
const prompts__chat = {
|
|
@@ -140,15 +141,15 @@ const prompts__chat = {
|
|
|
140
141
|
ChatPromptTemplate: prompts_1.ChatPromptTemplate,
|
|
141
142
|
HumanMessagePromptTemplate: prompts_1.HumanMessagePromptTemplate,
|
|
142
143
|
MessagesPlaceholder: prompts_1.MessagesPlaceholder,
|
|
143
|
-
SystemMessagePromptTemplate: prompts_1.SystemMessagePromptTemplate
|
|
144
|
+
SystemMessagePromptTemplate: prompts_1.SystemMessagePromptTemplate,
|
|
144
145
|
};
|
|
145
146
|
exports.prompts__chat = prompts__chat;
|
|
146
147
|
const prompts__pipeline = {
|
|
147
|
-
PipelinePromptTemplate: prompts_1.PipelinePromptTemplate
|
|
148
|
+
PipelinePromptTemplate: prompts_1.PipelinePromptTemplate,
|
|
148
149
|
};
|
|
149
150
|
exports.prompts__pipeline = prompts__pipeline;
|
|
150
151
|
const prompts__base = {
|
|
151
|
-
StringPromptValue: prompt_values_1.StringPromptValue
|
|
152
|
+
StringPromptValue: prompt_values_1.StringPromptValue,
|
|
152
153
|
};
|
|
153
154
|
exports.prompts__base = prompts__base;
|
|
154
155
|
const schema__runnable = {
|
|
@@ -164,23 +165,23 @@ const schema__runnable = {
|
|
|
164
165
|
RunnableRetry: runnables_1.RunnableRetry,
|
|
165
166
|
RunnableSequence: runnables_1.RunnableSequence,
|
|
166
167
|
RunnableWithFallbacks: runnables_1.RunnableWithFallbacks,
|
|
167
|
-
RunnableWithMessageHistory: runnables_1.RunnableWithMessageHistory
|
|
168
|
+
RunnableWithMessageHistory: runnables_1.RunnableWithMessageHistory,
|
|
168
169
|
};
|
|
169
170
|
exports.schema__runnable = schema__runnable;
|
|
170
171
|
const schema__output_parser = {
|
|
171
|
-
StringOutputParser: output_parsers_1.StringOutputParser
|
|
172
|
+
StringOutputParser: output_parsers_1.StringOutputParser,
|
|
172
173
|
};
|
|
173
174
|
exports.schema__output_parser = schema__output_parser;
|
|
174
175
|
const schema__output = {
|
|
175
176
|
ChatGenerationChunk: outputs_1.ChatGenerationChunk,
|
|
176
|
-
GenerationChunk: outputs_1.GenerationChunk
|
|
177
|
+
GenerationChunk: outputs_1.GenerationChunk,
|
|
177
178
|
};
|
|
178
179
|
exports.schema__output = schema__output;
|
|
179
180
|
const chat_models__fireworks = {
|
|
180
|
-
ChatFireworks: fireworks_1.ChatFireworks
|
|
181
|
+
ChatFireworks: fireworks_1.ChatFireworks,
|
|
181
182
|
};
|
|
182
183
|
exports.chat_models__fireworks = chat_models__fireworks;
|
|
183
184
|
const llms__fireworks = {
|
|
184
|
-
Fireworks: fireworks_2.Fireworks
|
|
185
|
+
Fireworks: fireworks_2.Fireworks,
|
|
185
186
|
};
|
|
186
187
|
exports.llms__fireworks = llms__fireworks;
|
|
@@ -8,6 +8,7 @@ export * as agents__format_scratchpad__log_to_message from "../agents/format_scr
|
|
|
8
8
|
export * as agents__react__output_parser from "../agents/react/output_parser.js";
|
|
9
9
|
export * as agents__xml__output_parser from "../agents/xml/output_parser.js";
|
|
10
10
|
export * as agents__openai__output_parser from "../agents/openai/output_parser.js";
|
|
11
|
+
export * as tools__chain from "../tools/chain.js";
|
|
11
12
|
export * as tools__render from "../tools/render.js";
|
|
12
13
|
export * as tools__retriever from "../tools/retriever.js";
|
|
13
14
|
export * as chains from "../chains/index.js";
|