@langchain/core 1.2.14 → 1.2.17
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 +18 -0
- package/dist/agents.d.cts +3 -4
- package/dist/agents.d.cts.map +1 -1
- package/dist/agents.d.ts +3 -4
- package/dist/agents.d.ts.map +1 -1
- package/dist/caches/index.d.cts +5 -6
- package/dist/caches/index.d.cts.map +1 -1
- package/dist/caches/index.d.ts +5 -6
- package/dist/caches/index.d.ts.map +1 -1
- package/dist/callbacks/base.d.cts +10 -11
- package/dist/callbacks/base.d.cts.map +1 -1
- package/dist/callbacks/base.d.ts +10 -11
- package/dist/callbacks/base.d.ts.map +1 -1
- package/dist/callbacks/dispatch/index.d.cts +1 -2
- package/dist/callbacks/dispatch/index.d.cts.map +1 -1
- package/dist/callbacks/dispatch/index.d.ts +1 -2
- package/dist/callbacks/dispatch/index.d.ts.map +1 -1
- package/dist/callbacks/dispatch/web.d.cts +1 -2
- package/dist/callbacks/dispatch/web.d.cts.map +1 -1
- package/dist/callbacks/dispatch/web.d.ts +1 -2
- package/dist/callbacks/dispatch/web.d.ts.map +1 -1
- package/dist/callbacks/manager.cjs +1 -1
- package/dist/callbacks/manager.cjs.map +1 -1
- package/dist/callbacks/manager.d.cts +12 -13
- package/dist/callbacks/manager.d.cts.map +1 -1
- package/dist/callbacks/manager.d.ts +12 -13
- package/dist/callbacks/manager.d.ts.map +1 -1
- package/dist/callbacks/manager.js +1 -1
- package/dist/callbacks/manager.js.map +1 -1
- package/dist/chat_history.d.cts +3 -4
- package/dist/chat_history.d.cts.map +1 -1
- package/dist/chat_history.d.ts +3 -4
- package/dist/chat_history.d.ts.map +1 -1
- package/dist/context.d.cts +2 -2
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/document_loaders/base.d.cts +2 -3
- package/dist/document_loaders/base.d.cts.map +1 -1
- package/dist/document_loaders/base.d.ts +2 -3
- package/dist/document_loaders/base.d.ts.map +1 -1
- package/dist/document_loaders/langsmith.d.cts +2 -3
- package/dist/document_loaders/langsmith.d.cts.map +1 -1
- package/dist/document_loaders/langsmith.d.ts +2 -3
- package/dist/document_loaders/langsmith.d.ts.map +1 -1
- package/dist/documents/document.d.cts +3 -4
- package/dist/documents/document.d.cts.map +1 -1
- package/dist/documents/document.d.ts +3 -4
- package/dist/documents/document.d.ts.map +1 -1
- package/dist/documents/transformers.d.cts +2 -3
- package/dist/documents/transformers.d.cts.map +1 -1
- package/dist/documents/transformers.d.ts +2 -3
- package/dist/documents/transformers.d.ts.map +1 -1
- package/dist/embeddings.d.cts +3 -4
- package/dist/embeddings.d.cts.map +1 -1
- package/dist/embeddings.d.ts +3 -4
- package/dist/embeddings.d.ts.map +1 -1
- package/dist/errors/index.cjs.map +1 -1
- package/dist/errors/index.d.cts +13 -19
- package/dist/errors/index.d.cts.map +1 -1
- package/dist/errors/index.d.ts +13 -19
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/example_selectors/base.d.cts +1 -2
- package/dist/example_selectors/base.d.cts.map +1 -1
- package/dist/example_selectors/base.d.ts +1 -2
- package/dist/example_selectors/base.d.ts.map +1 -1
- package/dist/example_selectors/conditional.d.cts +5 -6
- package/dist/example_selectors/conditional.d.cts.map +1 -1
- package/dist/example_selectors/conditional.d.ts +5 -6
- package/dist/example_selectors/conditional.d.ts.map +1 -1
- package/dist/example_selectors/length_based.d.cts +2 -3
- package/dist/example_selectors/length_based.d.cts.map +1 -1
- package/dist/example_selectors/length_based.d.ts +2 -3
- package/dist/example_selectors/length_based.d.ts.map +1 -1
- package/dist/example_selectors/semantic_similarity.d.cts +2 -3
- package/dist/example_selectors/semantic_similarity.d.cts.map +1 -1
- package/dist/example_selectors/semantic_similarity.d.ts +2 -3
- package/dist/example_selectors/semantic_similarity.d.ts.map +1 -1
- package/dist/indexing/base.d.cts +9 -10
- package/dist/indexing/base.d.cts.map +1 -1
- package/dist/indexing/base.d.ts +9 -10
- package/dist/indexing/base.d.ts.map +1 -1
- package/dist/indexing/record_manager.d.cts +5 -6
- package/dist/indexing/record_manager.d.cts.map +1 -1
- package/dist/indexing/record_manager.d.ts +5 -6
- package/dist/indexing/record_manager.d.ts.map +1 -1
- package/dist/language_models/base.cjs +1 -1
- package/dist/language_models/base.cjs.map +1 -1
- package/dist/language_models/base.d.cts +24 -25
- package/dist/language_models/base.d.cts.map +1 -1
- package/dist/language_models/base.d.ts +24 -25
- package/dist/language_models/base.d.ts.map +1 -1
- package/dist/language_models/base.js +1 -1
- package/dist/language_models/base.js.map +1 -1
- package/dist/language_models/chat_models.d.cts +9 -10
- package/dist/language_models/chat_models.d.cts.map +1 -1
- package/dist/language_models/chat_models.d.ts +9 -10
- package/dist/language_models/chat_models.d.ts.map +1 -1
- package/dist/language_models/compat.d.cts +2 -3
- package/dist/language_models/compat.d.cts.map +1 -1
- package/dist/language_models/compat.d.ts +2 -3
- package/dist/language_models/compat.d.ts.map +1 -1
- package/dist/language_models/event.d.cts +15 -16
- package/dist/language_models/event.d.cts.map +1 -1
- package/dist/language_models/event.d.ts +15 -16
- package/dist/language_models/event.d.ts.map +1 -1
- package/dist/language_models/llms.d.cts +5 -6
- package/dist/language_models/llms.d.cts.map +1 -1
- package/dist/language_models/llms.d.ts +5 -6
- package/dist/language_models/llms.d.ts.map +1 -1
- package/dist/language_models/openai_completions_stream.d.cts +8 -9
- package/dist/language_models/openai_completions_stream.d.cts.map +1 -1
- package/dist/language_models/openai_completions_stream.d.ts +8 -9
- package/dist/language_models/openai_completions_stream.d.ts.map +1 -1
- package/dist/language_models/profile.d.cts +1 -2
- package/dist/language_models/profile.d.cts.map +1 -1
- package/dist/language_models/profile.d.ts +1 -2
- package/dist/language_models/profile.d.ts.map +1 -1
- package/dist/language_models/stream.d.cts +5 -6
- package/dist/language_models/stream.d.cts.map +1 -1
- package/dist/language_models/stream.d.ts +5 -6
- package/dist/language_models/stream.d.ts.map +1 -1
- package/dist/language_models/structured_output.d.cts +3 -4
- package/dist/language_models/structured_output.d.cts.map +1 -1
- package/dist/language_models/structured_output.d.ts +3 -4
- package/dist/language_models/structured_output.d.ts.map +1 -1
- package/dist/load/import_type.d.cts +2 -3
- package/dist/load/import_type.d.cts.map +1 -1
- package/dist/load/import_type.d.ts +2 -3
- package/dist/load/import_type.d.ts.map +1 -1
- package/dist/load/index.d.cts +2 -3
- package/dist/load/index.d.cts.map +1 -1
- package/dist/load/index.d.ts +2 -3
- package/dist/load/index.d.ts.map +1 -1
- package/dist/load/map_keys.d.cts +1 -2
- package/dist/load/map_keys.d.cts.map +1 -1
- package/dist/load/map_keys.d.ts +1 -2
- package/dist/load/map_keys.d.ts.map +1 -1
- package/dist/load/serializable.d.cts +9 -10
- package/dist/load/serializable.d.cts.map +1 -1
- package/dist/load/serializable.d.ts +9 -10
- package/dist/load/serializable.d.ts.map +1 -1
- package/dist/memory.d.cts +7 -8
- package/dist/memory.d.cts.map +1 -1
- package/dist/memory.d.ts +7 -8
- package/dist/memory.d.ts.map +1 -1
- package/dist/messages/ai.d.cts +6 -7
- package/dist/messages/ai.d.cts.map +1 -1
- package/dist/messages/ai.d.ts +6 -7
- package/dist/messages/ai.d.ts.map +1 -1
- package/dist/messages/base.d.cts +23 -24
- package/dist/messages/base.d.cts.map +1 -1
- package/dist/messages/base.d.ts +23 -24
- package/dist/messages/base.d.ts.map +1 -1
- package/dist/messages/chat.d.cts +5 -6
- package/dist/messages/chat.d.cts.map +1 -1
- package/dist/messages/chat.d.ts +5 -6
- package/dist/messages/chat.d.ts.map +1 -1
- package/dist/messages/content/base.d.cts +1 -2
- package/dist/messages/content/base.d.cts.map +1 -1
- package/dist/messages/content/base.d.ts +1 -2
- package/dist/messages/content/base.d.ts.map +1 -1
- package/dist/messages/content/data.d.cts +18 -19
- package/dist/messages/content/data.d.cts.map +1 -1
- package/dist/messages/content/data.d.ts +18 -19
- package/dist/messages/content/data.d.ts.map +1 -1
- package/dist/messages/content/index.d.cts +4 -5
- package/dist/messages/content/index.d.cts.map +1 -1
- package/dist/messages/content/index.d.ts +4 -5
- package/dist/messages/content/index.d.ts.map +1 -1
- package/dist/messages/content/multimodal.d.cts +2 -3
- package/dist/messages/content/multimodal.d.cts.map +1 -1
- package/dist/messages/content/multimodal.d.ts +2 -3
- package/dist/messages/content/multimodal.d.ts.map +1 -1
- package/dist/messages/content/tools.d.cts +2 -3
- package/dist/messages/content/tools.d.cts.map +1 -1
- package/dist/messages/content/tools.d.ts +2 -3
- package/dist/messages/content/tools.d.ts.map +1 -1
- package/dist/messages/format.d.cts +1 -2
- package/dist/messages/format.d.cts.map +1 -1
- package/dist/messages/format.d.ts +1 -2
- package/dist/messages/format.d.ts.map +1 -1
- package/dist/messages/function.d.cts +5 -6
- package/dist/messages/function.d.cts.map +1 -1
- package/dist/messages/function.d.ts +5 -6
- package/dist/messages/function.d.ts.map +1 -1
- package/dist/messages/human.d.cts +5 -6
- package/dist/messages/human.d.cts.map +1 -1
- package/dist/messages/human.d.ts +5 -6
- package/dist/messages/human.d.ts.map +1 -1
- package/dist/messages/message.d.cts +20 -21
- package/dist/messages/message.d.cts.map +1 -1
- package/dist/messages/message.d.ts +20 -21
- package/dist/messages/message.d.ts.map +1 -1
- package/dist/messages/metadata.d.cts +7 -8
- package/dist/messages/metadata.d.cts.map +1 -1
- package/dist/messages/metadata.d.ts +7 -8
- package/dist/messages/metadata.d.ts.map +1 -1
- package/dist/messages/modifier.d.cts +2 -3
- package/dist/messages/modifier.d.cts.map +1 -1
- package/dist/messages/modifier.d.ts +2 -3
- package/dist/messages/modifier.d.ts.map +1 -1
- package/dist/messages/system.d.cts +5 -6
- package/dist/messages/system.d.cts.map +1 -1
- package/dist/messages/system.d.ts +5 -6
- package/dist/messages/system.d.ts.map +1 -1
- package/dist/messages/tool.d.cts +11 -12
- package/dist/messages/tool.d.cts.map +1 -1
- package/dist/messages/tool.d.ts +11 -12
- package/dist/messages/tool.d.ts.map +1 -1
- package/dist/messages/transformers.d.cts +12 -13
- package/dist/messages/transformers.d.cts.map +1 -1
- package/dist/messages/transformers.d.ts +12 -13
- package/dist/messages/transformers.d.ts.map +1 -1
- package/dist/messages/utils.d.cts +13 -14
- package/dist/messages/utils.d.cts.map +1 -1
- package/dist/messages/utils.d.ts +13 -14
- package/dist/messages/utils.d.ts.map +1 -1
- package/dist/output_parsers/base.d.cts +4 -5
- package/dist/output_parsers/base.d.cts.map +1 -1
- package/dist/output_parsers/base.d.ts +4 -5
- package/dist/output_parsers/base.d.ts.map +1 -1
- package/dist/output_parsers/bytes.d.cts +1 -2
- package/dist/output_parsers/bytes.d.cts.map +1 -1
- package/dist/output_parsers/bytes.d.ts +1 -2
- package/dist/output_parsers/bytes.d.ts.map +1 -1
- package/dist/output_parsers/json.d.cts +2 -2
- package/dist/output_parsers/json.d.cts.map +1 -1
- package/dist/output_parsers/json.d.ts +2 -2
- package/dist/output_parsers/json.d.ts.map +1 -1
- package/dist/output_parsers/list.d.cts +5 -6
- package/dist/output_parsers/list.d.cts.map +1 -1
- package/dist/output_parsers/list.d.ts +5 -6
- package/dist/output_parsers/list.d.ts.map +1 -1
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts +4 -5
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts.map +1 -1
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +4 -5
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts.map +1 -1
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts +12 -13
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts.map +1 -1
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +12 -13
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts.map +1 -1
- package/dist/output_parsers/standard_schema.d.cts +1 -2
- package/dist/output_parsers/standard_schema.d.cts.map +1 -1
- package/dist/output_parsers/standard_schema.d.ts +1 -2
- package/dist/output_parsers/standard_schema.d.ts.map +1 -1
- package/dist/output_parsers/string.d.cts +1 -2
- package/dist/output_parsers/string.d.cts.map +1 -1
- package/dist/output_parsers/string.d.ts +1 -2
- package/dist/output_parsers/string.d.ts.map +1 -1
- package/dist/output_parsers/structured.d.cts +6 -7
- package/dist/output_parsers/structured.d.cts.map +1 -1
- package/dist/output_parsers/structured.d.ts +6 -7
- package/dist/output_parsers/structured.d.ts.map +1 -1
- package/dist/output_parsers/transform.d.cts +3 -4
- package/dist/output_parsers/transform.d.cts.map +1 -1
- package/dist/output_parsers/transform.d.ts +3 -4
- package/dist/output_parsers/transform.d.ts.map +1 -1
- package/dist/output_parsers/xml.d.cts +6 -7
- package/dist/output_parsers/xml.d.cts.map +1 -1
- package/dist/output_parsers/xml.d.ts +6 -7
- package/dist/output_parsers/xml.d.ts.map +1 -1
- package/dist/outputs.d.cts +9 -10
- package/dist/outputs.d.cts.map +1 -1
- package/dist/outputs.d.ts +9 -10
- package/dist/outputs.d.ts.map +1 -1
- package/dist/prompt_values.d.cts +10 -11
- package/dist/prompt_values.d.cts.map +1 -1
- package/dist/prompt_values.d.ts +10 -11
- package/dist/prompt_values.d.ts.map +1 -1
- package/dist/prompts/base.d.cts +4 -5
- package/dist/prompts/base.d.cts.map +1 -1
- package/dist/prompts/base.d.ts +4 -5
- package/dist/prompts/base.d.ts.map +1 -1
- package/dist/prompts/chat.d.cts +14 -15
- package/dist/prompts/chat.d.cts.map +1 -1
- package/dist/prompts/chat.d.ts +14 -15
- package/dist/prompts/chat.d.ts.map +1 -1
- package/dist/prompts/dict.d.cts +1 -2
- package/dist/prompts/dict.d.cts.map +1 -1
- package/dist/prompts/dict.d.ts +1 -2
- package/dist/prompts/dict.d.ts.map +1 -1
- package/dist/prompts/few_shot.d.cts +4 -5
- package/dist/prompts/few_shot.d.cts.map +1 -1
- package/dist/prompts/few_shot.d.ts +4 -5
- package/dist/prompts/few_shot.d.ts.map +1 -1
- package/dist/prompts/image.d.cts +2 -3
- package/dist/prompts/image.d.cts.map +1 -1
- package/dist/prompts/image.d.ts +2 -3
- package/dist/prompts/image.d.ts.map +1 -1
- package/dist/prompts/pipeline.d.cts +3 -4
- package/dist/prompts/pipeline.d.cts.map +1 -1
- package/dist/prompts/pipeline.d.ts +3 -4
- package/dist/prompts/pipeline.d.ts.map +1 -1
- package/dist/prompts/prompt.d.cts +4 -5
- package/dist/prompts/prompt.d.cts.map +1 -1
- package/dist/prompts/prompt.d.ts +4 -5
- package/dist/prompts/prompt.d.ts.map +1 -1
- package/dist/prompts/serde.d.cts +3 -4
- package/dist/prompts/serde.d.cts.map +1 -1
- package/dist/prompts/serde.d.ts +3 -4
- package/dist/prompts/serde.d.ts.map +1 -1
- package/dist/prompts/string.d.cts +1 -2
- package/dist/prompts/string.d.cts.map +1 -1
- package/dist/prompts/string.d.ts +1 -2
- package/dist/prompts/string.d.ts.map +1 -1
- package/dist/prompts/structured.d.cts +2 -3
- package/dist/prompts/structured.d.cts.map +1 -1
- package/dist/prompts/structured.d.ts +2 -3
- package/dist/prompts/structured.d.ts.map +1 -1
- package/dist/prompts/template.d.cts +12 -13
- package/dist/prompts/template.d.cts.map +1 -1
- package/dist/prompts/template.d.ts +12 -13
- package/dist/prompts/template.d.ts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.cts +1 -2
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.ts +1 -2
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
- package/dist/retrievers/index.d.cts +3 -4
- package/dist/retrievers/index.d.cts.map +1 -1
- package/dist/retrievers/index.d.ts +3 -4
- package/dist/retrievers/index.d.ts.map +1 -1
- package/dist/runnables/base.d.cts +23 -23
- package/dist/runnables/base.d.cts.map +1 -1
- package/dist/runnables/base.d.ts +23 -23
- package/dist/runnables/base.d.ts.map +1 -1
- package/dist/runnables/branch.d.cts +3 -4
- package/dist/runnables/branch.d.cts.map +1 -1
- package/dist/runnables/branch.d.ts +3 -4
- package/dist/runnables/branch.d.ts.map +1 -1
- package/dist/runnables/config.cjs +2 -1
- package/dist/runnables/config.cjs.map +1 -1
- package/dist/runnables/config.d.cts +6 -6
- package/dist/runnables/config.d.cts.map +1 -1
- package/dist/runnables/config.d.ts +6 -6
- package/dist/runnables/config.d.ts.map +1 -1
- package/dist/runnables/config.js +2 -1
- package/dist/runnables/config.js.map +1 -1
- package/dist/runnables/graph.d.cts +2 -2
- package/dist/runnables/graph.d.cts.map +1 -1
- package/dist/runnables/graph.d.ts +2 -2
- package/dist/runnables/graph.d.ts.map +1 -1
- package/dist/runnables/history.d.cts +2 -3
- package/dist/runnables/history.d.cts.map +1 -1
- package/dist/runnables/history.d.ts +2 -3
- package/dist/runnables/history.d.ts.map +1 -1
- package/dist/runnables/passthrough.d.cts +1 -2
- package/dist/runnables/passthrough.d.cts.map +1 -1
- package/dist/runnables/passthrough.d.ts +1 -2
- package/dist/runnables/passthrough.d.ts.map +1 -1
- package/dist/runnables/router.d.cts +2 -3
- package/dist/runnables/router.d.cts.map +1 -1
- package/dist/runnables/router.d.ts +2 -3
- package/dist/runnables/router.d.ts.map +1 -1
- package/dist/runnables/types.d.cts +6 -7
- package/dist/runnables/types.d.cts.map +1 -1
- package/dist/runnables/types.d.ts +6 -7
- package/dist/runnables/types.d.ts.map +1 -1
- package/dist/singletons/async_local_storage/context.d.cts +4 -5
- package/dist/singletons/async_local_storage/context.d.cts.map +1 -1
- package/dist/singletons/async_local_storage/context.d.ts +4 -5
- package/dist/singletons/async_local_storage/context.d.ts.map +1 -1
- package/dist/singletons/async_local_storage/globals.d.cts +2 -3
- package/dist/singletons/async_local_storage/globals.d.cts.map +1 -1
- package/dist/singletons/async_local_storage/globals.d.ts +2 -3
- package/dist/singletons/async_local_storage/globals.d.ts.map +1 -1
- package/dist/singletons/async_local_storage/index.d.cts +2 -2
- package/dist/singletons/async_local_storage/index.d.cts.map +1 -1
- package/dist/singletons/async_local_storage/index.d.ts +2 -2
- package/dist/singletons/async_local_storage/index.d.ts.map +1 -1
- package/dist/singletons/callbacks.d.cts +2 -3
- package/dist/singletons/callbacks.d.cts.map +1 -1
- package/dist/singletons/callbacks.d.ts +2 -3
- package/dist/singletons/callbacks.d.ts.map +1 -1
- package/dist/stores.d.cts +2 -3
- package/dist/stores.d.cts.map +1 -1
- package/dist/stores.d.ts +2 -3
- package/dist/stores.d.ts.map +1 -1
- package/dist/structured_query/base.d.cts +3 -4
- package/dist/structured_query/base.d.cts.map +1 -1
- package/dist/structured_query/base.d.ts +3 -4
- package/dist/structured_query/base.d.ts.map +1 -1
- package/dist/structured_query/functional.d.cts +2 -3
- package/dist/structured_query/functional.d.cts.map +1 -1
- package/dist/structured_query/functional.d.ts +2 -3
- package/dist/structured_query/functional.d.ts.map +1 -1
- package/dist/structured_query/ir.d.cts +23 -24
- package/dist/structured_query/ir.d.cts.map +1 -1
- package/dist/structured_query/ir.d.ts +23 -24
- package/dist/structured_query/ir.d.ts.map +1 -1
- package/dist/structured_query/utils.d.cts +7 -8
- package/dist/structured_query/utils.d.cts.map +1 -1
- package/dist/structured_query/utils.d.ts +7 -8
- package/dist/structured_query/utils.d.ts.map +1 -1
- package/dist/testing/fake_model_builder.d.cts +2 -3
- package/dist/testing/fake_model_builder.d.cts.map +1 -1
- package/dist/testing/fake_model_builder.d.ts +2 -3
- package/dist/testing/fake_model_builder.d.ts.map +1 -1
- package/dist/testing/index.d.cts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/matchers.d.cts +12 -13
- package/dist/testing/matchers.d.cts.map +1 -1
- package/dist/testing/matchers.d.ts +12 -13
- package/dist/testing/matchers.d.ts.map +1 -1
- package/dist/testing/vitest-expect.d.cts +8 -0
- package/dist/testing/vitest-expect.d.cts.map +1 -0
- package/dist/testing/vitest-expect.d.ts +8 -0
- package/dist/testing/vitest-expect.d.ts.map +1 -0
- package/dist/tools/index.d.cts +21 -21
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +21 -21
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/types.d.cts +25 -26
- package/dist/tools/types.d.cts.map +1 -1
- package/dist/tools/types.d.ts +25 -26
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/utils.d.cts +1 -2
- package/dist/tools/utils.d.cts.map +1 -1
- package/dist/tools/utils.d.ts +1 -2
- package/dist/tools/utils.d.ts.map +1 -1
- package/dist/tracers/base.cjs +7 -4
- package/dist/tracers/base.cjs.map +1 -1
- package/dist/tracers/base.d.cts +7 -8
- package/dist/tracers/base.d.cts.map +1 -1
- package/dist/tracers/base.d.ts +7 -8
- package/dist/tracers/base.d.ts.map +1 -1
- package/dist/tracers/base.js +7 -4
- package/dist/tracers/base.js.map +1 -1
- package/dist/tracers/console.d.cts +1 -2
- package/dist/tracers/console.d.cts.map +1 -1
- package/dist/tracers/console.d.ts +1 -2
- package/dist/tracers/console.d.ts.map +1 -1
- package/dist/tracers/event_stream.d.cts +3 -4
- package/dist/tracers/event_stream.d.cts.map +1 -1
- package/dist/tracers/event_stream.d.ts +3 -4
- package/dist/tracers/event_stream.d.ts.map +1 -1
- package/dist/tracers/log_stream.d.cts +9 -9
- package/dist/tracers/log_stream.d.cts.map +1 -1
- package/dist/tracers/log_stream.d.ts +9 -9
- package/dist/tracers/log_stream.d.ts.map +1 -1
- package/dist/tracers/run_collector.d.cts +1 -2
- package/dist/tracers/run_collector.d.cts.map +1 -1
- package/dist/tracers/run_collector.d.ts +1 -2
- package/dist/tracers/run_collector.d.ts.map +1 -1
- package/dist/tracers/tracer_langchain.d.cts +6 -7
- package/dist/tracers/tracer_langchain.d.cts.map +1 -1
- package/dist/tracers/tracer_langchain.d.ts +6 -7
- package/dist/tracers/tracer_langchain.d.ts.map +1 -1
- package/dist/types/_internal.d.cts +1 -2
- package/dist/types/_internal.d.cts.map +1 -1
- package/dist/types/_internal.d.ts +1 -2
- package/dist/types/_internal.d.ts.map +1 -1
- package/dist/types/type-utils.d.cts +2 -3
- package/dist/types/type-utils.d.cts.map +1 -1
- package/dist/types/type-utils.d.ts +2 -3
- package/dist/types/type-utils.d.ts.map +1 -1
- package/dist/utils/async_caller.d.cts +6 -7
- package/dist/utils/async_caller.d.cts.map +1 -1
- package/dist/utils/async_caller.d.ts +6 -7
- package/dist/utils/async_caller.d.ts.map +1 -1
- package/dist/utils/chunk_array.d.cts +1 -2
- package/dist/utils/chunk_array.d.cts.map +1 -1
- package/dist/utils/chunk_array.d.ts +1 -2
- package/dist/utils/chunk_array.d.ts.map +1 -1
- package/dist/utils/context.d.cts +1 -2
- package/dist/utils/context.d.cts.map +1 -1
- package/dist/utils/context.d.ts +1 -2
- package/dist/utils/context.d.ts.map +1 -1
- package/dist/utils/env.d.cts +9 -10
- package/dist/utils/env.d.cts.map +1 -1
- package/dist/utils/env.d.ts +9 -10
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/event_source_parse.d.cts +6 -7
- package/dist/utils/event_source_parse.d.cts.map +1 -1
- package/dist/utils/event_source_parse.d.ts +6 -7
- package/dist/utils/event_source_parse.d.ts.map +1 -1
- package/dist/utils/fast-json-patch/src/core.d.cts +13 -14
- package/dist/utils/fast-json-patch/src/core.d.cts.map +1 -1
- package/dist/utils/fast-json-patch/src/core.d.ts +13 -14
- package/dist/utils/fast-json-patch/src/core.d.ts.map +1 -1
- package/dist/utils/fast-json-patch/src/duplex.d.cts +1 -2
- package/dist/utils/fast-json-patch/src/duplex.d.cts.map +1 -1
- package/dist/utils/fast-json-patch/src/duplex.d.ts +1 -2
- package/dist/utils/fast-json-patch/src/duplex.d.ts.map +1 -1
- package/dist/utils/format.d.cts +2 -3
- package/dist/utils/format.d.cts.map +1 -1
- package/dist/utils/format.d.ts +2 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/function_calling.d.cts +3 -3
- package/dist/utils/function_calling.d.cts.map +1 -1
- package/dist/utils/function_calling.d.ts +3 -3
- package/dist/utils/function_calling.d.ts.map +1 -1
- package/dist/utils/gateway.d.cts +4 -5
- package/dist/utils/gateway.d.cts.map +1 -1
- package/dist/utils/gateway.d.ts +4 -5
- package/dist/utils/gateway.d.ts.map +1 -1
- package/dist/utils/hash.d.cts +2 -2
- package/dist/utils/hash.d.cts.map +1 -1
- package/dist/utils/hash.d.ts +2 -2
- package/dist/utils/hash.d.ts.map +1 -1
- package/dist/utils/js-sha256/hash.cjs +2 -2
- package/dist/utils/js-sha256/hash.cjs.map +1 -1
- package/dist/utils/js-sha256/hash.d.cts +1 -2
- package/dist/utils/js-sha256/hash.d.cts.map +1 -1
- package/dist/utils/js-sha256/hash.d.ts +1 -2
- package/dist/utils/js-sha256/hash.d.ts.map +1 -1
- package/dist/utils/js-sha256/hash.js +2 -2
- package/dist/utils/js-sha256/hash.js.map +1 -1
- package/dist/utils/json.d.cts +2 -3
- package/dist/utils/json.d.cts.map +1 -1
- package/dist/utils/json.d.ts +2 -3
- package/dist/utils/json.d.ts.map +1 -1
- package/dist/utils/json_schema.d.cts +4 -4
- package/dist/utils/json_schema.d.cts.map +1 -1
- package/dist/utils/json_schema.d.ts +4 -4
- package/dist/utils/json_schema.d.ts.map +1 -1
- package/dist/utils/math.d.cts +6 -7
- package/dist/utils/math.d.cts.map +1 -1
- package/dist/utils/math.d.ts +6 -7
- package/dist/utils/math.d.ts.map +1 -1
- package/dist/utils/ml-distance/similarities.d.cts +1 -2
- package/dist/utils/ml-distance/similarities.d.cts.map +1 -1
- package/dist/utils/ml-distance/similarities.d.ts +1 -2
- package/dist/utils/ml-distance/similarities.d.ts.map +1 -1
- package/dist/utils/namespace.cjs.map +1 -1
- package/dist/utils/namespace.d.cts +2 -3
- package/dist/utils/namespace.d.cts.map +1 -1
- package/dist/utils/namespace.d.ts +2 -3
- package/dist/utils/namespace.d.ts.map +1 -1
- package/dist/utils/namespace.js.map +1 -1
- package/dist/utils/signal.d.cts +1 -2
- package/dist/utils/signal.d.cts.map +1 -1
- package/dist/utils/signal.d.ts +1 -2
- package/dist/utils/signal.d.ts.map +1 -1
- package/dist/utils/ssrf.d.cts +6 -7
- package/dist/utils/ssrf.d.cts.map +1 -1
- package/dist/utils/ssrf.d.ts +6 -7
- package/dist/utils/ssrf.d.ts.map +1 -1
- package/dist/utils/standard_schema.d.cts +4 -5
- package/dist/utils/standard_schema.d.cts.map +1 -1
- package/dist/utils/standard_schema.d.ts +4 -5
- package/dist/utils/standard_schema.d.ts.map +1 -1
- package/dist/utils/stream.d.cts +6 -6
- package/dist/utils/stream.d.cts.map +1 -1
- package/dist/utils/stream.d.ts +6 -6
- package/dist/utils/stream.d.ts.map +1 -1
- package/dist/utils/testing/chat_models.d.cts +8 -9
- package/dist/utils/testing/chat_models.d.cts.map +1 -1
- package/dist/utils/testing/chat_models.d.ts +8 -9
- package/dist/utils/testing/chat_models.d.ts.map +1 -1
- package/dist/utils/testing/embeddings.d.cts +2 -3
- package/dist/utils/testing/embeddings.d.cts.map +1 -1
- package/dist/utils/testing/embeddings.d.ts +2 -3
- package/dist/utils/testing/embeddings.d.ts.map +1 -1
- package/dist/utils/testing/llms.d.cts +2 -3
- package/dist/utils/testing/llms.d.cts.map +1 -1
- package/dist/utils/testing/llms.d.ts +2 -3
- package/dist/utils/testing/llms.d.ts.map +1 -1
- package/dist/utils/testing/message_history.d.cts +3 -4
- package/dist/utils/testing/message_history.d.cts.map +1 -1
- package/dist/utils/testing/message_history.d.ts +3 -4
- package/dist/utils/testing/message_history.d.ts.map +1 -1
- package/dist/utils/testing/openai_stream_fixtures.d.cts +6 -7
- package/dist/utils/testing/openai_stream_fixtures.d.cts.map +1 -1
- package/dist/utils/testing/openai_stream_fixtures.d.ts +6 -7
- package/dist/utils/testing/openai_stream_fixtures.d.ts.map +1 -1
- package/dist/utils/testing/output_parsers.d.cts +1 -2
- package/dist/utils/testing/output_parsers.d.cts.map +1 -1
- package/dist/utils/testing/output_parsers.d.ts +1 -2
- package/dist/utils/testing/output_parsers.d.ts.map +1 -1
- package/dist/utils/testing/retrievers.d.cts +1 -2
- package/dist/utils/testing/retrievers.d.cts.map +1 -1
- package/dist/utils/testing/retrievers.d.ts +1 -2
- package/dist/utils/testing/retrievers.d.ts.map +1 -1
- package/dist/utils/testing/runnables.d.cts +1 -2
- package/dist/utils/testing/runnables.d.cts.map +1 -1
- package/dist/utils/testing/runnables.d.ts +1 -2
- package/dist/utils/testing/runnables.d.ts.map +1 -1
- package/dist/utils/testing/stream.d.cts +10 -11
- package/dist/utils/testing/stream.d.cts.map +1 -1
- package/dist/utils/testing/stream.d.ts +10 -11
- package/dist/utils/testing/stream.d.ts.map +1 -1
- package/dist/utils/testing/tools.d.cts +2 -3
- package/dist/utils/testing/tools.d.cts.map +1 -1
- package/dist/utils/testing/tools.d.ts +2 -3
- package/dist/utils/testing/tools.d.ts.map +1 -1
- package/dist/utils/testing/tracers.d.cts +1 -2
- package/dist/utils/testing/tracers.d.cts.map +1 -1
- package/dist/utils/testing/tracers.d.ts +1 -2
- package/dist/utils/testing/tracers.d.ts.map +1 -1
- package/dist/utils/testing/vectorstores.d.cts +2 -3
- package/dist/utils/testing/vectorstores.d.cts.map +1 -1
- package/dist/utils/testing/vectorstores.d.ts +2 -3
- package/dist/utils/testing/vectorstores.d.ts.map +1 -1
- package/dist/utils/tiktoken.d.cts +2 -3
- package/dist/utils/tiktoken.d.cts.map +1 -1
- package/dist/utils/tiktoken.d.ts +2 -3
- package/dist/utils/tiktoken.d.ts.map +1 -1
- package/dist/utils/types/index.d.cts +5 -5
- package/dist/utils/types/index.d.cts.map +1 -1
- package/dist/utils/types/index.d.ts +5 -5
- package/dist/utils/types/index.d.ts.map +1 -1
- package/dist/utils/types/zod.d.cts +62 -63
- package/dist/utils/types/zod.d.cts.map +1 -1
- package/dist/utils/types/zod.d.ts +62 -63
- package/dist/utils/types/zod.d.ts.map +1 -1
- package/dist/utils/uuid/index.d.cts +12 -12
- package/dist/utils/uuid/index.d.cts.map +1 -1
- package/dist/utils/uuid/index.d.ts +12 -12
- package/dist/utils/uuid/index.d.ts.map +1 -1
- package/dist/utils/uuid/types.d.cts +6 -7
- package/dist/utils/uuid/types.d.cts.map +1 -1
- package/dist/utils/uuid/types.d.ts +6 -7
- package/dist/utils/uuid/types.d.ts.map +1 -1
- package/dist/utils/uuid/v35.d.cts +2 -3
- package/dist/utils/uuid/v35.d.cts.map +1 -1
- package/dist/utils/uuid/v35.d.ts +2 -3
- package/dist/utils/uuid/v35.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/errorMessages.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/errorMessages.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/errorMessages.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/errorMessages.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parseTypes.d.cts +2 -3
- package/dist/utils/zod-to-json-schema/parseTypes.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parseTypes.d.ts +2 -3
- package/dist/utils/zod-to-json-schema/parseTypes.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/any.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/any.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/any.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/any.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/array.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/array.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/array.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/array.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/boolean.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/boolean.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/boolean.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/boolean.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/date.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/date.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/date.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/date.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/enum.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/enum.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/enum.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/enum.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/literal.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/literal.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/literal.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/literal.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/map.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/map.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/map.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/map.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/never.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/never.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/never.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/never.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/null.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/null.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/null.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/null.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/number.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/number.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/number.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/number.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/object.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/object.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/object.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/object.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/record.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/record.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/record.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/record.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/set.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/set.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/set.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/set.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/string.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/string.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/string.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/string.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/union.d.cts +2 -3
- package/dist/utils/zod-to-json-schema/parsers/union.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/union.d.ts +2 -3
- package/dist/utils/zod-to-json-schema/parsers/union.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts.map +1 -1
- package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +1 -2
- package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts.map +1 -1
- package/dist/vectorstores.d.cts +8 -9
- package/dist/vectorstores.d.cts.map +1 -1
- package/dist/vectorstores.d.ts +8 -9
- package/dist/vectorstores.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/index.ts"],"mappings":";;qBAWa,iCAAiC;EAC5C;EAIA,IAAI,GAAG,aAAa,gBAAgB,IAAI;EAIxC,UAAU;;cASN;EACJ,eAAe;EAIf;EAQA,cAAc,GACZ,aACA,gBAAgB,GAChB,qCACC;EA4CH,yBAAyB,UAAU;;cAO/B,oCAAkC"}
|
|
@@ -5,12 +5,11 @@ import "p-queue";
|
|
|
5
5
|
* @param promiseFn Promise to consume
|
|
6
6
|
* @param wait Whether to wait for the promise to resolve or resolve immediately
|
|
7
7
|
*/
|
|
8
|
-
declare function consumeCallback<T>(promiseFn: () => Promise<T> | T | void, wait: boolean): Promise<void>;
|
|
8
|
+
export declare function consumeCallback<T>(promiseFn: () => Promise<T> | T | void, wait: boolean): Promise<void>;
|
|
9
9
|
/**
|
|
10
10
|
* Waits for all promises in the queue to resolve. If the queue is
|
|
11
11
|
* undefined, it immediately resolves a promise.
|
|
12
12
|
*/
|
|
13
|
-
declare function awaitAllCallbacks(): Promise<void>;
|
|
13
|
+
export declare function awaitAllCallbacks(): Promise<void>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { awaitAllCallbacks, consumeCallback };
|
|
16
15
|
//# sourceMappingURL=callbacks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbacks.d.cts","names":[],"sources":["../../src/singletons/callbacks.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"callbacks.d.cts","names":[],"sources":["../../src/singletons/callbacks.ts"],"mappings":";;;;;;;wBAiCsB,gBAAgB,GACpC,iBAAiB,QAAQ,KAAK,UAC9B,gBACC;;;;;wBA4BmB,qBAAqB"}
|
|
@@ -5,12 +5,11 @@ import PQueueMod from "p-queue";
|
|
|
5
5
|
* @param promiseFn Promise to consume
|
|
6
6
|
* @param wait Whether to wait for the promise to resolve or resolve immediately
|
|
7
7
|
*/
|
|
8
|
-
declare function consumeCallback<T>(promiseFn: () => Promise<T> | T | void, wait: boolean): Promise<void>;
|
|
8
|
+
export declare function consumeCallback<T>(promiseFn: () => Promise<T> | T | void, wait: boolean): Promise<void>;
|
|
9
9
|
/**
|
|
10
10
|
* Waits for all promises in the queue to resolve. If the queue is
|
|
11
11
|
* undefined, it immediately resolves a promise.
|
|
12
12
|
*/
|
|
13
|
-
declare function awaitAllCallbacks(): Promise<void>;
|
|
13
|
+
export declare function awaitAllCallbacks(): Promise<void>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { awaitAllCallbacks, consumeCallback };
|
|
16
15
|
//# sourceMappingURL=callbacks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbacks.d.ts","names":[],"sources":["../../src/singletons/callbacks.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"callbacks.d.ts","names":[],"sources":["../../src/singletons/callbacks.ts"],"mappings":";;;;;;;wBAiCsB,gBAAgB,GACpC,iBAAiB,QAAQ,KAAK,UAC9B,gBACC;;;;;wBA4BmB,qBAAqB"}
|
package/dist/stores.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Serializable } from "./load/serializable.cjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstract interface for a key-value store.
|
|
5
5
|
*/
|
|
6
|
-
declare abstract class BaseStore<K, V> extends Serializable {
|
|
6
|
+
export declare abstract class BaseStore<K, V> extends Serializable {
|
|
7
7
|
/**
|
|
8
8
|
* Abstract method to get multiple values for a set of keys.
|
|
9
9
|
* @param {K[]} keys - An array of keys.
|
|
@@ -48,7 +48,7 @@ declare abstract class BaseStore<K, V> extends Serializable {
|
|
|
48
48
|
* await store.mdelete(await store.yieldKeys("message:id:").toArray());
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
51
|
+
export declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
52
52
|
lc_namespace: string[];
|
|
53
53
|
protected store: Record<string, T>;
|
|
54
54
|
/**
|
|
@@ -78,5 +78,4 @@ declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
|
78
78
|
yieldKeys(prefix?: string | undefined): AsyncGenerator<string>;
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { BaseStore, InMemoryStore };
|
|
82
81
|
//# sourceMappingURL=stores.d.cts.map
|
package/dist/stores.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.d.cts","names":[],"sources":["../src/stores.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"stores.d.cts","names":[],"sources":["../src/stores.ts"],"mappings":";;;;;8BAKsB,UAAU,GAAG,WAAW;;;;;;WAMnC,KAAK,MAAM,MAAM,SAAS;;;;;;WAO1B,KAAK,gBAAgB,GAAG,OAAO;;;;;;WAO/B,QAAQ,MAAM,MAAM;;;;;;WAOpB,UAAU,kBAAkB,eAAe;;;;;;;;;;;;;;;;;;;;;qBAuBzC,cAAc,iBAAiB,kBAAkB;EAC5D;YAEU,OAAO,eAAe;;;;;;EAO1B,KAAK,iBAAc,QAAA;;;;;;EASnB,KAAK,wBAAwB,OAAO;;;;;;EAWpC,QAAQ,iBAAiB;;;;;;;EAYxB,UAAU,8BAA8B"}
|
package/dist/stores.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Serializable } from "./load/serializable.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Abstract interface for a key-value store.
|
|
5
5
|
*/
|
|
6
|
-
declare abstract class BaseStore<K, V> extends Serializable {
|
|
6
|
+
export declare abstract class BaseStore<K, V> extends Serializable {
|
|
7
7
|
/**
|
|
8
8
|
* Abstract method to get multiple values for a set of keys.
|
|
9
9
|
* @param {K[]} keys - An array of keys.
|
|
@@ -48,7 +48,7 @@ declare abstract class BaseStore<K, V> extends Serializable {
|
|
|
48
48
|
* await store.mdelete(await store.yieldKeys("message:id:").toArray());
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
51
|
+
export declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
52
52
|
lc_namespace: string[];
|
|
53
53
|
protected store: Record<string, T>;
|
|
54
54
|
/**
|
|
@@ -78,5 +78,4 @@ declare class InMemoryStore<T = any> extends BaseStore<string, T> {
|
|
|
78
78
|
yieldKeys(prefix?: string | undefined): AsyncGenerator<string>;
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { BaseStore, InMemoryStore };
|
|
82
81
|
//# sourceMappingURL=stores.d.ts.map
|
package/dist/stores.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.d.ts","names":[],"sources":["../src/stores.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"stores.d.ts","names":[],"sources":["../src/stores.ts"],"mappings":";;;;;8BAKsB,UAAU,GAAG,WAAW;;;;;;WAMnC,KAAK,MAAM,MAAM,SAAS;;;;;;WAO1B,KAAK,gBAAgB,GAAG,OAAO;;;;;;WAO/B,QAAQ,MAAM,MAAM;;;;;;WAOpB,UAAU,kBAAkB,eAAe;;;;;;;;;;;;;;;;;;;;;qBAuBzC,cAAc,iBAAiB,kBAAkB;EAC5D;YAEU,OAAO,eAAe;;;;;;EAO1B,KAAK,iBAAc,QAAA;;;;;;EASnB,KAAK,wBAAwB,OAAO;;;;;;EAWpC,QAAQ,iBAAiB;;;;;;;EAYxB,UAAU,8BAA8B"}
|
|
@@ -5,7 +5,7 @@ import { Comparator, Comparison, Operation, Operator, StructuredQuery, Visitor,
|
|
|
5
5
|
* Options object for the BasicTranslator class. Specifies the allowed
|
|
6
6
|
* operators and comparators.
|
|
7
7
|
*/
|
|
8
|
-
type TranslatorOpts = {
|
|
8
|
+
export type TranslatorOpts = {
|
|
9
9
|
allowedOperators: Operator[];
|
|
10
10
|
allowedComparators: Comparator[];
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ type TranslatorOpts = {
|
|
|
14
14
|
* translator classes. Defines two abstract methods: formatFunction and
|
|
15
15
|
* mergeFilters.
|
|
16
16
|
*/
|
|
17
|
-
declare abstract class BaseTranslator<T extends VectorStore = VectorStore> extends Visitor<T> {
|
|
17
|
+
export declare abstract class BaseTranslator<T extends VectorStore = VectorStore> extends Visitor<T> {
|
|
18
18
|
/**
|
|
19
19
|
* Formats a given function (either an operator or a comparator) into a
|
|
20
20
|
* string.
|
|
@@ -40,7 +40,7 @@ declare abstract class BaseTranslator<T extends VectorStore = VectorStore> exten
|
|
|
40
40
|
* visitOperation, visitComparison, and visitStructuredQuery methods
|
|
41
41
|
* respectively.
|
|
42
42
|
*/
|
|
43
|
-
declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseTranslator<T> {
|
|
43
|
+
export declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseTranslator<T> {
|
|
44
44
|
VisitOperationOutput: VisitorOperationResult;
|
|
45
45
|
VisitComparisonOutput: VisitorComparisonResult;
|
|
46
46
|
VisitStructuredQueryOutput: VisitorStructuredQueryResult;
|
|
@@ -69,5 +69,4 @@ declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseT
|
|
|
69
69
|
mergeFilters(defaultFilter: VisitorStructuredQueryResult["filter"] | undefined, generatedFilter: VisitorStructuredQueryResult["filter"] | undefined, mergeType?: string, forceDefaultFilter?: boolean): VisitorStructuredQueryResult["filter"] | undefined;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
export { BaseTranslator, BasicTranslator, TranslatorOpts };
|
|
73
72
|
//# sourceMappingURL=base.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/structured_query/base.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/structured_query/base.ts"],"mappings":";;;;;;;YAqBY;EACV,kBAAkB;EAClB,oBAAoB;;;;;;;8BAQA,eACpB,UAAU,cAAc,qBAChB,QAAQ;;;;;;;WAOP,eAAe,MAAM,WAAW;;;;;;;;;WAUhC,aACP,yEACA,2EACA,sCACA;;;;;;;;;;qBAYS,gBACX,UAAU,cAAc,qBAChB,eAAe;EACf,sBAAsB;EAEtB,uBAAuB;EAEvB,4BAA4B;EAEpC,kBAAkB;EAElB,oBAAoB;EAEpB,YAAY,OAAO;EAgBnB,eAAe,MAAM,WAAW;;;;;;EAkChC,eAAe,WAAW;;;;;;EAc1B,gBAAgB,YAAY;;;;;;EAe5B,qBACE,OAAO;EAWT,aACE,eAAe,oDACf,iBAAiB,oDACjB,oBACA,+BACC"}
|
|
@@ -5,7 +5,7 @@ import { Comparator, Comparison, Operation, Operator, StructuredQuery, Visitor,
|
|
|
5
5
|
* Options object for the BasicTranslator class. Specifies the allowed
|
|
6
6
|
* operators and comparators.
|
|
7
7
|
*/
|
|
8
|
-
type TranslatorOpts = {
|
|
8
|
+
export type TranslatorOpts = {
|
|
9
9
|
allowedOperators: Operator[];
|
|
10
10
|
allowedComparators: Comparator[];
|
|
11
11
|
};
|
|
@@ -14,7 +14,7 @@ type TranslatorOpts = {
|
|
|
14
14
|
* translator classes. Defines two abstract methods: formatFunction and
|
|
15
15
|
* mergeFilters.
|
|
16
16
|
*/
|
|
17
|
-
declare abstract class BaseTranslator<T extends VectorStore = VectorStore> extends Visitor<T> {
|
|
17
|
+
export declare abstract class BaseTranslator<T extends VectorStore = VectorStore> extends Visitor<T> {
|
|
18
18
|
/**
|
|
19
19
|
* Formats a given function (either an operator or a comparator) into a
|
|
20
20
|
* string.
|
|
@@ -40,7 +40,7 @@ declare abstract class BaseTranslator<T extends VectorStore = VectorStore> exten
|
|
|
40
40
|
* visitOperation, visitComparison, and visitStructuredQuery methods
|
|
41
41
|
* respectively.
|
|
42
42
|
*/
|
|
43
|
-
declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseTranslator<T> {
|
|
43
|
+
export declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseTranslator<T> {
|
|
44
44
|
VisitOperationOutput: VisitorOperationResult;
|
|
45
45
|
VisitComparisonOutput: VisitorComparisonResult;
|
|
46
46
|
VisitStructuredQueryOutput: VisitorStructuredQueryResult;
|
|
@@ -69,5 +69,4 @@ declare class BasicTranslator<T extends VectorStore = VectorStore> extends BaseT
|
|
|
69
69
|
mergeFilters(defaultFilter: VisitorStructuredQueryResult["filter"] | undefined, generatedFilter: VisitorStructuredQueryResult["filter"] | undefined, mergeType?: string, forceDefaultFilter?: boolean): VisitorStructuredQueryResult["filter"] | undefined;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
export { BaseTranslator, BasicTranslator, TranslatorOpts };
|
|
73
72
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","names":[],"sources":["../../src/structured_query/base.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"base.d.ts","names":[],"sources":["../../src/structured_query/base.ts"],"mappings":";;;;;;;YAqBY;EACV,kBAAkB;EAClB,oBAAoB;;;;;;;8BAQA,eACpB,UAAU,cAAc,qBAChB,QAAQ;;;;;;;WAOP,eAAe,MAAM,WAAW;;;;;;;;;WAUhC,aACP,yEACA,2EACA,sCACA;;;;;;;;;;qBAYS,gBACX,UAAU,cAAc,qBAChB,eAAe;EACf,sBAAsB;EAEtB,uBAAuB;EAEvB,4BAA4B;EAEpC,kBAAkB;EAElB,oBAAoB;EAEpB,YAAY,OAAO;EAgBnB,eAAe,MAAM,WAAW;;;;;;EAkChC,eAAe,WAAW;;;;;;EAc1B,gBAAgB,YAAY;;;;;;EAe5B,qBACE,OAAO;EAWT,aACE,eAAe,oDACf,iBAAiB,oDACjB,oBACA,+BACC"}
|
|
@@ -19,7 +19,7 @@ type ValueType = {
|
|
|
19
19
|
* A type alias for a function that takes a `Document` as an argument and
|
|
20
20
|
* returns a boolean. This function is used as a filter for documents.
|
|
21
21
|
*/
|
|
22
|
-
type FunctionFilter = (document: Document) => boolean;
|
|
22
|
+
export type FunctionFilter = (document: Document) => boolean;
|
|
23
23
|
/**
|
|
24
24
|
* A class that extends `BaseTranslator` to translate structured queries
|
|
25
25
|
* into functional filters.
|
|
@@ -31,7 +31,7 @@ type FunctionFilter = (document: Document) => boolean;
|
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
declare class FunctionalTranslator extends BaseTranslator {
|
|
34
|
+
export declare class FunctionalTranslator extends BaseTranslator {
|
|
35
35
|
VisitOperationOutput: FunctionFilter;
|
|
36
36
|
VisitComparisonOutput: FunctionFilter;
|
|
37
37
|
VisitStructuredQueryOutput: {
|
|
@@ -92,5 +92,4 @@ declare class FunctionalTranslator extends BaseTranslator {
|
|
|
92
92
|
mergeFilters(defaultFilter: FunctionFilter, generatedFilter: FunctionFilter, mergeType?: string): FunctionFilter | undefined;
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
95
|
-
export { FunctionFilter, FunctionalTranslator };
|
|
96
95
|
//# sourceMappingURL=functional.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functional.d.cts","names":[],"sources":["../../src/structured_query/functional.ts"],"mappings":";;;;;;;;;KAkBK;EACH;EACA;EACA;EACA;EACA;EACA;;;;;;
|
|
1
|
+
{"version":3,"file":"functional.d.cts","names":[],"sources":["../../src/structured_query/functional.ts"],"mappings":";;;;;;;;;KAkBK;EACH;EACA;EACA;EACA;EACA;EACA;;;;;;YAOU,kBAAkB,UAAU;;;;;;;;;;;;qBAa3B,6BAA6B;EAChC,sBAAsB;EAEtB,uBAAuB;EAEvB;IACF,QAAQ;;KACP;;EAEP,kBAAkB;EAElB,oBAAoB;EASpB;;;;;;EASA,6BAA6B,oBAAoB;;;;;;;EAqCjD,sBAAsB,UAAU,YAC9B,YAAY,cACV,oBAAoB,GAAG,UAAU;;;;;;;EAgCrC,oBAAoB,UAAU,YAAY,YAAY;;;;;;;EAoBtD,eAAe,WAAW;;;;;;;EA6B1B,gBACE,YAAY;;;;;;EAiCd,qBACE,OAAO;;;;;;;;EAmBT,aACE,eAAe,gBACf,iBAAiB,gBACjB,qBACC"}
|
|
@@ -19,7 +19,7 @@ type ValueType = {
|
|
|
19
19
|
* A type alias for a function that takes a `Document` as an argument and
|
|
20
20
|
* returns a boolean. This function is used as a filter for documents.
|
|
21
21
|
*/
|
|
22
|
-
type FunctionFilter = (document: Document) => boolean;
|
|
22
|
+
export type FunctionFilter = (document: Document) => boolean;
|
|
23
23
|
/**
|
|
24
24
|
* A class that extends `BaseTranslator` to translate structured queries
|
|
25
25
|
* into functional filters.
|
|
@@ -31,7 +31,7 @@ type FunctionFilter = (document: Document) => boolean;
|
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
declare class FunctionalTranslator extends BaseTranslator {
|
|
34
|
+
export declare class FunctionalTranslator extends BaseTranslator {
|
|
35
35
|
VisitOperationOutput: FunctionFilter;
|
|
36
36
|
VisitComparisonOutput: FunctionFilter;
|
|
37
37
|
VisitStructuredQueryOutput: {
|
|
@@ -92,5 +92,4 @@ declare class FunctionalTranslator extends BaseTranslator {
|
|
|
92
92
|
mergeFilters(defaultFilter: FunctionFilter, generatedFilter: FunctionFilter, mergeType?: string): FunctionFilter | undefined;
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
95
|
-
export { FunctionFilter, FunctionalTranslator };
|
|
96
95
|
//# sourceMappingURL=functional.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functional.d.ts","names":[],"sources":["../../src/structured_query/functional.ts"],"mappings":";;;;;;;;;KAkBK;EACH;EACA;EACA;EACA;EACA;EACA;;;;;;
|
|
1
|
+
{"version":3,"file":"functional.d.ts","names":[],"sources":["../../src/structured_query/functional.ts"],"mappings":";;;;;;;;;KAkBK;EACH;EACA;EACA;EACA;EACA;EACA;;;;;;YAOU,kBAAkB,UAAU;;;;;;;;;;;;qBAa3B,6BAA6B;EAChC,sBAAsB;EAEtB,uBAAuB;EAEvB;IACF,QAAQ;;KACP;;EAEP,kBAAkB;EAElB,oBAAoB;EASpB;;;;;;EASA,6BAA6B,oBAAoB;;;;;;;EAqCjD,sBAAsB,UAAU,YAC9B,YAAY,cACV,oBAAoB,GAAG,UAAU;;;;;;;EAgCrC,oBAAoB,UAAU,YAAY,YAAY;;;;;;;EAoBtD,eAAe,WAAW;;;;;;;EA6B1B,gBACE,YAAY;;;;;;EAiCd,qBACE,OAAO;;;;;;;;EAmBT,aACE,eAAe,gBACf,iBAAiB,gBACjB,qBACC"}
|
|
@@ -3,69 +3,69 @@ import { VectorStore } from "../vectorstores.cjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents logical AND operator.
|
|
5
5
|
*/
|
|
6
|
-
type AND = "and";
|
|
6
|
+
export type AND = "and";
|
|
7
7
|
/**
|
|
8
8
|
* Represents logical OR operator.
|
|
9
9
|
*/
|
|
10
|
-
type OR = "or";
|
|
10
|
+
export type OR = "or";
|
|
11
11
|
/**
|
|
12
12
|
* Represents logical NOT operator.
|
|
13
13
|
*/
|
|
14
|
-
type NOT = "not";
|
|
14
|
+
export type NOT = "not";
|
|
15
15
|
/**
|
|
16
16
|
* Represents a logical operator which can be AND, OR, or NOT.
|
|
17
17
|
*/
|
|
18
|
-
type Operator = AND | OR | NOT;
|
|
18
|
+
export type Operator = AND | OR | NOT;
|
|
19
19
|
/**
|
|
20
20
|
* Represents equality comparison operator.
|
|
21
21
|
*/
|
|
22
|
-
type EQ = "eq";
|
|
22
|
+
export type EQ = "eq";
|
|
23
23
|
/**
|
|
24
24
|
* Represents inequality comparison operator.
|
|
25
25
|
*/
|
|
26
|
-
type NE = "ne";
|
|
26
|
+
export type NE = "ne";
|
|
27
27
|
/**
|
|
28
28
|
* Represents less than comparison operator.
|
|
29
29
|
*/
|
|
30
|
-
type LT = "lt";
|
|
30
|
+
export type LT = "lt";
|
|
31
31
|
/**
|
|
32
32
|
* Represents greater than comparison operator.
|
|
33
33
|
*/
|
|
34
|
-
type GT = "gt";
|
|
34
|
+
export type GT = "gt";
|
|
35
35
|
/**
|
|
36
36
|
* Represents less than or equal to comparison operator.
|
|
37
37
|
*/
|
|
38
|
-
type LTE = "lte";
|
|
38
|
+
export type LTE = "lte";
|
|
39
39
|
/**
|
|
40
40
|
* Represents greater than or equal to comparison operator.
|
|
41
41
|
*/
|
|
42
|
-
type GTE = "gte";
|
|
42
|
+
export type GTE = "gte";
|
|
43
43
|
/**
|
|
44
44
|
* Represents a comparison operator which can be EQ, NE, LT, GT, LTE, or
|
|
45
45
|
* GTE.
|
|
46
46
|
*/
|
|
47
|
-
type Comparator = EQ | NE | LT | GT | LTE | GTE;
|
|
48
|
-
declare const Operators: {
|
|
47
|
+
export type Comparator = EQ | NE | LT | GT | LTE | GTE;
|
|
48
|
+
export declare const Operators: {
|
|
49
49
|
[key: string]: Operator;
|
|
50
50
|
};
|
|
51
|
-
declare const Comparators: {
|
|
51
|
+
export declare const Comparators: {
|
|
52
52
|
[key: string]: Comparator;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* Represents the result of visiting an operation or comparison
|
|
56
56
|
* expression.
|
|
57
57
|
*/
|
|
58
|
-
type VisitorResult = VisitorOperationResult | VisitorComparisonResult;
|
|
58
|
+
export type VisitorResult = VisitorOperationResult | VisitorComparisonResult;
|
|
59
59
|
/**
|
|
60
60
|
* Represents the result of visiting an operation expression.
|
|
61
61
|
*/
|
|
62
|
-
type VisitorOperationResult = {
|
|
62
|
+
export type VisitorOperationResult = {
|
|
63
63
|
[operator: string]: VisitorResult[];
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Represents the result of visiting a comparison expression.
|
|
67
67
|
*/
|
|
68
|
-
type VisitorComparisonResult = {
|
|
68
|
+
export type VisitorComparisonResult = {
|
|
69
69
|
[attr: string]: {
|
|
70
70
|
[comparator: string]: string | number | boolean;
|
|
71
71
|
};
|
|
@@ -73,14 +73,14 @@ type VisitorComparisonResult = {
|
|
|
73
73
|
/**
|
|
74
74
|
* Represents the result of visiting a structured query expression.
|
|
75
75
|
*/
|
|
76
|
-
type VisitorStructuredQueryResult = {
|
|
76
|
+
export type VisitorStructuredQueryResult = {
|
|
77
77
|
filter?: VisitorComparisonResult | VisitorOperationResult;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* Abstract class for visiting expressions. Subclasses must implement
|
|
81
81
|
* visitOperation, visitComparison, and visitStructuredQuery methods.
|
|
82
82
|
*/
|
|
83
|
-
declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
83
|
+
export declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
84
84
|
VisitOperationOutput: object;
|
|
85
85
|
VisitComparisonOutput: object;
|
|
86
86
|
VisitStructuredQueryOutput: {
|
|
@@ -96,7 +96,7 @@ declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
|
96
96
|
* Abstract class representing an expression. Subclasses must implement
|
|
97
97
|
* the exprName property and the accept method.
|
|
98
98
|
*/
|
|
99
|
-
declare abstract class Expression {
|
|
99
|
+
export declare abstract class Expression {
|
|
100
100
|
abstract exprName: "Operation" | "Comparison" | "StructuredQuery";
|
|
101
101
|
accept(visitor: Visitor): object;
|
|
102
102
|
}
|
|
@@ -104,12 +104,12 @@ declare abstract class Expression {
|
|
|
104
104
|
* Abstract class representing a filter directive. It extends the
|
|
105
105
|
* Expression class.
|
|
106
106
|
*/
|
|
107
|
-
declare abstract class FilterDirective extends Expression {}
|
|
107
|
+
export declare abstract class FilterDirective extends Expression {}
|
|
108
108
|
/**
|
|
109
109
|
* Class representing a comparison filter directive. It extends the
|
|
110
110
|
* FilterDirective class.
|
|
111
111
|
*/
|
|
112
|
-
declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
112
|
+
export declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
113
113
|
comparator: Comparator;
|
|
114
114
|
attribute: string;
|
|
115
115
|
value: ValueTypes;
|
|
@@ -120,7 +120,7 @@ declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
|
120
120
|
* Class representing an operation filter directive. It extends the
|
|
121
121
|
* FilterDirective class.
|
|
122
122
|
*/
|
|
123
|
-
declare class Operation extends FilterDirective {
|
|
123
|
+
export declare class Operation extends FilterDirective {
|
|
124
124
|
operator: Operator;
|
|
125
125
|
args?: FilterDirective[] | undefined;
|
|
126
126
|
exprName: "Operation";
|
|
@@ -130,12 +130,11 @@ declare class Operation extends FilterDirective {
|
|
|
130
130
|
* Class representing a structured query expression. It extends the
|
|
131
131
|
* Expression class.
|
|
132
132
|
*/
|
|
133
|
-
declare class StructuredQuery extends Expression {
|
|
133
|
+
export declare class StructuredQuery extends Expression {
|
|
134
134
|
query: string;
|
|
135
135
|
filter?: FilterDirective | undefined;
|
|
136
136
|
exprName: "StructuredQuery";
|
|
137
137
|
constructor(query: string, filter?: FilterDirective | undefined);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
|
-
export { AND, Comparator, Comparators, Comparison, EQ, Expression, FilterDirective, GT, GTE, LT, LTE, NE, NOT, OR, Operation, Operator, Operators, StructuredQuery, Visitor, VisitorComparisonResult, VisitorOperationResult, VisitorResult, VisitorStructuredQueryResult };
|
|
141
140
|
//# sourceMappingURL=ir.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir.d.cts","names":[],"sources":["../../src/structured_query/ir.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ir.d.cts","names":[],"sources":["../../src/structured_query/ir.ts"],"mappings":";;;;;YAKY;;;;YAIA;;;;YAIA;;;;YAKA,WAAW,MAAM,KAAK;;;;YAKtB;;;;YAIA;;;;YAIA;;;;YAIA;;;;YAIA;;;;YAIA;;;;;YAMA,aAAa,KAAK,KAAK,KAAK,KAAK,MAAM;qBAEtC;GAAc,cAAc;;qBAM5B;GAAgB,cAAc;;;;;;YAa/B,gBAAgB,yBAAyB;;;;YAKzC;GACT,mBAAmB;;;;;YAMV;GACT;KACE;;;;;;YAOO;EACV,SAAS,0BAA0B;;;;;;8BAOf,QAAQ,UAAU,cAAc;EAC5C;EAEA;EAEA;IAA8B,SAAS;;WAEtC,kBAAkB;WAElB,oBAAoB;WAEpB,eAAe,WAAW;WAE1B,gBACP,YAAY;WAGL,qBACP,iBAAiB;;;;;;8BAQC;WACX;EAET,OAAO,SAAS;;;;;;8BAiBI,wBAAwB;;;;;qBAMjC,WAAW,sCAAsC;EAInD,YAAY;EACZ;EACA,OAAO;EALhB;EAEA,YACS,YAAY,YACZ,mBACA,OAAO;;;;;;qBAUL,kBAAkB;EAIpB,UAAU;EACV,OAAO;EAJhB;EAEA,YACS,UAAU,UACV,OAAO;;;;;;qBAUL,wBAAwB;EAI1B;EACA,SAAS;EAJlB;EAEA,YACS,eACA,SAAS"}
|
|
@@ -3,69 +3,69 @@ import { VectorStore } from "../vectorstores.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents logical AND operator.
|
|
5
5
|
*/
|
|
6
|
-
type AND = "and";
|
|
6
|
+
export type AND = "and";
|
|
7
7
|
/**
|
|
8
8
|
* Represents logical OR operator.
|
|
9
9
|
*/
|
|
10
|
-
type OR = "or";
|
|
10
|
+
export type OR = "or";
|
|
11
11
|
/**
|
|
12
12
|
* Represents logical NOT operator.
|
|
13
13
|
*/
|
|
14
|
-
type NOT = "not";
|
|
14
|
+
export type NOT = "not";
|
|
15
15
|
/**
|
|
16
16
|
* Represents a logical operator which can be AND, OR, or NOT.
|
|
17
17
|
*/
|
|
18
|
-
type Operator = AND | OR | NOT;
|
|
18
|
+
export type Operator = AND | OR | NOT;
|
|
19
19
|
/**
|
|
20
20
|
* Represents equality comparison operator.
|
|
21
21
|
*/
|
|
22
|
-
type EQ = "eq";
|
|
22
|
+
export type EQ = "eq";
|
|
23
23
|
/**
|
|
24
24
|
* Represents inequality comparison operator.
|
|
25
25
|
*/
|
|
26
|
-
type NE = "ne";
|
|
26
|
+
export type NE = "ne";
|
|
27
27
|
/**
|
|
28
28
|
* Represents less than comparison operator.
|
|
29
29
|
*/
|
|
30
|
-
type LT = "lt";
|
|
30
|
+
export type LT = "lt";
|
|
31
31
|
/**
|
|
32
32
|
* Represents greater than comparison operator.
|
|
33
33
|
*/
|
|
34
|
-
type GT = "gt";
|
|
34
|
+
export type GT = "gt";
|
|
35
35
|
/**
|
|
36
36
|
* Represents less than or equal to comparison operator.
|
|
37
37
|
*/
|
|
38
|
-
type LTE = "lte";
|
|
38
|
+
export type LTE = "lte";
|
|
39
39
|
/**
|
|
40
40
|
* Represents greater than or equal to comparison operator.
|
|
41
41
|
*/
|
|
42
|
-
type GTE = "gte";
|
|
42
|
+
export type GTE = "gte";
|
|
43
43
|
/**
|
|
44
44
|
* Represents a comparison operator which can be EQ, NE, LT, GT, LTE, or
|
|
45
45
|
* GTE.
|
|
46
46
|
*/
|
|
47
|
-
type Comparator = EQ | NE | LT | GT | LTE | GTE;
|
|
48
|
-
declare const Operators: {
|
|
47
|
+
export type Comparator = EQ | NE | LT | GT | LTE | GTE;
|
|
48
|
+
export declare const Operators: {
|
|
49
49
|
[key: string]: Operator;
|
|
50
50
|
};
|
|
51
|
-
declare const Comparators: {
|
|
51
|
+
export declare const Comparators: {
|
|
52
52
|
[key: string]: Comparator;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* Represents the result of visiting an operation or comparison
|
|
56
56
|
* expression.
|
|
57
57
|
*/
|
|
58
|
-
type VisitorResult = VisitorOperationResult | VisitorComparisonResult;
|
|
58
|
+
export type VisitorResult = VisitorOperationResult | VisitorComparisonResult;
|
|
59
59
|
/**
|
|
60
60
|
* Represents the result of visiting an operation expression.
|
|
61
61
|
*/
|
|
62
|
-
type VisitorOperationResult = {
|
|
62
|
+
export type VisitorOperationResult = {
|
|
63
63
|
[operator: string]: VisitorResult[];
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* Represents the result of visiting a comparison expression.
|
|
67
67
|
*/
|
|
68
|
-
type VisitorComparisonResult = {
|
|
68
|
+
export type VisitorComparisonResult = {
|
|
69
69
|
[attr: string]: {
|
|
70
70
|
[comparator: string]: string | number | boolean;
|
|
71
71
|
};
|
|
@@ -73,14 +73,14 @@ type VisitorComparisonResult = {
|
|
|
73
73
|
/**
|
|
74
74
|
* Represents the result of visiting a structured query expression.
|
|
75
75
|
*/
|
|
76
|
-
type VisitorStructuredQueryResult = {
|
|
76
|
+
export type VisitorStructuredQueryResult = {
|
|
77
77
|
filter?: VisitorComparisonResult | VisitorOperationResult;
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* Abstract class for visiting expressions. Subclasses must implement
|
|
81
81
|
* visitOperation, visitComparison, and visitStructuredQuery methods.
|
|
82
82
|
*/
|
|
83
|
-
declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
83
|
+
export declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
84
84
|
VisitOperationOutput: object;
|
|
85
85
|
VisitComparisonOutput: object;
|
|
86
86
|
VisitStructuredQueryOutput: {
|
|
@@ -96,7 +96,7 @@ declare abstract class Visitor<T extends VectorStore = VectorStore> {
|
|
|
96
96
|
* Abstract class representing an expression. Subclasses must implement
|
|
97
97
|
* the exprName property and the accept method.
|
|
98
98
|
*/
|
|
99
|
-
declare abstract class Expression {
|
|
99
|
+
export declare abstract class Expression {
|
|
100
100
|
abstract exprName: "Operation" | "Comparison" | "StructuredQuery";
|
|
101
101
|
accept(visitor: Visitor): object;
|
|
102
102
|
}
|
|
@@ -104,12 +104,12 @@ declare abstract class Expression {
|
|
|
104
104
|
* Abstract class representing a filter directive. It extends the
|
|
105
105
|
* Expression class.
|
|
106
106
|
*/
|
|
107
|
-
declare abstract class FilterDirective extends Expression {}
|
|
107
|
+
export declare abstract class FilterDirective extends Expression {}
|
|
108
108
|
/**
|
|
109
109
|
* Class representing a comparison filter directive. It extends the
|
|
110
110
|
* FilterDirective class.
|
|
111
111
|
*/
|
|
112
|
-
declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
112
|
+
export declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
113
113
|
comparator: Comparator;
|
|
114
114
|
attribute: string;
|
|
115
115
|
value: ValueTypes;
|
|
@@ -120,7 +120,7 @@ declare class Comparison<ValueTypes = string | number> extends FilterDirective {
|
|
|
120
120
|
* Class representing an operation filter directive. It extends the
|
|
121
121
|
* FilterDirective class.
|
|
122
122
|
*/
|
|
123
|
-
declare class Operation extends FilterDirective {
|
|
123
|
+
export declare class Operation extends FilterDirective {
|
|
124
124
|
operator: Operator;
|
|
125
125
|
args?: FilterDirective[] | undefined;
|
|
126
126
|
exprName: "Operation";
|
|
@@ -130,12 +130,11 @@ declare class Operation extends FilterDirective {
|
|
|
130
130
|
* Class representing a structured query expression. It extends the
|
|
131
131
|
* Expression class.
|
|
132
132
|
*/
|
|
133
|
-
declare class StructuredQuery extends Expression {
|
|
133
|
+
export declare class StructuredQuery extends Expression {
|
|
134
134
|
query: string;
|
|
135
135
|
filter?: FilterDirective | undefined;
|
|
136
136
|
exprName: "StructuredQuery";
|
|
137
137
|
constructor(query: string, filter?: FilterDirective | undefined);
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
|
-
export { AND, Comparator, Comparators, Comparison, EQ, Expression, FilterDirective, GT, GTE, LT, LTE, NE, NOT, OR, Operation, Operator, Operators, StructuredQuery, Visitor, VisitorComparisonResult, VisitorOperationResult, VisitorResult, VisitorStructuredQueryResult };
|
|
141
140
|
//# sourceMappingURL=ir.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ir.d.ts","names":[],"sources":["../../src/structured_query/ir.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ir.d.ts","names":[],"sources":["../../src/structured_query/ir.ts"],"mappings":";;;;;YAKY;;;;YAIA;;;;YAIA;;;;YAKA,WAAW,MAAM,KAAK;;;;YAKtB;;;;YAIA;;;;YAIA;;;;YAIA;;;;YAIA;;;;YAIA;;;;;YAMA,aAAa,KAAK,KAAK,KAAK,KAAK,MAAM;qBAEtC;GAAc,cAAc;;qBAM5B;GAAgB,cAAc;;;;;;YAa/B,gBAAgB,yBAAyB;;;;YAKzC;GACT,mBAAmB;;;;;YAMV;GACT;KACE;;;;;;YAOO;EACV,SAAS,0BAA0B;;;;;;8BAOf,QAAQ,UAAU,cAAc;EAC5C;EAEA;EAEA;IAA8B,SAAS;;WAEtC,kBAAkB;WAElB,oBAAoB;WAEpB,eAAe,WAAW;WAE1B,gBACP,YAAY;WAGL,qBACP,iBAAiB;;;;;;8BAQC;WACX;EAET,OAAO,SAAS;;;;;;8BAiBI,wBAAwB;;;;;qBAMjC,WAAW,sCAAsC;EAInD,YAAY;EACZ;EACA,OAAO;EALhB;EAEA,YACS,YAAY,YACZ,mBACA,OAAO;;;;;;qBAUL,kBAAkB;EAIpB,UAAU;EACV,OAAO;EAJhB;EAEA,YACS,UAAU,UACV,OAAO;;;;;;qBAUL,wBAAwB;EAI1B;EACA,SAAS;EAJlB;EAEA,YACS,eACA,SAAS"}
|
|
@@ -2,36 +2,35 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the provided argument is an object and not an array.
|
|
4
4
|
*/
|
|
5
|
-
declare function isObject(obj: any): obj is object;
|
|
5
|
+
export declare function isObject(obj: any): obj is object;
|
|
6
6
|
/**
|
|
7
7
|
* Checks if a provided filter is empty. The filter can be a function, an
|
|
8
8
|
* object, a string, or undefined.
|
|
9
9
|
*/
|
|
10
|
-
declare function isFilterEmpty(filter: ((q: any) => any) | object | string | undefined): filter is undefined;
|
|
10
|
+
export declare function isFilterEmpty(filter: ((q: any) => any) | object | string | undefined): filter is undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Checks if the provided value is an integer.
|
|
13
13
|
*/
|
|
14
|
-
declare function isInt(value: unknown): boolean;
|
|
14
|
+
export declare function isInt(value: unknown): boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Checks if the provided value is a floating-point number.
|
|
17
17
|
*/
|
|
18
|
-
declare function isFloat(value: unknown): boolean;
|
|
18
|
+
export declare function isFloat(value: unknown): boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Checks if the provided value is a string that cannot be parsed into a
|
|
21
21
|
* number.
|
|
22
22
|
*/
|
|
23
|
-
declare function isString(value: unknown): boolean;
|
|
23
|
+
export declare function isString(value: unknown): boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Checks if the provided value is a boolean.
|
|
26
26
|
*/
|
|
27
|
-
declare function isBoolean(value: unknown): boolean;
|
|
27
|
+
export declare function isBoolean(value: unknown): boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Casts a value that might be string or number to actual string or number.
|
|
30
30
|
* Since LLM might return back an integer/float as a string, we need to cast
|
|
31
31
|
* it back to a number, as many vector databases can't handle number as string
|
|
32
32
|
* values as a comparator.
|
|
33
33
|
*/
|
|
34
|
-
declare function castValue(input: unknown): string | number | boolean;
|
|
34
|
+
export declare function castValue(input: unknown): string | number | boolean;
|
|
35
35
|
//#endregion
|
|
36
|
-
export { castValue, isBoolean, isFilterEmpty, isFloat, isInt, isObject, isString };
|
|
37
36
|
//# sourceMappingURL=utils.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/structured_query/utils.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/structured_query/utils.ts"],"mappings":";;;;wBAIgB,SAAS,WAAW;;;;;wBAQpB,cAEd,UAAU,gDACT;;;;wBAea,MAAM;;;;wBAkBN,QAAQ;;;;;wBAmBR,SAAS;;;;wBAUT,UAAU;;;;;;;wBAUV,UAAU"}
|