langchain 0.1.11 → 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/document.cjs +0 -6
- package/dist/document.js +0 -6
- package/dist/document_loaders/web/confluence.cjs +8 -5
- package/dist/document_loaders/web/confluence.d.ts +7 -1
- package/dist/document_loaders/web/confluence.js +8 -5
- 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/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'
|
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";
|
|
@@ -92,11 +92,14 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
92
92
|
/**
|
|
93
93
|
* Fetches all the pages in the specified space and converts each page to
|
|
94
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.
|
|
95
98
|
* @returns Promise resolving to an array of Document instances.
|
|
96
99
|
*/
|
|
97
|
-
async load() {
|
|
100
|
+
async load(options) {
|
|
98
101
|
try {
|
|
99
|
-
const pages = await this.fetchAllPagesInSpace();
|
|
102
|
+
const pages = await this.fetchAllPagesInSpace(options?.start, options?.limit);
|
|
100
103
|
return pages.map((page) => this.createDocumentFromPage(page));
|
|
101
104
|
}
|
|
102
105
|
catch (error) {
|
|
@@ -136,14 +139,14 @@ class ConfluencePagesLoader extends base_js_1.BaseDocumentLoader {
|
|
|
136
139
|
* @param start The start parameter to paginate through the results.
|
|
137
140
|
* @returns Promise resolving to an array of ConfluencePage objects.
|
|
138
141
|
*/
|
|
139
|
-
async fetchAllPagesInSpace(start = 0) {
|
|
140
|
-
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}`;
|
|
141
144
|
const data = await this.fetchConfluenceData(url);
|
|
142
145
|
if (data.size === 0) {
|
|
143
146
|
return [];
|
|
144
147
|
}
|
|
145
148
|
const nextPageStart = start + data.size;
|
|
146
|
-
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart);
|
|
149
|
+
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart, limit);
|
|
147
150
|
return data.results.concat(nextPageResults);
|
|
148
151
|
}
|
|
149
152
|
/**
|
|
@@ -67,9 +67,15 @@ export declare class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
67
67
|
/**
|
|
68
68
|
* Fetches all the pages in the specified space and converts each page to
|
|
69
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.
|
|
70
73
|
* @returns Promise resolving to an array of Document instances.
|
|
71
74
|
*/
|
|
72
|
-
load(
|
|
75
|
+
load(options?: {
|
|
76
|
+
start?: number;
|
|
77
|
+
limit?: number;
|
|
78
|
+
}): Promise<Document[]>;
|
|
73
79
|
/**
|
|
74
80
|
* Fetches data from the Confluence API using the provided URL.
|
|
75
81
|
* @param url The URL to fetch data from.
|
|
@@ -89,11 +89,14 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
89
89
|
/**
|
|
90
90
|
* Fetches all the pages in the specified space and converts each page to
|
|
91
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.
|
|
92
95
|
* @returns Promise resolving to an array of Document instances.
|
|
93
96
|
*/
|
|
94
|
-
async load() {
|
|
97
|
+
async load(options) {
|
|
95
98
|
try {
|
|
96
|
-
const pages = await this.fetchAllPagesInSpace();
|
|
99
|
+
const pages = await this.fetchAllPagesInSpace(options?.start, options?.limit);
|
|
97
100
|
return pages.map((page) => this.createDocumentFromPage(page));
|
|
98
101
|
}
|
|
99
102
|
catch (error) {
|
|
@@ -133,14 +136,14 @@ export class ConfluencePagesLoader extends BaseDocumentLoader {
|
|
|
133
136
|
* @param start The start parameter to paginate through the results.
|
|
134
137
|
* @returns Promise resolving to an array of ConfluencePage objects.
|
|
135
138
|
*/
|
|
136
|
-
async fetchAllPagesInSpace(start = 0) {
|
|
137
|
-
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}`;
|
|
138
141
|
const data = await this.fetchConfluenceData(url);
|
|
139
142
|
if (data.size === 0) {
|
|
140
143
|
return [];
|
|
141
144
|
}
|
|
142
145
|
const nextPageStart = start + data.size;
|
|
143
|
-
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart);
|
|
146
|
+
const nextPageResults = await this.fetchAllPagesInSpace(nextPageStart, limit);
|
|
144
147
|
return data.results.concat(nextPageResults);
|
|
145
148
|
}
|
|
146
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";
|
package/dist/load/import_map.js
CHANGED
|
@@ -9,6 +9,7 @@ export * as agents__format_scratchpad__log_to_message from "../agents/format_scr
|
|
|
9
9
|
export * as agents__react__output_parser from "../agents/react/output_parser.js";
|
|
10
10
|
export * as agents__xml__output_parser from "../agents/xml/output_parser.js";
|
|
11
11
|
export * as agents__openai__output_parser from "../agents/openai/output_parser.js";
|
|
12
|
+
export * as tools__chain from "../tools/chain.js";
|
|
12
13
|
export * as tools__render from "../tools/render.js";
|
|
13
14
|
export * as tools__retriever from "../tools/retriever.js";
|
|
14
15
|
export * as chains from "../chains/index.js";
|
|
@@ -66,28 +67,28 @@ export * as smith from "../smith/index.js";
|
|
|
66
67
|
export * as runnables__remote from "../runnables/remote.js";
|
|
67
68
|
export * as indexes from "../indexes/index.js";
|
|
68
69
|
import { ChatOpenAI, OpenAI, OpenAIEmbeddings } from "@langchain/openai";
|
|
69
|
-
import { PromptTemplate, AIMessagePromptTemplate, ChatMessagePromptTemplate, ChatPromptTemplate, HumanMessagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, PipelinePromptTemplate } from "@langchain/core/prompts";
|
|
70
|
-
import { AIMessage, AIMessageChunk, BaseMessage, BaseMessageChunk, ChatMessage, ChatMessageChunk, FunctionMessage, FunctionMessageChunk, HumanMessage, HumanMessageChunk, SystemMessage, SystemMessageChunk, ToolMessage, ToolMessageChunk } from "@langchain/core/messages";
|
|
70
|
+
import { PromptTemplate, AIMessagePromptTemplate, ChatMessagePromptTemplate, ChatPromptTemplate, HumanMessagePromptTemplate, MessagesPlaceholder, SystemMessagePromptTemplate, PipelinePromptTemplate, } from "@langchain/core/prompts";
|
|
71
|
+
import { AIMessage, AIMessageChunk, BaseMessage, BaseMessageChunk, ChatMessage, ChatMessageChunk, FunctionMessage, FunctionMessageChunk, HumanMessage, HumanMessageChunk, SystemMessage, SystemMessageChunk, ToolMessage, ToolMessageChunk, } from "@langchain/core/messages";
|
|
71
72
|
import { StringPromptValue } from "@langchain/core/prompt_values";
|
|
72
|
-
import { RouterRunnable, RunnableAssign, RunnableBinding, RunnableBranch, RunnableEach, RunnableMap, RunnableParallel, RunnablePassthrough, RunnablePick, RunnableRetry, RunnableSequence, RunnableWithFallbacks, RunnableWithMessageHistory } from "@langchain/core/runnables";
|
|
73
|
+
import { RouterRunnable, RunnableAssign, RunnableBinding, RunnableBranch, RunnableEach, RunnableMap, RunnableParallel, RunnablePassthrough, RunnablePick, RunnableRetry, RunnableSequence, RunnableWithFallbacks, RunnableWithMessageHistory, } from "@langchain/core/runnables";
|
|
73
74
|
import { StringOutputParser } from "@langchain/core/output_parsers";
|
|
74
75
|
import { ChatGenerationChunk, GenerationChunk } from "@langchain/core/outputs";
|
|
75
76
|
import { ChatFireworks } from "@langchain/community/chat_models/fireworks";
|
|
76
77
|
import { Fireworks } from "@langchain/community/llms/fireworks";
|
|
77
78
|
const chat_models__openai = {
|
|
78
|
-
ChatOpenAI
|
|
79
|
+
ChatOpenAI,
|
|
79
80
|
};
|
|
80
81
|
export { chat_models__openai };
|
|
81
82
|
const llms__openai = {
|
|
82
|
-
OpenAI
|
|
83
|
+
OpenAI,
|
|
83
84
|
};
|
|
84
85
|
export { llms__openai };
|
|
85
86
|
const embeddings__openai = {
|
|
86
|
-
OpenAIEmbeddings
|
|
87
|
+
OpenAIEmbeddings,
|
|
87
88
|
};
|
|
88
89
|
export { embeddings__openai };
|
|
89
90
|
const prompts__prompt = {
|
|
90
|
-
PromptTemplate
|
|
91
|
+
PromptTemplate,
|
|
91
92
|
};
|
|
92
93
|
export { prompts__prompt };
|
|
93
94
|
const schema__messages = {
|
|
@@ -104,7 +105,7 @@ const schema__messages = {
|
|
|
104
105
|
SystemMessage,
|
|
105
106
|
SystemMessageChunk,
|
|
106
107
|
ToolMessage,
|
|
107
|
-
ToolMessageChunk
|
|
108
|
+
ToolMessageChunk,
|
|
108
109
|
};
|
|
109
110
|
export { schema__messages };
|
|
110
111
|
const prompts__chat = {
|
|
@@ -113,15 +114,15 @@ const prompts__chat = {
|
|
|
113
114
|
ChatPromptTemplate,
|
|
114
115
|
HumanMessagePromptTemplate,
|
|
115
116
|
MessagesPlaceholder,
|
|
116
|
-
SystemMessagePromptTemplate
|
|
117
|
+
SystemMessagePromptTemplate,
|
|
117
118
|
};
|
|
118
119
|
export { prompts__chat };
|
|
119
120
|
const prompts__pipeline = {
|
|
120
|
-
PipelinePromptTemplate
|
|
121
|
+
PipelinePromptTemplate,
|
|
121
122
|
};
|
|
122
123
|
export { prompts__pipeline };
|
|
123
124
|
const prompts__base = {
|
|
124
|
-
StringPromptValue
|
|
125
|
+
StringPromptValue,
|
|
125
126
|
};
|
|
126
127
|
export { prompts__base };
|
|
127
128
|
const schema__runnable = {
|
|
@@ -137,23 +138,23 @@ const schema__runnable = {
|
|
|
137
138
|
RunnableRetry,
|
|
138
139
|
RunnableSequence,
|
|
139
140
|
RunnableWithFallbacks,
|
|
140
|
-
RunnableWithMessageHistory
|
|
141
|
+
RunnableWithMessageHistory,
|
|
141
142
|
};
|
|
142
143
|
export { schema__runnable };
|
|
143
144
|
const schema__output_parser = {
|
|
144
|
-
StringOutputParser
|
|
145
|
+
StringOutputParser,
|
|
145
146
|
};
|
|
146
147
|
export { schema__output_parser };
|
|
147
148
|
const schema__output = {
|
|
148
149
|
ChatGenerationChunk,
|
|
149
|
-
GenerationChunk
|
|
150
|
+
GenerationChunk,
|
|
150
151
|
};
|
|
151
152
|
export { schema__output };
|
|
152
153
|
const chat_models__fireworks = {
|
|
153
|
-
ChatFireworks
|
|
154
|
+
ChatFireworks,
|
|
154
155
|
};
|
|
155
156
|
export { chat_models__fireworks };
|
|
156
157
|
const llms__fireworks = {
|
|
157
|
-
Fireworks
|
|
158
|
+
Fireworks,
|
|
158
159
|
};
|
|
159
160
|
export { llms__fireworks };
|
package/document.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/document.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/document_loaders/base.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/buffer.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/chatgpt.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/csv.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/directory.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/docx.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/epub.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/document_loaders/fs/json.js'
|