@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
|
@@ -14,7 +14,7 @@ interface SyntheticEmbeddingsParams extends EmbeddingsParams {
|
|
|
14
14
|
* document into chunks, calculating a numerical value for each chunk, and
|
|
15
15
|
* returning an array of these values as the embedding.
|
|
16
16
|
*/
|
|
17
|
-
declare class SyntheticEmbeddings extends Embeddings implements SyntheticEmbeddingsParams {
|
|
17
|
+
export declare class SyntheticEmbeddings extends Embeddings implements SyntheticEmbeddingsParams {
|
|
18
18
|
vectorSize: number;
|
|
19
19
|
constructor(params?: SyntheticEmbeddingsParams);
|
|
20
20
|
/**
|
|
@@ -36,7 +36,7 @@ declare class SyntheticEmbeddings extends Embeddings implements SyntheticEmbeddi
|
|
|
36
36
|
* A class that provides fake embeddings by overriding the embedDocuments
|
|
37
37
|
* and embedQuery methods to return fixed values.
|
|
38
38
|
*/
|
|
39
|
-
declare class FakeEmbeddings extends Embeddings {
|
|
39
|
+
export declare class FakeEmbeddings extends Embeddings {
|
|
40
40
|
constructor(params?: EmbeddingsParams);
|
|
41
41
|
/**
|
|
42
42
|
* Generates fixed embeddings for a list of documents.
|
|
@@ -52,5 +52,4 @@ declare class FakeEmbeddings extends Embeddings {
|
|
|
52
52
|
embedQuery(_: string): Promise<number[]>;
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
|
-
export { FakeEmbeddings, SyntheticEmbeddings };
|
|
56
55
|
//# sourceMappingURL=embeddings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddings.d.ts","names":[],"sources":["../../../src/utils/testing/embeddings.ts"],"mappings":";;;;;;UAMU,kCAAkC;EAC1C;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"embeddings.d.ts","names":[],"sources":["../../../src/utils/testing/embeddings.ts"],"mappings":";;;;;;UAMU,kCAAkC;EAC1C;;;;;;;;;qBAUW,4BACH,sBACG;EAEX;EAEA,YAAY,SAAS;;;;;;EAUf,eAAe,sBAAsB;;;;;;;;EAWrC,WAAW,mBAAmB;;;;;;qBAwCzB,uBAAuB;EAClC,YAAY,SAAS;;;;;;EASrB,eAAe,sBAAsB;;;;;;EASrC,WAAW,YAAY"}
|
|
@@ -2,7 +2,7 @@ import { GenerationChunk } from "../../outputs.cjs";
|
|
|
2
2
|
import { CallbackManagerForLLMRun } from "../../callbacks/manager.cjs";
|
|
3
3
|
import { BaseLLMParams, LLM } from "../../language_models/llms.cjs";
|
|
4
4
|
//#region src/utils/testing/llms.d.ts
|
|
5
|
-
declare class FakeLLM extends LLM {
|
|
5
|
+
export declare class FakeLLM extends LLM {
|
|
6
6
|
response?: string;
|
|
7
7
|
thrownErrorString?: string;
|
|
8
8
|
constructor(fields: {
|
|
@@ -12,7 +12,7 @@ declare class FakeLLM extends LLM {
|
|
|
12
12
|
_llmType(): string;
|
|
13
13
|
_call(prompt: string, _options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): Promise<string>;
|
|
14
14
|
}
|
|
15
|
-
declare class FakeStreamingLLM extends LLM {
|
|
15
|
+
export declare class FakeStreamingLLM extends LLM {
|
|
16
16
|
sleep?: number;
|
|
17
17
|
responses?: string[];
|
|
18
18
|
thrownErrorString?: string;
|
|
@@ -26,5 +26,4 @@ declare class FakeStreamingLLM extends LLM {
|
|
|
26
26
|
_streamResponseChunks(input: string, _options?: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<GenerationChunk, void, unknown>;
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
-
export { FakeLLM, FakeStreamingLLM };
|
|
30
29
|
//# sourceMappingURL=llms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms.d.cts","names":[],"sources":["../../../src/utils/testing/llms.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"llms.d.cts","names":[],"sources":["../../../src/utils/testing/llms.ts"],"mappings":";;;;qBAIa,gBAAgB;EAC3B;EAEA;EAEA,YACE;IAAU;IAAmB;MAA+B;EAO9D;EAIM,MACJ,gBACA,qCACA,aAAa,2BACZ;;qBAUQ,yBAAyB;EACpC;EAEA;EAEA;EAEA,YACE;IACE;IACA;IACA;MACE;EAQN;EAIM,MAAM,iBAAiB;EAStB,sBACL,eACA,sCACA,aAAa,2BAAwB,eAAA"}
|
|
@@ -2,7 +2,7 @@ import { GenerationChunk } from "../../outputs.js";
|
|
|
2
2
|
import { CallbackManagerForLLMRun } from "../../callbacks/manager.js";
|
|
3
3
|
import { BaseLLMParams, LLM } from "../../language_models/llms.js";
|
|
4
4
|
//#region src/utils/testing/llms.d.ts
|
|
5
|
-
declare class FakeLLM extends LLM {
|
|
5
|
+
export declare class FakeLLM extends LLM {
|
|
6
6
|
response?: string;
|
|
7
7
|
thrownErrorString?: string;
|
|
8
8
|
constructor(fields: {
|
|
@@ -12,7 +12,7 @@ declare class FakeLLM extends LLM {
|
|
|
12
12
|
_llmType(): string;
|
|
13
13
|
_call(prompt: string, _options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): Promise<string>;
|
|
14
14
|
}
|
|
15
|
-
declare class FakeStreamingLLM extends LLM {
|
|
15
|
+
export declare class FakeStreamingLLM extends LLM {
|
|
16
16
|
sleep?: number;
|
|
17
17
|
responses?: string[];
|
|
18
18
|
thrownErrorString?: string;
|
|
@@ -26,5 +26,4 @@ declare class FakeStreamingLLM extends LLM {
|
|
|
26
26
|
_streamResponseChunks(input: string, _options?: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<GenerationChunk, void, unknown>;
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
-
export { FakeLLM, FakeStreamingLLM };
|
|
30
29
|
//# sourceMappingURL=llms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llms.d.ts","names":[],"sources":["../../../src/utils/testing/llms.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"llms.d.ts","names":[],"sources":["../../../src/utils/testing/llms.ts"],"mappings":";;;;qBAIa,gBAAgB;EAC3B;EAEA;EAEA,YACE;IAAU;IAAmB;MAA+B;EAO9D;EAIM,MACJ,gBACA,qCACA,aAAa,2BACZ;;qBAUQ,yBAAyB;EACpC;EAEA;EAEA;EAEA,YACE;IACE;IACA;IACA;MACE;EAQN;EAIM,MAAM,iBAAiB;EAStB,sBACL,eACA,sCACA,aAAa,2BAAwB,eAAA"}
|
|
@@ -3,7 +3,7 @@ import { BaseTracer, Run } from "../../tracers/base.cjs";
|
|
|
3
3
|
import "../../messages/index.cjs";
|
|
4
4
|
import { BaseChatMessageHistory, BaseListChatMessageHistory } from "../../chat_history.cjs";
|
|
5
5
|
//#region src/utils/testing/message_history.d.ts
|
|
6
|
-
declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
6
|
+
export declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
7
7
|
lc_namespace: string[];
|
|
8
8
|
messages: Array<BaseMessage>;
|
|
9
9
|
constructor();
|
|
@@ -13,19 +13,18 @@ declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
|
13
13
|
addAIMessage(message: string): Promise<void>;
|
|
14
14
|
clear(): Promise<void>;
|
|
15
15
|
}
|
|
16
|
-
declare class FakeListChatMessageHistory extends BaseListChatMessageHistory {
|
|
16
|
+
export declare class FakeListChatMessageHistory extends BaseListChatMessageHistory {
|
|
17
17
|
lc_namespace: string[];
|
|
18
18
|
messages: Array<BaseMessage>;
|
|
19
19
|
constructor();
|
|
20
20
|
addMessage(message: BaseMessage): Promise<void>;
|
|
21
21
|
getMessages(): Promise<BaseMessage[]>;
|
|
22
22
|
}
|
|
23
|
-
declare class FakeTracer extends BaseTracer {
|
|
23
|
+
export declare class FakeTracer extends BaseTracer {
|
|
24
24
|
name: string;
|
|
25
25
|
runs: Run[];
|
|
26
26
|
constructor();
|
|
27
27
|
protected persistRun(run: Run): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
export { FakeChatMessageHistory, FakeListChatMessageHistory, FakeTracer };
|
|
31
30
|
//# sourceMappingURL=message_history.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message_history.d.cts","names":[],"sources":["../../../src/utils/testing/message_history.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"message_history.d.cts","names":[],"sources":["../../../src/utils/testing/message_history.ts"],"mappings":";;;;;qBAOa,+BAA+B;EAC1C;EAEA,UAAU,MAAM;EAEhB;EAIM,eAAe,QAAQ;EAIvB,WAAW,SAAS,cAAc;EAIlC,eAAe,kBAAkB;EAIjC,aAAa,kBAAkB;EAI/B,SAAS;;qBAKJ,mCAAmC;EAC9C;EAEA,UAAU,MAAM;EAEhB;EAIM,WAAW,SAAS,cAAc;EAIlC,eAAe,QAAQ;;qBAKlB,mBAAmB;EAC9B;EAEA,MAAM;EAEN;YAIU,WAAW,KAAK,MAAM"}
|
|
@@ -3,7 +3,7 @@ import { BaseTracer, Run } from "../../tracers/base.js";
|
|
|
3
3
|
import "../../messages/index.js";
|
|
4
4
|
import { BaseChatMessageHistory, BaseListChatMessageHistory } from "../../chat_history.js";
|
|
5
5
|
//#region src/utils/testing/message_history.d.ts
|
|
6
|
-
declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
6
|
+
export declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
7
7
|
lc_namespace: string[];
|
|
8
8
|
messages: Array<BaseMessage>;
|
|
9
9
|
constructor();
|
|
@@ -13,19 +13,18 @@ declare class FakeChatMessageHistory extends BaseChatMessageHistory {
|
|
|
13
13
|
addAIMessage(message: string): Promise<void>;
|
|
14
14
|
clear(): Promise<void>;
|
|
15
15
|
}
|
|
16
|
-
declare class FakeListChatMessageHistory extends BaseListChatMessageHistory {
|
|
16
|
+
export declare class FakeListChatMessageHistory extends BaseListChatMessageHistory {
|
|
17
17
|
lc_namespace: string[];
|
|
18
18
|
messages: Array<BaseMessage>;
|
|
19
19
|
constructor();
|
|
20
20
|
addMessage(message: BaseMessage): Promise<void>;
|
|
21
21
|
getMessages(): Promise<BaseMessage[]>;
|
|
22
22
|
}
|
|
23
|
-
declare class FakeTracer extends BaseTracer {
|
|
23
|
+
export declare class FakeTracer extends BaseTracer {
|
|
24
24
|
name: string;
|
|
25
25
|
runs: Run[];
|
|
26
26
|
constructor();
|
|
27
27
|
protected persistRun(run: Run): Promise<void>;
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
|
-
export { FakeChatMessageHistory, FakeListChatMessageHistory, FakeTracer };
|
|
31
30
|
//# sourceMappingURL=message_history.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message_history.d.ts","names":[],"sources":["../../../src/utils/testing/message_history.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"message_history.d.ts","names":[],"sources":["../../../src/utils/testing/message_history.ts"],"mappings":";;;;;qBAOa,+BAA+B;EAC1C;EAEA,UAAU,MAAM;EAEhB;EAIM,eAAe,QAAQ;EAIvB,WAAW,SAAS,cAAc;EAIlC,eAAe,kBAAkB;EAIjC,aAAa,kBAAkB;EAI/B,SAAS;;qBAKJ,mCAAmC;EAC9C;EAEA,UAAU,MAAM;EAEhB;EAIM,WAAW,SAAS,cAAc;EAIlC,eAAe,QAAQ;;qBAKlB,mBAAmB;EAC9B;EAEA,MAAM;EAEN;YAIU,WAAW,KAAK,MAAM"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { OpenAICompletionsStreamChunk } from "../../language_models/openai_completions_stream.cjs";
|
|
2
2
|
//#region src/utils/testing/openai_stream_fixtures.d.ts
|
|
3
|
-
declare function asAsyncIterable<T>(items: T[]): AsyncIterable<T>;
|
|
4
|
-
declare function openAITextOnlyChunksWithUsage(model?: string): OpenAICompletionsStreamChunk[];
|
|
5
|
-
declare function openAITextOnlyChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
6
|
-
declare function openAIReasoningTextChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
7
|
-
declare function openAIToolCallChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
8
|
-
declare function sseResponseFromOpenAIChunks(chunks: OpenAICompletionsStreamChunk[]): Response;
|
|
3
|
+
export declare function asAsyncIterable<T>(items: T[]): AsyncIterable<T>;
|
|
4
|
+
export declare function openAITextOnlyChunksWithUsage(model?: string): OpenAICompletionsStreamChunk[];
|
|
5
|
+
export declare function openAITextOnlyChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
6
|
+
export declare function openAIReasoningTextChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
7
|
+
export declare function openAIToolCallChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
8
|
+
export declare function sseResponseFromOpenAIChunks(chunks: OpenAICompletionsStreamChunk[]): Response;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { asAsyncIterable, openAIReasoningTextChunks, openAITextOnlyChunks, openAITextOnlyChunksWithUsage, openAIToolCallChunks, sseResponseFromOpenAIChunks };
|
|
11
10
|
//# sourceMappingURL=openai_stream_fixtures.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai_stream_fixtures.d.cts","names":[],"sources":["../../../src/utils/testing/openai_stream_fixtures.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"openai_stream_fixtures.d.cts","names":[],"sources":["../../../src/utils/testing/openai_stream_fixtures.ts"],"mappings":";;wBAEgB,gBAAgB,GAAG,OAAO,MAAM,cAAc;wBAU9C,8BACd,iBACC;wBAca,qBACd,iBACC;wBAgCa,0BACd,iBACC;wBAgCa,qBACd,iBACC;wBA2Da,4BACd,QAAQ,iCACP"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { OpenAICompletionsStreamChunk } from "../../language_models/openai_completions_stream.js";
|
|
2
2
|
//#region src/utils/testing/openai_stream_fixtures.d.ts
|
|
3
|
-
declare function asAsyncIterable<T>(items: T[]): AsyncIterable<T>;
|
|
4
|
-
declare function openAITextOnlyChunksWithUsage(model?: string): OpenAICompletionsStreamChunk[];
|
|
5
|
-
declare function openAITextOnlyChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
6
|
-
declare function openAIReasoningTextChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
7
|
-
declare function openAIToolCallChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
8
|
-
declare function sseResponseFromOpenAIChunks(chunks: OpenAICompletionsStreamChunk[]): Response;
|
|
3
|
+
export declare function asAsyncIterable<T>(items: T[]): AsyncIterable<T>;
|
|
4
|
+
export declare function openAITextOnlyChunksWithUsage(model?: string): OpenAICompletionsStreamChunk[];
|
|
5
|
+
export declare function openAITextOnlyChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
6
|
+
export declare function openAIReasoningTextChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
7
|
+
export declare function openAIToolCallChunks(model?: string): OpenAICompletionsStreamChunk[];
|
|
8
|
+
export declare function sseResponseFromOpenAIChunks(chunks: OpenAICompletionsStreamChunk[]): Response;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { asAsyncIterable, openAIReasoningTextChunks, openAITextOnlyChunks, openAITextOnlyChunksWithUsage, openAIToolCallChunks, sseResponseFromOpenAIChunks };
|
|
11
10
|
//# sourceMappingURL=openai_stream_fixtures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai_stream_fixtures.d.ts","names":[],"sources":["../../../src/utils/testing/openai_stream_fixtures.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"openai_stream_fixtures.d.ts","names":[],"sources":["../../../src/utils/testing/openai_stream_fixtures.ts"],"mappings":";;wBAEgB,gBAAgB,GAAG,OAAO,MAAM,cAAc;wBAU9C,8BACd,iBACC;wBAca,qBACd,iBACC;wBAgCa,0BACd,iBACC;wBAgCa,qBACd,iBACC;wBA2Da,4BACd,QAAQ,iCACP"}
|
|
@@ -4,11 +4,10 @@ import { BaseOutputParser } from "../../output_parsers/base.cjs";
|
|
|
4
4
|
* Parser for comma-separated values. It splits the input text by commas
|
|
5
5
|
* and trims the resulting values.
|
|
6
6
|
*/
|
|
7
|
-
declare class FakeSplitIntoListParser extends BaseOutputParser<string[]> {
|
|
7
|
+
export declare class FakeSplitIntoListParser extends BaseOutputParser<string[]> {
|
|
8
8
|
lc_namespace: string[];
|
|
9
9
|
getFormatInstructions(): string;
|
|
10
10
|
parse(text: string): Promise<string[]>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeSplitIntoListParser };
|
|
14
13
|
//# sourceMappingURL=output_parsers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output_parsers.d.cts","names":[],"sources":["../../../src/utils/testing/output_parsers.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"output_parsers.d.cts","names":[],"sources":["../../../src/utils/testing/output_parsers.ts"],"mappings":";;;;;;qBAMa,gCAAgC;EAC3C;EAEA;EAIM,MAAM,eAAe"}
|
|
@@ -4,11 +4,10 @@ import { BaseOutputParser } from "../../output_parsers/base.js";
|
|
|
4
4
|
* Parser for comma-separated values. It splits the input text by commas
|
|
5
5
|
* and trims the resulting values.
|
|
6
6
|
*/
|
|
7
|
-
declare class FakeSplitIntoListParser extends BaseOutputParser<string[]> {
|
|
7
|
+
export declare class FakeSplitIntoListParser extends BaseOutputParser<string[]> {
|
|
8
8
|
lc_namespace: string[];
|
|
9
9
|
getFormatInstructions(): string;
|
|
10
10
|
parse(text: string): Promise<string[]>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeSplitIntoListParser };
|
|
14
13
|
//# sourceMappingURL=output_parsers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output_parsers.d.ts","names":[],"sources":["../../../src/utils/testing/output_parsers.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"output_parsers.d.ts","names":[],"sources":["../../../src/utils/testing/output_parsers.ts"],"mappings":";;;;;;qBAMa,gCAAgC;EAC3C;EAEA;EAIM,MAAM,eAAe"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Document } from "../../documents/document.cjs";
|
|
2
2
|
import { BaseRetriever } from "../../retrievers/index.cjs";
|
|
3
3
|
//#region src/utils/testing/retrievers.d.ts
|
|
4
|
-
declare class FakeRetriever extends BaseRetriever {
|
|
4
|
+
export declare class FakeRetriever extends BaseRetriever {
|
|
5
5
|
lc_namespace: string[];
|
|
6
6
|
output: Document<Record<string, any>>[];
|
|
7
7
|
constructor(fields?: {
|
|
@@ -10,5 +10,4 @@ declare class FakeRetriever extends BaseRetriever {
|
|
|
10
10
|
_getRelevantDocuments(_query: string): Promise<Document<Record<string, any>>[]>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeRetriever };
|
|
14
13
|
//# sourceMappingURL=retrievers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrievers.d.cts","names":[],"sources":["../../../src/utils/testing/retrievers.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"retrievers.d.cts","names":[],"sources":["../../../src/utils/testing/retrievers.ts"],"mappings":";;;qBAGa,sBAAsB;EACjC;EAEA,QAAM,SAAA;EAKN,YAAY;IAAW,QAAQ;;EAKzB,sBACJ,iBAEC,QAAQ,SAAS"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Document } from "../../documents/document.js";
|
|
2
2
|
import { BaseRetriever } from "../../retrievers/index.js";
|
|
3
3
|
//#region src/utils/testing/retrievers.d.ts
|
|
4
|
-
declare class FakeRetriever extends BaseRetriever {
|
|
4
|
+
export declare class FakeRetriever extends BaseRetriever {
|
|
5
5
|
lc_namespace: string[];
|
|
6
6
|
output: Document<Record<string, any>>[];
|
|
7
7
|
constructor(fields?: {
|
|
@@ -10,5 +10,4 @@ declare class FakeRetriever extends BaseRetriever {
|
|
|
10
10
|
_getRelevantDocuments(_query: string): Promise<Document<Record<string, any>>[]>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeRetriever };
|
|
14
13
|
//# sourceMappingURL=retrievers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrievers.d.ts","names":[],"sources":["../../../src/utils/testing/retrievers.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"retrievers.d.ts","names":[],"sources":["../../../src/utils/testing/retrievers.ts"],"mappings":";;;qBAGa,sBAAsB;EACjC;EAEA,QAAM,SAAA;EAKN,YAAY;IAAW,QAAQ;;EAKzB,sBACJ,iBAEC,QAAQ,SAAS"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCallbackConfig } from "../../callbacks/manager.cjs";
|
|
2
2
|
import { Runnable } from "../../runnables/base.cjs";
|
|
3
3
|
//#region src/utils/testing/runnables.d.ts
|
|
4
|
-
declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
4
|
+
export declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
5
5
|
lc_namespace: string[];
|
|
6
6
|
returnOptions?: boolean;
|
|
7
7
|
constructor(fields: {
|
|
@@ -10,5 +10,4 @@ declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
|
10
10
|
invoke(input: string, options?: Partial<BaseCallbackConfig>): Promise<Record<string, unknown>>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeRunnable };
|
|
14
13
|
//# sourceMappingURL=runnables.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runnables.d.cts","names":[],"sources":["../../../src/utils/testing/runnables.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"runnables.d.cts","names":[],"sources":["../../../src/utils/testing/runnables.ts"],"mappings":";;;qBAGa,qBAAqB,iBAAiB;EACjD;EAEA;EAEA,YAAY;IAAU;;EAKhB,OACJ,eACA,UAAU,QAAQ,sBACjB,QAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCallbackConfig } from "../../callbacks/manager.js";
|
|
2
2
|
import { Runnable } from "../../runnables/base.js";
|
|
3
3
|
//#region src/utils/testing/runnables.d.ts
|
|
4
|
-
declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
4
|
+
export declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
5
5
|
lc_namespace: string[];
|
|
6
6
|
returnOptions?: boolean;
|
|
7
7
|
constructor(fields: {
|
|
@@ -10,5 +10,4 @@ declare class FakeRunnable extends Runnable<string, Record<string, unknown>> {
|
|
|
10
10
|
invoke(input: string, options?: Partial<BaseCallbackConfig>): Promise<Record<string, unknown>>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { FakeRunnable };
|
|
14
13
|
//# sourceMappingURL=runnables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runnables.d.ts","names":[],"sources":["../../../src/utils/testing/runnables.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"runnables.d.ts","names":[],"sources":["../../../src/utils/testing/runnables.ts"],"mappings":";;;qBAGa,qBAAqB,iBAAiB;EACjD;EAEA;EAEA,YAAY;IAAU;;EAKhB,OACJ,eACA,UAAU,QAAQ,sBACjB,QAAQ"}
|
|
@@ -20,31 +20,31 @@ interface ExpectationResult {
|
|
|
20
20
|
actual?: unknown;
|
|
21
21
|
expected?: unknown;
|
|
22
22
|
}
|
|
23
|
-
declare function toHaveStreamText(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
24
|
-
declare function toHaveStreamReasoning(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
25
|
-
type StreamToolCallExpectation = {
|
|
23
|
+
export declare function toHaveStreamText(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
24
|
+
export declare function toHaveStreamReasoning(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
25
|
+
export type StreamToolCallExpectation = {
|
|
26
26
|
name: string;
|
|
27
27
|
args: Record<string, unknown>;
|
|
28
28
|
};
|
|
29
|
-
type StreamUsageExpectation = {
|
|
29
|
+
export type StreamUsageExpectation = {
|
|
30
30
|
input_tokens?: number;
|
|
31
31
|
output_tokens?: number;
|
|
32
32
|
total_tokens?: number;
|
|
33
33
|
input_token_details?: Record<string, unknown>;
|
|
34
34
|
output_token_details?: Record<string, unknown>;
|
|
35
35
|
};
|
|
36
|
-
type StreamOutputExpectation = {
|
|
36
|
+
export type StreamOutputExpectation = {
|
|
37
37
|
id?: string;
|
|
38
38
|
text?: string;
|
|
39
39
|
toolCalls?: StreamToolCallExpectation[];
|
|
40
40
|
usage?: StreamUsageExpectation;
|
|
41
41
|
responseMetadata?: Record<string, unknown>;
|
|
42
42
|
};
|
|
43
|
-
declare function toHaveStreamToolCalls(this: ExpectExtendThis, received: unknown, expected: StreamToolCallExpectation[]): Promise<ExpectationResult>;
|
|
44
|
-
declare function toHaveStreamUsage(this: ExpectExtendThis, received: unknown, expected: StreamUsageExpectation): Promise<ExpectationResult>;
|
|
45
|
-
declare function toHaveStreamOutput(this: ExpectExtendThis, received: unknown, expected: StreamOutputExpectation): Promise<ExpectationResult>;
|
|
43
|
+
export declare function toHaveStreamToolCalls(this: ExpectExtendThis, received: unknown, expected: StreamToolCallExpectation[]): Promise<ExpectationResult>;
|
|
44
|
+
export declare function toHaveStreamUsage(this: ExpectExtendThis, received: unknown, expected: StreamUsageExpectation): Promise<ExpectationResult>;
|
|
45
|
+
export declare function toHaveStreamOutput(this: ExpectExtendThis, received: unknown, expected: StreamOutputExpectation): Promise<ExpectationResult>;
|
|
46
46
|
/** Stream matchers for `expect.extend()`. */
|
|
47
|
-
declare const streamMatchers: {
|
|
47
|
+
export declare const streamMatchers: {
|
|
48
48
|
toHaveStreamText: typeof toHaveStreamText;
|
|
49
49
|
toHaveStreamReasoning: typeof toHaveStreamReasoning;
|
|
50
50
|
toHaveStreamToolCalls: typeof toHaveStreamToolCalls;
|
|
@@ -59,7 +59,7 @@ declare const streamMatchers: {
|
|
|
59
59
|
*
|
|
60
60
|
* @typeParam R - The assertion return type provided by the test framework.
|
|
61
61
|
*/
|
|
62
|
-
interface StreamMatchers<R = unknown> {
|
|
62
|
+
export interface StreamMatchers<R = unknown> {
|
|
63
63
|
/**
|
|
64
64
|
* Asserts that the stream resolves to the expected concatenated text.
|
|
65
65
|
*
|
|
@@ -92,5 +92,4 @@ interface StreamMatchers<R = unknown> {
|
|
|
92
92
|
toHaveStreamOutput(expected: StreamOutputExpectation): R;
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
95
|
-
export { StreamMatchers, StreamOutputExpectation, StreamToolCallExpectation, StreamUsageExpectation, streamMatchers, toHaveStreamOutput, toHaveStreamReasoning, toHaveStreamText, toHaveStreamToolCalls, toHaveStreamUsage };
|
|
96
95
|
//# sourceMappingURL=stream.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.cts","names":[],"sources":["../../../src/utils/testing/stream.ts"],"mappings":";;;;;UAQU;EACR;EACA,OAAO,YAAY;EACnB;IACE,YACE,cACA,mBACA,mBACA;MAAY;;IAEd,cAAc;IACd,cAAc;;;UAIR;EACR;EACA;EACA;EACA;;
|
|
1
|
+
{"version":3,"file":"stream.d.cts","names":[],"sources":["../../../src/utils/testing/stream.ts"],"mappings":";;;;;UAQU;EACR;EACA,OAAO,YAAY;EACnB;IACE,YACE,cACA,mBACA,mBACA;MAAY;;IAEd,cAAc;IACd,cAAc;;;UAIR;EACR;EACA;EACA;EACA;;wBAkHoB,iBACpB,MAAM,kBACN,mBACA,mBACC,QAAQ;wBAsBW,sBACpB,MAAM,kBACN,mBACA,mBACC,QAAQ;YAsBC;EACV;EACA,MAAM;;YAGI;EACV;EACA;EACA;EACA,sBAAsB;EACtB,uBAAuB;;YAGb;EACV;EACA;EACA,YAAY;EACZ,QAAQ;EACR,mBAAmB;;wBAGC,sBACpB,MAAM,kBACN,mBACA,UAAU,8BACT,QAAQ;wBA+BW,kBACpB,MAAM,kBACN,mBACA,UAAU,yBACT,QAAQ;wBAyBW,mBACpB,MAAM,kBACN,mBACA,UAAU,0BACT,QAAQ;;qBAmCE;;;;;;;;;;;;;;;iBAgBI,eAAe;;;;;;EAM9B,iBAAiB,mBAAmB;;;;;;EAOpC,sBAAsB,mBAAmB;;;;;;EAOzC,sBAAsB,UAAU,8BAA8B;;;;;;EAO9D,kBAAkB,UAAU,yBAAyB;;;;;;EAOrD,mBAAmB,UAAU,0BAA0B"}
|
|
@@ -20,31 +20,31 @@ interface ExpectationResult {
|
|
|
20
20
|
actual?: unknown;
|
|
21
21
|
expected?: unknown;
|
|
22
22
|
}
|
|
23
|
-
declare function toHaveStreamText(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
24
|
-
declare function toHaveStreamReasoning(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
25
|
-
type StreamToolCallExpectation = {
|
|
23
|
+
export declare function toHaveStreamText(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
24
|
+
export declare function toHaveStreamReasoning(this: ExpectExtendThis, received: unknown, expected: string): Promise<ExpectationResult>;
|
|
25
|
+
export type StreamToolCallExpectation = {
|
|
26
26
|
name: string;
|
|
27
27
|
args: Record<string, unknown>;
|
|
28
28
|
};
|
|
29
|
-
type StreamUsageExpectation = {
|
|
29
|
+
export type StreamUsageExpectation = {
|
|
30
30
|
input_tokens?: number;
|
|
31
31
|
output_tokens?: number;
|
|
32
32
|
total_tokens?: number;
|
|
33
33
|
input_token_details?: Record<string, unknown>;
|
|
34
34
|
output_token_details?: Record<string, unknown>;
|
|
35
35
|
};
|
|
36
|
-
type StreamOutputExpectation = {
|
|
36
|
+
export type StreamOutputExpectation = {
|
|
37
37
|
id?: string;
|
|
38
38
|
text?: string;
|
|
39
39
|
toolCalls?: StreamToolCallExpectation[];
|
|
40
40
|
usage?: StreamUsageExpectation;
|
|
41
41
|
responseMetadata?: Record<string, unknown>;
|
|
42
42
|
};
|
|
43
|
-
declare function toHaveStreamToolCalls(this: ExpectExtendThis, received: unknown, expected: StreamToolCallExpectation[]): Promise<ExpectationResult>;
|
|
44
|
-
declare function toHaveStreamUsage(this: ExpectExtendThis, received: unknown, expected: StreamUsageExpectation): Promise<ExpectationResult>;
|
|
45
|
-
declare function toHaveStreamOutput(this: ExpectExtendThis, received: unknown, expected: StreamOutputExpectation): Promise<ExpectationResult>;
|
|
43
|
+
export declare function toHaveStreamToolCalls(this: ExpectExtendThis, received: unknown, expected: StreamToolCallExpectation[]): Promise<ExpectationResult>;
|
|
44
|
+
export declare function toHaveStreamUsage(this: ExpectExtendThis, received: unknown, expected: StreamUsageExpectation): Promise<ExpectationResult>;
|
|
45
|
+
export declare function toHaveStreamOutput(this: ExpectExtendThis, received: unknown, expected: StreamOutputExpectation): Promise<ExpectationResult>;
|
|
46
46
|
/** Stream matchers for `expect.extend()`. */
|
|
47
|
-
declare const streamMatchers: {
|
|
47
|
+
export declare const streamMatchers: {
|
|
48
48
|
toHaveStreamText: typeof toHaveStreamText;
|
|
49
49
|
toHaveStreamReasoning: typeof toHaveStreamReasoning;
|
|
50
50
|
toHaveStreamToolCalls: typeof toHaveStreamToolCalls;
|
|
@@ -59,7 +59,7 @@ declare const streamMatchers: {
|
|
|
59
59
|
*
|
|
60
60
|
* @typeParam R - The assertion return type provided by the test framework.
|
|
61
61
|
*/
|
|
62
|
-
interface StreamMatchers<R = unknown> {
|
|
62
|
+
export interface StreamMatchers<R = unknown> {
|
|
63
63
|
/**
|
|
64
64
|
* Asserts that the stream resolves to the expected concatenated text.
|
|
65
65
|
*
|
|
@@ -92,5 +92,4 @@ interface StreamMatchers<R = unknown> {
|
|
|
92
92
|
toHaveStreamOutput(expected: StreamOutputExpectation): R;
|
|
93
93
|
}
|
|
94
94
|
//#endregion
|
|
95
|
-
export { StreamMatchers, StreamOutputExpectation, StreamToolCallExpectation, StreamUsageExpectation, streamMatchers, toHaveStreamOutput, toHaveStreamReasoning, toHaveStreamText, toHaveStreamToolCalls, toHaveStreamUsage };
|
|
96
95
|
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","names":[],"sources":["../../../src/utils/testing/stream.ts"],"mappings":";;;;;UAQU;EACR;EACA,OAAO,YAAY;EACnB;IACE,YACE,cACA,mBACA,mBACA;MAAY;;IAEd,cAAc;IACd,cAAc;;;UAIR;EACR;EACA;EACA;EACA;;
|
|
1
|
+
{"version":3,"file":"stream.d.ts","names":[],"sources":["../../../src/utils/testing/stream.ts"],"mappings":";;;;;UAQU;EACR;EACA,OAAO,YAAY;EACnB;IACE,YACE,cACA,mBACA,mBACA;MAAY;;IAEd,cAAc;IACd,cAAc;;;UAIR;EACR;EACA;EACA;EACA;;wBAkHoB,iBACpB,MAAM,kBACN,mBACA,mBACC,QAAQ;wBAsBW,sBACpB,MAAM,kBACN,mBACA,mBACC,QAAQ;YAsBC;EACV;EACA,MAAM;;YAGI;EACV;EACA;EACA;EACA,sBAAsB;EACtB,uBAAuB;;YAGb;EACV;EACA;EACA,YAAY;EACZ,QAAQ;EACR,mBAAmB;;wBAGC,sBACpB,MAAM,kBACN,mBACA,UAAU,8BACT,QAAQ;wBA+BW,kBACpB,MAAM,kBACN,mBACA,UAAU,yBACT,QAAQ;wBAyBW,mBACpB,MAAM,kBACN,mBACA,UAAU,0BACT,QAAQ;;qBAmCE;;;;;;;;;;;;;;;iBAgBI,eAAe;;;;;;EAM9B,iBAAiB,mBAAmB;;;;;;EAOpC,sBAAsB,mBAAmB;;;;;;EAOzC,sBAAsB,UAAU,8BAA8B;;;;;;EAO9D,kBAAkB,UAAU,yBAAyB;;;;;;EAOrD,mBAAmB,UAAU,0BAA0B"}
|
|
@@ -3,12 +3,12 @@ import { CallbackManagerForToolRun } from "../../callbacks/manager.cjs";
|
|
|
3
3
|
import { ToolInputSchemaOutputType, ToolParams } from "../../tools/types.cjs";
|
|
4
4
|
import { StructuredTool } from "../../tools/index.cjs";
|
|
5
5
|
//#region src/utils/testing/tools.d.ts
|
|
6
|
-
interface FakeToolParams<T extends InteropZodObject = InteropZodObject> extends ToolParams {
|
|
6
|
+
export interface FakeToolParams<T extends InteropZodObject = InteropZodObject> extends ToolParams {
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
9
|
schema: T;
|
|
10
10
|
}
|
|
11
|
-
declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends StructuredTool<T> {
|
|
11
|
+
export declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends StructuredTool<T> {
|
|
12
12
|
name: string;
|
|
13
13
|
description: string;
|
|
14
14
|
schema: T;
|
|
@@ -16,5 +16,4 @@ declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends St
|
|
|
16
16
|
protected _call(arg: ToolInputSchemaOutputType<T>, _runManager?: CallbackManagerForToolRun): Promise<string>;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { FakeTool, FakeToolParams };
|
|
20
19
|
//# sourceMappingURL=tools.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.cts","names":[],"sources":["../../../src/utils/testing/tools.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"tools.d.cts","names":[],"sources":["../../../src/utils/testing/tools.ts"],"mappings":";;;;;iBAKiB,eACf,UAAU,mBAAmB,0BACrB;EACR;EACA;EACA,QAAQ;;qBAGG,SACX,UAAU,mBAAmB,0BACrB,eAAe;EACvB;EAEA;EAEA,QAAQ;EAER,YAAY,QAAQ,eAAe;YAOnB,MACd,KAAK,0BAA0B,IAC/B,cAAc,4BACb"}
|
|
@@ -3,12 +3,12 @@ import { CallbackManagerForToolRun } from "../../callbacks/manager.js";
|
|
|
3
3
|
import { ToolInputSchemaOutputType, ToolParams } from "../../tools/types.js";
|
|
4
4
|
import { StructuredTool } from "../../tools/index.js";
|
|
5
5
|
//#region src/utils/testing/tools.d.ts
|
|
6
|
-
interface FakeToolParams<T extends InteropZodObject = InteropZodObject> extends ToolParams {
|
|
6
|
+
export interface FakeToolParams<T extends InteropZodObject = InteropZodObject> extends ToolParams {
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
9
|
schema: T;
|
|
10
10
|
}
|
|
11
|
-
declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends StructuredTool<T> {
|
|
11
|
+
export declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends StructuredTool<T> {
|
|
12
12
|
name: string;
|
|
13
13
|
description: string;
|
|
14
14
|
schema: T;
|
|
@@ -16,5 +16,4 @@ declare class FakeTool<T extends InteropZodObject = InteropZodObject> extends St
|
|
|
16
16
|
protected _call(arg: ToolInputSchemaOutputType<T>, _runManager?: CallbackManagerForToolRun): Promise<string>;
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
export { FakeTool, FakeToolParams };
|
|
20
19
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","names":[],"sources":["../../../src/utils/testing/tools.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","names":[],"sources":["../../../src/utils/testing/tools.ts"],"mappings":";;;;;iBAKiB,eACf,UAAU,mBAAmB,0BACrB;EACR;EACA;EACA,QAAQ;;qBAGG,SACX,UAAU,mBAAmB,0BACrB,eAAe;EACvB;EAEA;EAEA,QAAQ;EAER,YAAY,QAAQ,eAAe;YAOnB,MACd,KAAK,0BAA0B,IAC/B,cAAc,4BACb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseTracer, Run } from "../../tracers/base.cjs";
|
|
2
2
|
//#region src/utils/testing/tracers.d.ts
|
|
3
|
-
declare class SingleRunExtractor extends BaseTracer {
|
|
3
|
+
export declare class SingleRunExtractor extends BaseTracer {
|
|
4
4
|
runPromiseResolver: (run: Run) => void;
|
|
5
5
|
runPromise: Promise<Run>;
|
|
6
6
|
/** The name of the callback handler. */
|
|
@@ -10,5 +10,4 @@ declare class SingleRunExtractor extends BaseTracer {
|
|
|
10
10
|
extract(): Promise<Run>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { SingleRunExtractor };
|
|
14
13
|
//# sourceMappingURL=tracers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracers.d.cts","names":[],"sources":["../../../src/utils/testing/tracers.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"tracers.d.cts","names":[],"sources":["../../../src/utils/testing/tracers.ts"],"mappings":";;qBAEa,2BAA2B;EACtC,qBAAqB,KAAK;EAE1B,YAAY,QAAQ;;EAGpB;EAEA;EAOM,WAAW,KAAK,MAAG;EAInB,WAAW,QAAQ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseTracer, Run } from "../../tracers/base.js";
|
|
2
2
|
//#region src/utils/testing/tracers.d.ts
|
|
3
|
-
declare class SingleRunExtractor extends BaseTracer {
|
|
3
|
+
export declare class SingleRunExtractor extends BaseTracer {
|
|
4
4
|
runPromiseResolver: (run: Run) => void;
|
|
5
5
|
runPromise: Promise<Run>;
|
|
6
6
|
/** The name of the callback handler. */
|
|
@@ -10,5 +10,4 @@ declare class SingleRunExtractor extends BaseTracer {
|
|
|
10
10
|
extract(): Promise<Run>;
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export { SingleRunExtractor };
|
|
14
13
|
//# sourceMappingURL=tracers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracers.d.ts","names":[],"sources":["../../../src/utils/testing/tracers.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"tracers.d.ts","names":[],"sources":["../../../src/utils/testing/tracers.ts"],"mappings":";;qBAEa,2BAA2B;EACtC,qBAAqB,KAAK;EAE1B,YAAY,QAAQ;;EAGpB;EAEA;EAOM,WAAW,KAAK,MAAG;EAInB,WAAW,QAAQ"}
|
|
@@ -18,7 +18,7 @@ interface MemoryVector {
|
|
|
18
18
|
* `FakeVectorStore` constructor. It includes an optional `similarity`
|
|
19
19
|
* function.
|
|
20
20
|
*/
|
|
21
|
-
interface FakeVectorStoreArgs {
|
|
21
|
+
export interface FakeVectorStoreArgs {
|
|
22
22
|
similarity?: typeof cosine;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ interface FakeVectorStoreArgs {
|
|
|
26
26
|
* methods for adding documents, performing similarity searches, and
|
|
27
27
|
* creating instances from texts, documents, or an existing index.
|
|
28
28
|
*/
|
|
29
|
-
declare class FakeVectorStore extends VectorStore {
|
|
29
|
+
export declare class FakeVectorStore extends VectorStore {
|
|
30
30
|
FilterType: (doc: Document) => boolean;
|
|
31
31
|
memoryVectors: MemoryVector[];
|
|
32
32
|
similarity: typeof cosine;
|
|
@@ -91,5 +91,4 @@ declare class FakeVectorStore extends VectorStore {
|
|
|
91
91
|
static fromExistingIndex(embeddings: EmbeddingsInterface, dbConfig?: FakeVectorStoreArgs): Promise<FakeVectorStore>;
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
|
-
export { FakeVectorStore, FakeVectorStoreArgs };
|
|
95
94
|
//# sourceMappingURL=vectorstores.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vectorstores.d.cts","names":[],"sources":["../../../src/utils/testing/vectorstores.ts"],"mappings":";;;;;;;;;;UAUU;EACR;EACA;EAEA,UAAU;;;;;;;
|
|
1
|
+
{"version":3,"file":"vectorstores.d.cts","names":[],"sources":["../../../src/utils/testing/vectorstores.ts"],"mappings":";;;;;;;;;;UAUU;EACR;EACA;EAEA,UAAU;;;;;;;iBAQK;EACf,oBAAoB;;;;;;;qBAQT,wBAAwB;EAC3B,aAAa,KAAK;EAE1B,eAAe;EAEf,mBAAmB;EAEnB;EAIA,YACE,YAAY,uBACV,eAAe,SAAQ;;;;;;;;EAcrB,aAAa,WAAW,aAAa;;;;;;;;;EAgBrC,WAAW,qBAAqB,WAAW,aAAa;;;;;;;;;;;EAoBxD,gCACJ,iBACA,WACA,8BACC,SAAS;;;;;;;;;;;SA0CC,UACX,iBACA,8BACA,YAAY,qBACZ,WAAW,sBACV,QAAQ;;;;;;;;;SAqBE,cACX,MAAM,YACN,YAAY,qBACZ,WAAW,sBACV,QAAQ;;;;;;;;;SAcE,kBACX,YAAY,qBACZ,WAAW,sBACV,QAAQ"}
|
|
@@ -18,7 +18,7 @@ interface MemoryVector {
|
|
|
18
18
|
* `FakeVectorStore` constructor. It includes an optional `similarity`
|
|
19
19
|
* function.
|
|
20
20
|
*/
|
|
21
|
-
interface FakeVectorStoreArgs {
|
|
21
|
+
export interface FakeVectorStoreArgs {
|
|
22
22
|
similarity?: typeof cosine;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -26,7 +26,7 @@ interface FakeVectorStoreArgs {
|
|
|
26
26
|
* methods for adding documents, performing similarity searches, and
|
|
27
27
|
* creating instances from texts, documents, or an existing index.
|
|
28
28
|
*/
|
|
29
|
-
declare class FakeVectorStore extends VectorStore {
|
|
29
|
+
export declare class FakeVectorStore extends VectorStore {
|
|
30
30
|
FilterType: (doc: Document) => boolean;
|
|
31
31
|
memoryVectors: MemoryVector[];
|
|
32
32
|
similarity: typeof cosine;
|
|
@@ -91,5 +91,4 @@ declare class FakeVectorStore extends VectorStore {
|
|
|
91
91
|
static fromExistingIndex(embeddings: EmbeddingsInterface, dbConfig?: FakeVectorStoreArgs): Promise<FakeVectorStore>;
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
|
-
export { FakeVectorStore, FakeVectorStoreArgs };
|
|
95
94
|
//# sourceMappingURL=vectorstores.d.ts.map
|