@langchain/core 1.2.13 → 1.2.16
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 +19 -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.cjs.map +1 -1
- package/dist/language_models/profile.d.cts +16 -2
- package/dist/language_models/profile.d.cts.map +1 -1
- package/dist/language_models/profile.d.ts +16 -2
- package/dist/language_models/profile.d.ts.map +1 -1
- package/dist/language_models/profile.js.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.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/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
|
@@ -7,7 +7,7 @@ import "../messages/index.cjs";
|
|
|
7
7
|
import { BaseChatMessageHistory, BaseListChatMessageHistory } from "../chat_history.cjs";
|
|
8
8
|
//#region src/runnables/history.d.ts
|
|
9
9
|
type GetSessionHistoryCallable = (...args: Array<any>) => Promise<BaseChatMessageHistory | BaseListChatMessageHistory> | BaseChatMessageHistory | BaseListChatMessageHistory;
|
|
10
|
-
interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<RunnableBindingArgs<RunInput, RunOutput>, "bound" | "config"> {
|
|
10
|
+
export interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<RunnableBindingArgs<RunInput, RunOutput>, "bound" | "config"> {
|
|
11
11
|
runnable: Runnable<RunInput, RunOutput>;
|
|
12
12
|
getMessageHistory: GetSessionHistoryCallable;
|
|
13
13
|
inputMessagesKey?: string;
|
|
@@ -80,7 +80,7 @@ interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<Run
|
|
|
80
80
|
* );
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBinding<RunInput, RunOutput> {
|
|
83
|
+
export declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBinding<RunInput, RunOutput> {
|
|
84
84
|
runnable: Runnable<RunInput, RunOutput>;
|
|
85
85
|
inputMessagesKey?: string;
|
|
86
86
|
outputMessagesKey?: string;
|
|
@@ -94,5 +94,4 @@ declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBi
|
|
|
94
94
|
_mergeConfig(...configs: Array<RunnableConfig | undefined>): Promise<Partial<RunnableConfig<Record<string, any>>>>;
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
export { RunnableWithMessageHistory, RunnableWithMessageHistoryInputs };
|
|
98
97
|
//# sourceMappingURL=history.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.cts","names":[],"sources":["../../src/runnables/history.ts"],"mappings":";;;;;;;;KAoBK,gCAEA,MAAM,eAEP,QAAQ,yBAAyB,8BACjC,yBACA;
|
|
1
|
+
{"version":3,"file":"history.d.cts","names":[],"sources":["../../src/runnables/history.ts"],"mappings":";;;;;;;;KAoBK,gCAEA,MAAM,eAEP,QAAQ,yBAAyB,8BACjC,yBACA;iBAEa,iCACf,UACA,mBACQ,KAAK,oBAAoB,UAAU;EAC3C,UAAU,SAAS,UAAU;EAC7B,mBAAmB;EACnB;EACA;EACA;EACA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoEE,2BACX,UACA,mBACQ,gBAAgB,UAAU;EAClC,UAAU,SAAS,UAAU;EAE7B;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY,QAAQ,iCAAiC,UAAU;EAkC/D,kBAEE,qBAAqB,cAAc,MAAM,eAAe,sBACvD,MAAM;EAwCT,mBAEE,sBAAsB,cAAc,MAAM,eAAe,sBACxD,MAAM;EA2CH,cAEJ,YACA,SAAS,iBACR,QAAQ;EASL,aAAa,KAAK,KAAK,QAAQ,iBAAiB;EAiChD,gBAAgB,SAAS,MAAM,8BAA2B,QAAA,QAAA,eAAA"}
|
|
@@ -7,7 +7,7 @@ import "../messages/index.js";
|
|
|
7
7
|
import { BaseChatMessageHistory, BaseListChatMessageHistory } from "../chat_history.js";
|
|
8
8
|
//#region src/runnables/history.d.ts
|
|
9
9
|
type GetSessionHistoryCallable = (...args: Array<any>) => Promise<BaseChatMessageHistory | BaseListChatMessageHistory> | BaseChatMessageHistory | BaseListChatMessageHistory;
|
|
10
|
-
interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<RunnableBindingArgs<RunInput, RunOutput>, "bound" | "config"> {
|
|
10
|
+
export interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<RunnableBindingArgs<RunInput, RunOutput>, "bound" | "config"> {
|
|
11
11
|
runnable: Runnable<RunInput, RunOutput>;
|
|
12
12
|
getMessageHistory: GetSessionHistoryCallable;
|
|
13
13
|
inputMessagesKey?: string;
|
|
@@ -80,7 +80,7 @@ interface RunnableWithMessageHistoryInputs<RunInput, RunOutput> extends Omit<Run
|
|
|
80
80
|
* );
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBinding<RunInput, RunOutput> {
|
|
83
|
+
export declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBinding<RunInput, RunOutput> {
|
|
84
84
|
runnable: Runnable<RunInput, RunOutput>;
|
|
85
85
|
inputMessagesKey?: string;
|
|
86
86
|
outputMessagesKey?: string;
|
|
@@ -94,5 +94,4 @@ declare class RunnableWithMessageHistory<RunInput, RunOutput> extends RunnableBi
|
|
|
94
94
|
_mergeConfig(...configs: Array<RunnableConfig | undefined>): Promise<Partial<RunnableConfig<Record<string, any>>>>;
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
export { RunnableWithMessageHistory, RunnableWithMessageHistoryInputs };
|
|
98
97
|
//# sourceMappingURL=history.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history.d.ts","names":[],"sources":["../../src/runnables/history.ts"],"mappings":";;;;;;;;KAoBK,gCAEA,MAAM,eAEP,QAAQ,yBAAyB,8BACjC,yBACA;
|
|
1
|
+
{"version":3,"file":"history.d.ts","names":[],"sources":["../../src/runnables/history.ts"],"mappings":";;;;;;;;KAoBK,gCAEA,MAAM,eAEP,QAAQ,yBAAyB,8BACjC,yBACA;iBAEa,iCACf,UACA,mBACQ,KAAK,oBAAoB,UAAU;EAC3C,UAAU,SAAS,UAAU;EAC7B,mBAAmB;EACnB;EACA;EACA;EACA,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoEE,2BACX,UACA,mBACQ,gBAAgB,UAAU;EAClC,UAAU,SAAS,UAAU;EAE7B;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY,QAAQ,iCAAiC,UAAU;EAkC/D,kBAEE,qBAAqB,cAAc,MAAM,eAAe,sBACvD,MAAM;EAwCT,mBAEE,sBAAsB,cAAc,MAAM,eAAe,sBACxD,MAAM;EA2CH,cAEJ,YACA,SAAS,iBACR,QAAQ;EASL,aAAa,KAAK,KAAK,QAAQ,iBAAiB;EAiChD,gBAAgB,SAAS,MAAM,8BAA2B,QAAA,QAAA,eAAA"}
|
|
@@ -29,7 +29,7 @@ type RunnablePassthroughFunc<RunInput = any> = ((input: RunInput) => void) | ((i
|
|
|
29
29
|
* );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, RunInput> {
|
|
32
|
+
export declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, RunInput> {
|
|
33
33
|
static lc_name(): string;
|
|
34
34
|
lc_namespace: string[];
|
|
35
35
|
lc_serializable: boolean;
|
|
@@ -70,5 +70,4 @@ declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, Run
|
|
|
70
70
|
static assign<RunInput extends Record<string, unknown> = Record<string, unknown>, RunOutput extends Record<string, unknown> = Record<string, unknown>>(mapping: RunnableMapLike<RunInput, RunOutput>): RunnableAssign<RunInput, RunInput & RunOutput>;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
export { RunnablePassthrough };
|
|
74
73
|
//# sourceMappingURL=passthrough.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passthrough.d.cts","names":[],"sources":["../../src/runnables/passthrough.ts"],"mappings":";;;;KAUK,wBAAwB,oBACvB,OAAO,uBACP,OAAO,UAAU,SAAS,6BAC1B,OAAO,aAAa,mBACpB,OAAO,UAAU,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"passthrough.d.cts","names":[],"sources":["../../src/runnables/passthrough.ts"],"mappings":";;;;KAUK,wBAAwB,oBACvB,OAAO,uBACP,OAAO,UAAU,SAAS,6BAC1B,OAAO,aAAa,mBACpB,OAAO,UAAU,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6BtC,oBAAoB,wBAAwB,SACvD,UACA;SAEO;EAIP;EAEA;EAEA,OAAO,wBAAwB;EAE/B,YAAY;IAAW,OAAO,wBAAwB;;EAOhD,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ;EAaJ,UACL,WAAW,eAAe,WAC1B,SAAS,QAAQ,kBAChB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA2DX,OACL,iBAAiB,0BAA0B,yBAC3C,kBAAkB,0BAA0B,yBAE5C,SAAS,gBAAgB,UAAU,aAClC,eAAe,UAAU,WAAW"}
|
|
@@ -29,7 +29,7 @@ type RunnablePassthroughFunc<RunInput = any> = ((input: RunInput) => void) | ((i
|
|
|
29
29
|
* );
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, RunInput> {
|
|
32
|
+
export declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, RunInput> {
|
|
33
33
|
static lc_name(): string;
|
|
34
34
|
lc_namespace: string[];
|
|
35
35
|
lc_serializable: boolean;
|
|
@@ -70,5 +70,4 @@ declare class RunnablePassthrough<RunInput = any> extends Runnable<RunInput, Run
|
|
|
70
70
|
static assign<RunInput extends Record<string, unknown> = Record<string, unknown>, RunOutput extends Record<string, unknown> = Record<string, unknown>>(mapping: RunnableMapLike<RunInput, RunOutput>): RunnableAssign<RunInput, RunInput & RunOutput>;
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
export { RunnablePassthrough };
|
|
74
73
|
//# sourceMappingURL=passthrough.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passthrough.d.ts","names":[],"sources":["../../src/runnables/passthrough.ts"],"mappings":";;;;KAUK,wBAAwB,oBACvB,OAAO,uBACP,OAAO,UAAU,SAAS,6BAC1B,OAAO,aAAa,mBACpB,OAAO,UAAU,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"passthrough.d.ts","names":[],"sources":["../../src/runnables/passthrough.ts"],"mappings":";;;;KAUK,wBAAwB,oBACvB,OAAO,uBACP,OAAO,UAAU,SAAS,6BAC1B,OAAO,aAAa,mBACpB,OAAO,UAAU,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6BtC,oBAAoB,wBAAwB,SACvD,UACA;SAEO;EAIP;EAEA;EAEA,OAAO,wBAAwB;EAE/B,YAAY;IAAW,OAAO,wBAAwB;;EAOhD,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ;EAaJ,UACL,WAAW,eAAe,WAC1B,SAAS,QAAQ,kBAChB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA2DX,OACL,iBAAiB,0BAA0B,yBAC3C,kBAAkB,0BAA0B,yBAE5C,SAAS,gBAAgB,UAAU,aAClC,eAAe,UAAU,WAAW"}
|
|
@@ -3,7 +3,7 @@ import "./config.cjs";
|
|
|
3
3
|
import { IterableReadableStream } from "../utils/stream.cjs";
|
|
4
4
|
import { Runnable } from "./base.cjs";
|
|
5
5
|
//#region src/runnables/router.d.ts
|
|
6
|
-
type RouterInput = {
|
|
6
|
+
export type RouterInput = {
|
|
7
7
|
key: string;
|
|
8
8
|
input: any;
|
|
9
9
|
};
|
|
@@ -34,7 +34,7 @@ type RouterInput = {
|
|
|
34
34
|
* // "HELLO WORLD"
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOutput> extends Runnable<RunInput, RunOutput> {
|
|
37
|
+
export declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOutput> extends Runnable<RunInput, RunOutput> {
|
|
38
38
|
static lc_name(): string;
|
|
39
39
|
lc_namespace: string[];
|
|
40
40
|
lc_serializable: boolean;
|
|
@@ -53,5 +53,4 @@ declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOut
|
|
|
53
53
|
stream(input: RunInput, options?: Partial<RunnableConfig>): Promise<IterableReadableStream<RunOutput>>;
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
export { RouterInput, RouterRunnable };
|
|
57
56
|
//# sourceMappingURL=router.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.cts","names":[],"sources":["../../src/runnables/router.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"router.d.cts","names":[],"sources":["../../src/runnables/router.ts"],"mappings":";;;;;YAIY;EACV;EAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8BW,eACX,iBAAiB,aACjB,eACA,mBACQ,SAAS,UAAU;SACpB;EAIP;EAEA;EAEA,WAAW,eAAe,SAAS,eAAe;EAElD,YAAY;IACV,WAAW,eAAe,SAAS,eAAe;;EAM9C,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ;EASL,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe;IAAyB;MACvC,QAAQ;EAEL,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe;IAAyB;MACvC,SAAS,YAAY;EAElB,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe,uBACd,SAAS,YAAY;EAgClB,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ,uBAAuB"}
|
|
@@ -3,7 +3,7 @@ import "./config.js";
|
|
|
3
3
|
import { IterableReadableStream } from "../utils/stream.js";
|
|
4
4
|
import { Runnable } from "./base.js";
|
|
5
5
|
//#region src/runnables/router.d.ts
|
|
6
|
-
type RouterInput = {
|
|
6
|
+
export type RouterInput = {
|
|
7
7
|
key: string;
|
|
8
8
|
input: any;
|
|
9
9
|
};
|
|
@@ -34,7 +34,7 @@ type RouterInput = {
|
|
|
34
34
|
* // "HELLO WORLD"
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOutput> extends Runnable<RunInput, RunOutput> {
|
|
37
|
+
export declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOutput> extends Runnable<RunInput, RunOutput> {
|
|
38
38
|
static lc_name(): string;
|
|
39
39
|
lc_namespace: string[];
|
|
40
40
|
lc_serializable: boolean;
|
|
@@ -53,5 +53,4 @@ declare class RouterRunnable<RunInput extends RouterInput, RunnableInput, RunOut
|
|
|
53
53
|
stream(input: RunInput, options?: Partial<RunnableConfig>): Promise<IterableReadableStream<RunOutput>>;
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
export { RouterInput, RouterRunnable };
|
|
57
56
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","names":[],"sources":["../../src/runnables/router.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"router.d.ts","names":[],"sources":["../../src/runnables/router.ts"],"mappings":";;;;;YAIY;EACV;EAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA8BW,eACX,iBAAiB,aACjB,eACA,mBACQ,SAAS,UAAU;SACpB;EAIP;EAEA;EAEA,WAAW,eAAe,SAAS,eAAe;EAElD,YAAY;IACV,WAAW,eAAe,SAAS,eAAe;;EAM9C,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ;EASL,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe;IAAyB;MACvC,QAAQ;EAEL,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe;IAAyB;MACvC,SAAS,YAAY;EAElB,MACJ,QAAQ,YACR,UAAU,QAAQ,kBAAkB,QAAQ,mBAC5C,eAAe,uBACd,SAAS,YAAY;EAgClB,OACJ,OAAO,UACP,UAAU,QAAQ,kBACjB,QAAQ,uBAAuB"}
|
|
@@ -3,12 +3,12 @@ import { InteropZodType } from "../utils/types/zod.cjs";
|
|
|
3
3
|
import { BaseCallbackConfig } from "../callbacks/manager.cjs";
|
|
4
4
|
import { IterableReadableStreamInterface } from "../types/_internal.cjs";
|
|
5
5
|
//#region src/runnables/types.d.ts
|
|
6
|
-
type RunnableBatchOptions = {
|
|
6
|
+
export type RunnableBatchOptions = {
|
|
7
7
|
/** @deprecated Pass in via the standard runnable config object instead */
|
|
8
8
|
maxConcurrency?: number;
|
|
9
9
|
returnExceptions?: boolean;
|
|
10
10
|
};
|
|
11
|
-
type RunnableIOSchema = {
|
|
11
|
+
export type RunnableIOSchema = {
|
|
12
12
|
name?: string;
|
|
13
13
|
schema: InteropZodType;
|
|
14
14
|
};
|
|
@@ -18,7 +18,7 @@ type RunnableIOSchema = {
|
|
|
18
18
|
*
|
|
19
19
|
* Should not change on patch releases.
|
|
20
20
|
*/
|
|
21
|
-
interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends RunnableConfig = RunnableConfig> extends SerializableInterface {
|
|
21
|
+
export interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends RunnableConfig = RunnableConfig> extends SerializableInterface {
|
|
22
22
|
lc_serializable: boolean;
|
|
23
23
|
invoke(input: RunInput, options?: Partial<CallOptions>): Promise<RunOutput>;
|
|
24
24
|
batch(inputs: RunInput[], options?: Partial<CallOptions> | Partial<CallOptions>[], batchOptions?: RunnableBatchOptions & {
|
|
@@ -32,19 +32,19 @@ interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends
|
|
|
32
32
|
transform(generator: AsyncGenerator<RunInput>, options: Partial<CallOptions>): AsyncGenerator<RunOutput>;
|
|
33
33
|
getName(suffix?: string): string;
|
|
34
34
|
}
|
|
35
|
-
interface Edge {
|
|
35
|
+
export interface Edge {
|
|
36
36
|
source: string;
|
|
37
37
|
target: string;
|
|
38
38
|
data?: string;
|
|
39
39
|
conditional?: boolean;
|
|
40
40
|
}
|
|
41
|
-
interface Node {
|
|
41
|
+
export interface Node {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
data: RunnableIOSchema | RunnableInterface;
|
|
45
45
|
metadata?: Record<string, any>;
|
|
46
46
|
}
|
|
47
|
-
interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Record<string, any>> extends BaseCallbackConfig {
|
|
47
|
+
export interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Record<string, any>> extends BaseCallbackConfig {
|
|
48
48
|
/**
|
|
49
49
|
* Runtime values for attributes previously made configurable on this Runnable,
|
|
50
50
|
* or sub-Runnables.
|
|
@@ -68,5 +68,4 @@ interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Rec
|
|
|
68
68
|
signal?: AbortSignal;
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
|
-
export { Edge, Node, RunnableBatchOptions, RunnableConfig, RunnableIOSchema, RunnableInterface };
|
|
72
71
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/runnables/types.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/runnables/types.ts"],"mappings":";;;;;YAKY;;EAEV;EACA;;YAGU;EACV;EACA,QAAQ;;;;;;;;iBASO,kBAEf,gBAEA,iBACA,oBAAoB,iBAAiB,wBAC7B;EACR;EAEA,OAAO,OAAO,UAAU,UAAU,QAAQ,eAAe,QAAQ;EAEjE,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe;IAAyB;MACvC,QAAQ;EAEX,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe;IAAyB;MACvC,SAAS,YAAY;EAExB,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe,uBACd,SAAS,YAAY;EAExB,OACE,OAAO,UACP,UAAU,QAAQ,eACjB,QAAQ,gCAAgC;EAE3C,UACE,WAAW,eAAe,WAC1B,SAAS,QAAQ,eAChB,eAAe;EAElB,QAAQ;;iBAGO;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA,MAAM,mBAAmB;EAEzB,WAAW;;iBAGI,eAEf,8BAA8B,sBAAsB,6BAC5C;;;;;EAKR,eAAe;;;;EAKf;;EAGA;;;;EAKA;;;;;;EAOA,SAAS"}
|
|
@@ -3,12 +3,12 @@ import { InteropZodType } from "../utils/types/zod.js";
|
|
|
3
3
|
import { BaseCallbackConfig } from "../callbacks/manager.js";
|
|
4
4
|
import { IterableReadableStreamInterface } from "../types/_internal.js";
|
|
5
5
|
//#region src/runnables/types.d.ts
|
|
6
|
-
type RunnableBatchOptions = {
|
|
6
|
+
export type RunnableBatchOptions = {
|
|
7
7
|
/** @deprecated Pass in via the standard runnable config object instead */
|
|
8
8
|
maxConcurrency?: number;
|
|
9
9
|
returnExceptions?: boolean;
|
|
10
10
|
};
|
|
11
|
-
type RunnableIOSchema = {
|
|
11
|
+
export type RunnableIOSchema = {
|
|
12
12
|
name?: string;
|
|
13
13
|
schema: InteropZodType;
|
|
14
14
|
};
|
|
@@ -18,7 +18,7 @@ type RunnableIOSchema = {
|
|
|
18
18
|
*
|
|
19
19
|
* Should not change on patch releases.
|
|
20
20
|
*/
|
|
21
|
-
interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends RunnableConfig = RunnableConfig> extends SerializableInterface {
|
|
21
|
+
export interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends RunnableConfig = RunnableConfig> extends SerializableInterface {
|
|
22
22
|
lc_serializable: boolean;
|
|
23
23
|
invoke(input: RunInput, options?: Partial<CallOptions>): Promise<RunOutput>;
|
|
24
24
|
batch(inputs: RunInput[], options?: Partial<CallOptions> | Partial<CallOptions>[], batchOptions?: RunnableBatchOptions & {
|
|
@@ -32,19 +32,19 @@ interface RunnableInterface<RunInput = any, RunOutput = any, CallOptions extends
|
|
|
32
32
|
transform(generator: AsyncGenerator<RunInput>, options: Partial<CallOptions>): AsyncGenerator<RunOutput>;
|
|
33
33
|
getName(suffix?: string): string;
|
|
34
34
|
}
|
|
35
|
-
interface Edge {
|
|
35
|
+
export interface Edge {
|
|
36
36
|
source: string;
|
|
37
37
|
target: string;
|
|
38
38
|
data?: string;
|
|
39
39
|
conditional?: boolean;
|
|
40
40
|
}
|
|
41
|
-
interface Node {
|
|
41
|
+
export interface Node {
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
data: RunnableIOSchema | RunnableInterface;
|
|
45
45
|
metadata?: Record<string, any>;
|
|
46
46
|
}
|
|
47
|
-
interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Record<string, any>> extends BaseCallbackConfig {
|
|
47
|
+
export interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Record<string, any>> extends BaseCallbackConfig {
|
|
48
48
|
/**
|
|
49
49
|
* Runtime values for attributes previously made configurable on this Runnable,
|
|
50
50
|
* or sub-Runnables.
|
|
@@ -68,5 +68,4 @@ interface RunnableConfig<ConfigurableFieldType extends Record<string, any> = Rec
|
|
|
68
68
|
signal?: AbortSignal;
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
|
-
export { Edge, Node, RunnableBatchOptions, RunnableConfig, RunnableIOSchema, RunnableInterface };
|
|
72
71
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/runnables/types.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../src/runnables/types.ts"],"mappings":";;;;;YAKY;;EAEV;EACA;;YAGU;EACV;EACA,QAAQ;;;;;;;;iBASO,kBAEf,gBAEA,iBACA,oBAAoB,iBAAiB,wBAC7B;EACR;EAEA,OAAO,OAAO,UAAU,UAAU,QAAQ,eAAe,QAAQ;EAEjE,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe;IAAyB;MACvC,QAAQ;EAEX,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe;IAAyB;MACvC,SAAS,YAAY;EAExB,MACE,QAAQ,YACR,UAAU,QAAQ,eAAe,QAAQ,gBACzC,eAAe,uBACd,SAAS,YAAY;EAExB,OACE,OAAO,UACP,UAAU,QAAQ,eACjB,QAAQ,gCAAgC;EAE3C,UACE,WAAW,eAAe,WAC1B,SAAS,QAAQ,eAChB,eAAe;EAElB,QAAQ;;iBAGO;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA,MAAM,mBAAmB;EAEzB,WAAW;;iBAGI,eAEf,8BAA8B,sBAAsB,6BAC5C;;;;;EAKR,eAAe;;;;EAKf;;EAGA;;;;EAKA;;;;;;EAOA,SAAS"}
|
|
@@ -50,7 +50,7 @@ import { BaseCallbackHandler } from "../../callbacks/base.cjs";
|
|
|
50
50
|
* @param name The name of the context variable.
|
|
51
51
|
* @param value The value to set.
|
|
52
52
|
*/
|
|
53
|
-
declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
53
|
+
export declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
54
54
|
/**
|
|
55
55
|
* Get the value of a previously set context variable. Context variables
|
|
56
56
|
* are scoped to any child runnables called by the current runnable,
|
|
@@ -100,7 +100,7 @@ declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
|
100
100
|
*
|
|
101
101
|
* @param name The name of the context variable.
|
|
102
102
|
*/
|
|
103
|
-
declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
103
|
+
export declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* Register a callback configure hook to automatically add callback handlers to all runs.
|
|
106
106
|
*
|
|
@@ -146,13 +146,12 @@ declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
|
146
146
|
* @param config.handlerClass Optional callback handler class (required if using envVar)
|
|
147
147
|
* @param config.envVar Optional environment variable name to control handler activation
|
|
148
148
|
*/
|
|
149
|
-
declare const registerConfigureHook: (config: ConfigureHook) => void;
|
|
150
|
-
type ConfigureHook = {
|
|
149
|
+
export declare const registerConfigureHook: (config: ConfigureHook) => void;
|
|
150
|
+
export type ConfigureHook = {
|
|
151
151
|
contextVar?: string;
|
|
152
152
|
inheritable?: boolean;
|
|
153
153
|
handlerClass?: new (...args: any[]) => BaseCallbackHandler;
|
|
154
154
|
envVar?: string;
|
|
155
155
|
};
|
|
156
156
|
//#endregion
|
|
157
|
-
export { ConfigureHook, getContextVariable, registerConfigureHook, setContextVariable };
|
|
158
157
|
//# sourceMappingURL=context.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/singletons/async_local_storage/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../../src/singletons/async_local_storage/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyDgB,mBAAmB,GAAG,MAAM,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsEhD,mBAAmB,SAAS,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DnD,wBAAqB,QAAY;YASlC;EACV;EACA;EAEA,uBAAuB,gBAAgB;EACvC"}
|
|
@@ -50,7 +50,7 @@ import { BaseCallbackHandler } from "../../callbacks/base.js";
|
|
|
50
50
|
* @param name The name of the context variable.
|
|
51
51
|
* @param value The value to set.
|
|
52
52
|
*/
|
|
53
|
-
declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
53
|
+
export declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
54
54
|
/**
|
|
55
55
|
* Get the value of a previously set context variable. Context variables
|
|
56
56
|
* are scoped to any child runnables called by the current runnable,
|
|
@@ -100,7 +100,7 @@ declare function setContextVariable<T>(name: PropertyKey, value: T): void;
|
|
|
100
100
|
*
|
|
101
101
|
* @param name The name of the context variable.
|
|
102
102
|
*/
|
|
103
|
-
declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
103
|
+
export declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* Register a callback configure hook to automatically add callback handlers to all runs.
|
|
106
106
|
*
|
|
@@ -146,13 +146,12 @@ declare function getContextVariable<T = any>(name: PropertyKey): T | undefined;
|
|
|
146
146
|
* @param config.handlerClass Optional callback handler class (required if using envVar)
|
|
147
147
|
* @param config.envVar Optional environment variable name to control handler activation
|
|
148
148
|
*/
|
|
149
|
-
declare const registerConfigureHook: (config: ConfigureHook) => void;
|
|
150
|
-
type ConfigureHook = {
|
|
149
|
+
export declare const registerConfigureHook: (config: ConfigureHook) => void;
|
|
150
|
+
export type ConfigureHook = {
|
|
151
151
|
contextVar?: string;
|
|
152
152
|
inheritable?: boolean;
|
|
153
153
|
handlerClass?: new (...args: any[]) => BaseCallbackHandler;
|
|
154
154
|
envVar?: string;
|
|
155
155
|
};
|
|
156
156
|
//#endregion
|
|
157
|
-
export { ConfigureHook, getContextVariable, registerConfigureHook, setContextVariable };
|
|
158
157
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyDgB,mBAAmB,GAAG,MAAM,aAAa,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsEhD,mBAAmB,SAAS,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4DnD,wBAAqB,QAAY;YASlC;EACV;EACA;EAEA,uBAAuB,gBAAgB;EACvC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/singletons/async_local_storage/globals.d.ts
|
|
2
|
-
interface AsyncLocalStorageInterface {
|
|
2
|
+
export interface AsyncLocalStorageInterface {
|
|
3
3
|
getStore: () => any | undefined;
|
|
4
4
|
run: <T>(store: any, callback: () => T) => T;
|
|
5
5
|
enterWith: (store: any) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const _CONTEXT_VARIABLES_KEY: unique symbol;
|
|
7
|
+
export declare const _CONTEXT_VARIABLES_KEY: unique symbol;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { AsyncLocalStorageInterface, _CONTEXT_VARIABLES_KEY };
|
|
10
9
|
//# sourceMappingURL=globals.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.cts","names":[],"sources":["../../../src/singletons/async_local_storage/globals.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"globals.d.cts","names":[],"sources":["../../../src/singletons/async_local_storage/globals.ts"],"mappings":";iBACiB;EACf;EAEA,MAAM,GAAG,YAAY,gBAAgB,MAAM;EAE3C,YAAY;;qBAKD"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/singletons/async_local_storage/globals.d.ts
|
|
2
|
-
interface AsyncLocalStorageInterface {
|
|
2
|
+
export interface AsyncLocalStorageInterface {
|
|
3
3
|
getStore: () => any | undefined;
|
|
4
4
|
run: <T>(store: any, callback: () => T) => T;
|
|
5
5
|
enterWith: (store: any) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const _CONTEXT_VARIABLES_KEY: unique symbol;
|
|
7
|
+
export declare const _CONTEXT_VARIABLES_KEY: unique symbol;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { AsyncLocalStorageInterface, _CONTEXT_VARIABLES_KEY };
|
|
10
9
|
//# sourceMappingURL=globals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globals.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/globals.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"globals.d.ts","names":[],"sources":["../../../src/singletons/async_local_storage/globals.ts"],"mappings":";iBACiB;EACf;EAEA,MAAM,GAAG,YAAY,gBAAgB,MAAM;EAE3C,YAAY;;qBAKD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorageInterface } from "./globals.cjs";
|
|
2
2
|
//#region src/singletons/async_local_storage/index.d.ts
|
|
3
|
-
declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface {
|
|
3
|
+
export declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface {
|
|
4
4
|
getStore(): any;
|
|
5
5
|
run<T>(_store: any, callback: () => T): T;
|
|
6
6
|
enterWith(_store: any): undefined;
|
|
@@ -13,5 +13,5 @@ declare class AsyncLocalStorageProvider {
|
|
|
13
13
|
}
|
|
14
14
|
declare const AsyncLocalStorageProviderSingleton: AsyncLocalStorageProvider;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type AsyncLocalStorageInterface, AsyncLocalStorageProviderSingleton
|
|
16
|
+
export { type AsyncLocalStorageInterface, AsyncLocalStorageProviderSingleton };
|
|
17
17
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/singletons/async_local_storage/index.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.d.cts","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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AsyncLocalStorageInterface } from "./globals.js";
|
|
2
2
|
//#region src/singletons/async_local_storage/index.d.ts
|
|
3
|
-
declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface {
|
|
3
|
+
export declare class MockAsyncLocalStorage implements AsyncLocalStorageInterface {
|
|
4
4
|
getStore(): any;
|
|
5
5
|
run<T>(_store: any, callback: () => T): T;
|
|
6
6
|
enterWith(_store: any): undefined;
|
|
@@ -13,5 +13,5 @@ declare class AsyncLocalStorageProvider {
|
|
|
13
13
|
}
|
|
14
14
|
declare const AsyncLocalStorageProviderSingleton: AsyncLocalStorageProvider;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type AsyncLocalStorageInterface, AsyncLocalStorageProviderSingleton
|
|
16
|
+
export { type AsyncLocalStorageInterface, AsyncLocalStorageProviderSingleton };
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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"}
|