@langchain/core 1.2.14 → 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 +12 -0
- package/dist/agents.d.cts +3 -4
- package/dist/agents.d.cts.map +1 -1
- package/dist/agents.d.ts +3 -4
- package/dist/agents.d.ts.map +1 -1
- package/dist/caches/index.d.cts +5 -6
- package/dist/caches/index.d.cts.map +1 -1
- package/dist/caches/index.d.ts +5 -6
- package/dist/caches/index.d.ts.map +1 -1
- package/dist/callbacks/base.d.cts +10 -11
- package/dist/callbacks/base.d.cts.map +1 -1
- package/dist/callbacks/base.d.ts +10 -11
- package/dist/callbacks/base.d.ts.map +1 -1
- package/dist/callbacks/dispatch/index.d.cts +1 -2
- package/dist/callbacks/dispatch/index.d.cts.map +1 -1
- package/dist/callbacks/dispatch/index.d.ts +1 -2
- package/dist/callbacks/dispatch/index.d.ts.map +1 -1
- package/dist/callbacks/dispatch/web.d.cts +1 -2
- package/dist/callbacks/dispatch/web.d.cts.map +1 -1
- package/dist/callbacks/dispatch/web.d.ts +1 -2
- package/dist/callbacks/dispatch/web.d.ts.map +1 -1
- package/dist/callbacks/manager.cjs +1 -1
- package/dist/callbacks/manager.cjs.map +1 -1
- package/dist/callbacks/manager.d.cts +12 -13
- package/dist/callbacks/manager.d.cts.map +1 -1
- package/dist/callbacks/manager.d.ts +12 -13
- package/dist/callbacks/manager.d.ts.map +1 -1
- package/dist/callbacks/manager.js +1 -1
- package/dist/callbacks/manager.js.map +1 -1
- package/dist/chat_history.d.cts +3 -4
- package/dist/chat_history.d.cts.map +1 -1
- package/dist/chat_history.d.ts +3 -4
- package/dist/chat_history.d.ts.map +1 -1
- package/dist/context.d.cts +2 -2
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/context.d.ts.map +1 -1
- package/dist/document_loaders/base.d.cts +2 -3
- package/dist/document_loaders/base.d.cts.map +1 -1
- package/dist/document_loaders/base.d.ts +2 -3
- package/dist/document_loaders/base.d.ts.map +1 -1
- package/dist/document_loaders/langsmith.d.cts +2 -3
- package/dist/document_loaders/langsmith.d.cts.map +1 -1
- package/dist/document_loaders/langsmith.d.ts +2 -3
- package/dist/document_loaders/langsmith.d.ts.map +1 -1
- package/dist/documents/document.d.cts +3 -4
- package/dist/documents/document.d.cts.map +1 -1
- package/dist/documents/document.d.ts +3 -4
- package/dist/documents/document.d.ts.map +1 -1
- package/dist/documents/transformers.d.cts +2 -3
- package/dist/documents/transformers.d.cts.map +1 -1
- package/dist/documents/transformers.d.ts +2 -3
- package/dist/documents/transformers.d.ts.map +1 -1
- package/dist/embeddings.d.cts +3 -4
- package/dist/embeddings.d.cts.map +1 -1
- package/dist/embeddings.d.ts +3 -4
- package/dist/embeddings.d.ts.map +1 -1
- package/dist/errors/index.cjs.map +1 -1
- package/dist/errors/index.d.cts +13 -19
- package/dist/errors/index.d.cts.map +1 -1
- package/dist/errors/index.d.ts +13 -19
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/example_selectors/base.d.cts +1 -2
- package/dist/example_selectors/base.d.cts.map +1 -1
- package/dist/example_selectors/base.d.ts +1 -2
- package/dist/example_selectors/base.d.ts.map +1 -1
- package/dist/example_selectors/conditional.d.cts +5 -6
- package/dist/example_selectors/conditional.d.cts.map +1 -1
- package/dist/example_selectors/conditional.d.ts +5 -6
- package/dist/example_selectors/conditional.d.ts.map +1 -1
- package/dist/example_selectors/length_based.d.cts +2 -3
- package/dist/example_selectors/length_based.d.cts.map +1 -1
- package/dist/example_selectors/length_based.d.ts +2 -3
- package/dist/example_selectors/length_based.d.ts.map +1 -1
- package/dist/example_selectors/semantic_similarity.d.cts +2 -3
- package/dist/example_selectors/semantic_similarity.d.cts.map +1 -1
- package/dist/example_selectors/semantic_similarity.d.ts +2 -3
- package/dist/example_selectors/semantic_similarity.d.ts.map +1 -1
- package/dist/indexing/base.d.cts +9 -10
- package/dist/indexing/base.d.cts.map +1 -1
- package/dist/indexing/base.d.ts +9 -10
- package/dist/indexing/base.d.ts.map +1 -1
- package/dist/indexing/record_manager.d.cts +5 -6
- package/dist/indexing/record_manager.d.cts.map +1 -1
- package/dist/indexing/record_manager.d.ts +5 -6
- package/dist/indexing/record_manager.d.ts.map +1 -1
- package/dist/language_models/base.cjs +1 -1
- package/dist/language_models/base.cjs.map +1 -1
- package/dist/language_models/base.d.cts +24 -25
- package/dist/language_models/base.d.cts.map +1 -1
- package/dist/language_models/base.d.ts +24 -25
- package/dist/language_models/base.d.ts.map +1 -1
- package/dist/language_models/base.js +1 -1
- package/dist/language_models/base.js.map +1 -1
- package/dist/language_models/chat_models.d.cts +9 -10
- package/dist/language_models/chat_models.d.cts.map +1 -1
- package/dist/language_models/chat_models.d.ts +9 -10
- package/dist/language_models/chat_models.d.ts.map +1 -1
- package/dist/language_models/compat.d.cts +2 -3
- package/dist/language_models/compat.d.cts.map +1 -1
- package/dist/language_models/compat.d.ts +2 -3
- package/dist/language_models/compat.d.ts.map +1 -1
- package/dist/language_models/event.d.cts +15 -16
- package/dist/language_models/event.d.cts.map +1 -1
- package/dist/language_models/event.d.ts +15 -16
- package/dist/language_models/event.d.ts.map +1 -1
- package/dist/language_models/llms.d.cts +5 -6
- package/dist/language_models/llms.d.cts.map +1 -1
- package/dist/language_models/llms.d.ts +5 -6
- package/dist/language_models/llms.d.ts.map +1 -1
- package/dist/language_models/openai_completions_stream.d.cts +8 -9
- package/dist/language_models/openai_completions_stream.d.cts.map +1 -1
- package/dist/language_models/openai_completions_stream.d.ts +8 -9
- package/dist/language_models/openai_completions_stream.d.ts.map +1 -1
- package/dist/language_models/profile.d.cts +1 -2
- package/dist/language_models/profile.d.cts.map +1 -1
- package/dist/language_models/profile.d.ts +1 -2
- package/dist/language_models/profile.d.ts.map +1 -1
- package/dist/language_models/stream.d.cts +5 -6
- package/dist/language_models/stream.d.cts.map +1 -1
- package/dist/language_models/stream.d.ts +5 -6
- package/dist/language_models/stream.d.ts.map +1 -1
- package/dist/language_models/structured_output.d.cts +3 -4
- package/dist/language_models/structured_output.d.cts.map +1 -1
- package/dist/language_models/structured_output.d.ts +3 -4
- package/dist/language_models/structured_output.d.ts.map +1 -1
- package/dist/load/import_type.d.cts +2 -3
- package/dist/load/import_type.d.cts.map +1 -1
- package/dist/load/import_type.d.ts +2 -3
- package/dist/load/import_type.d.ts.map +1 -1
- package/dist/load/index.d.cts +2 -3
- package/dist/load/index.d.cts.map +1 -1
- package/dist/load/index.d.ts +2 -3
- package/dist/load/index.d.ts.map +1 -1
- package/dist/load/map_keys.d.cts +1 -2
- package/dist/load/map_keys.d.cts.map +1 -1
- package/dist/load/map_keys.d.ts +1 -2
- package/dist/load/map_keys.d.ts.map +1 -1
- package/dist/load/serializable.d.cts +9 -10
- package/dist/load/serializable.d.cts.map +1 -1
- package/dist/load/serializable.d.ts +9 -10
- package/dist/load/serializable.d.ts.map +1 -1
- package/dist/memory.d.cts +7 -8
- package/dist/memory.d.cts.map +1 -1
- package/dist/memory.d.ts +7 -8
- package/dist/memory.d.ts.map +1 -1
- package/dist/messages/ai.d.cts +6 -7
- package/dist/messages/ai.d.cts.map +1 -1
- package/dist/messages/ai.d.ts +6 -7
- package/dist/messages/ai.d.ts.map +1 -1
- package/dist/messages/base.d.cts +23 -24
- package/dist/messages/base.d.cts.map +1 -1
- package/dist/messages/base.d.ts +23 -24
- package/dist/messages/base.d.ts.map +1 -1
- package/dist/messages/chat.d.cts +5 -6
- package/dist/messages/chat.d.cts.map +1 -1
- package/dist/messages/chat.d.ts +5 -6
- package/dist/messages/chat.d.ts.map +1 -1
- package/dist/messages/content/base.d.cts +1 -2
- package/dist/messages/content/base.d.cts.map +1 -1
- package/dist/messages/content/base.d.ts +1 -2
- package/dist/messages/content/base.d.ts.map +1 -1
- package/dist/messages/content/data.d.cts +18 -19
- package/dist/messages/content/data.d.cts.map +1 -1
- package/dist/messages/content/data.d.ts +18 -19
- package/dist/messages/content/data.d.ts.map +1 -1
- package/dist/messages/content/index.d.cts +4 -5
- package/dist/messages/content/index.d.cts.map +1 -1
- package/dist/messages/content/index.d.ts +4 -5
- package/dist/messages/content/index.d.ts.map +1 -1
- package/dist/messages/content/multimodal.d.cts +2 -3
- package/dist/messages/content/multimodal.d.cts.map +1 -1
- package/dist/messages/content/multimodal.d.ts +2 -3
- package/dist/messages/content/multimodal.d.ts.map +1 -1
- package/dist/messages/content/tools.d.cts +2 -3
- package/dist/messages/content/tools.d.cts.map +1 -1
- package/dist/messages/content/tools.d.ts +2 -3
- package/dist/messages/content/tools.d.ts.map +1 -1
- package/dist/messages/format.d.cts +1 -2
- package/dist/messages/format.d.cts.map +1 -1
- package/dist/messages/format.d.ts +1 -2
- package/dist/messages/format.d.ts.map +1 -1
- package/dist/messages/function.d.cts +5 -6
- package/dist/messages/function.d.cts.map +1 -1
- package/dist/messages/function.d.ts +5 -6
- package/dist/messages/function.d.ts.map +1 -1
- package/dist/messages/human.d.cts +5 -6
- package/dist/messages/human.d.cts.map +1 -1
- package/dist/messages/human.d.ts +5 -6
- package/dist/messages/human.d.ts.map +1 -1
- package/dist/messages/message.d.cts +20 -21
- package/dist/messages/message.d.cts.map +1 -1
- package/dist/messages/message.d.ts +20 -21
- package/dist/messages/message.d.ts.map +1 -1
- package/dist/messages/metadata.d.cts +7 -8
- package/dist/messages/metadata.d.cts.map +1 -1
- package/dist/messages/metadata.d.ts +7 -8
- package/dist/messages/metadata.d.ts.map +1 -1
- package/dist/messages/modifier.d.cts +2 -3
- package/dist/messages/modifier.d.cts.map +1 -1
- package/dist/messages/modifier.d.ts +2 -3
- package/dist/messages/modifier.d.ts.map +1 -1
- package/dist/messages/system.d.cts +5 -6
- package/dist/messages/system.d.cts.map +1 -1
- package/dist/messages/system.d.ts +5 -6
- package/dist/messages/system.d.ts.map +1 -1
- package/dist/messages/tool.d.cts +11 -12
- package/dist/messages/tool.d.cts.map +1 -1
- package/dist/messages/tool.d.ts +11 -12
- package/dist/messages/tool.d.ts.map +1 -1
- package/dist/messages/transformers.d.cts +12 -13
- package/dist/messages/transformers.d.cts.map +1 -1
- package/dist/messages/transformers.d.ts +12 -13
- package/dist/messages/transformers.d.ts.map +1 -1
- package/dist/messages/utils.d.cts +13 -14
- package/dist/messages/utils.d.cts.map +1 -1
- package/dist/messages/utils.d.ts +13 -14
- package/dist/messages/utils.d.ts.map +1 -1
- package/dist/output_parsers/base.d.cts +4 -5
- package/dist/output_parsers/base.d.cts.map +1 -1
- package/dist/output_parsers/base.d.ts +4 -5
- package/dist/output_parsers/base.d.ts.map +1 -1
- package/dist/output_parsers/bytes.d.cts +1 -2
- package/dist/output_parsers/bytes.d.cts.map +1 -1
- package/dist/output_parsers/bytes.d.ts +1 -2
- package/dist/output_parsers/bytes.d.ts.map +1 -1
- package/dist/output_parsers/json.d.cts +2 -2
- package/dist/output_parsers/json.d.cts.map +1 -1
- package/dist/output_parsers/json.d.ts +2 -2
- package/dist/output_parsers/json.d.ts.map +1 -1
- package/dist/output_parsers/list.d.cts +5 -6
- package/dist/output_parsers/list.d.cts.map +1 -1
- package/dist/output_parsers/list.d.ts +5 -6
- package/dist/output_parsers/list.d.ts.map +1 -1
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts +4 -5
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts.map +1 -1
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +4 -5
- package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts.map +1 -1
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts +12 -13
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts.map +1 -1
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +12 -13
- package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts.map +1 -1
- package/dist/output_parsers/standard_schema.d.cts +1 -2
- package/dist/output_parsers/standard_schema.d.cts.map +1 -1
- package/dist/output_parsers/standard_schema.d.ts +1 -2
- package/dist/output_parsers/standard_schema.d.ts.map +1 -1
- package/dist/output_parsers/string.d.cts +1 -2
- package/dist/output_parsers/string.d.cts.map +1 -1
- package/dist/output_parsers/string.d.ts +1 -2
- package/dist/output_parsers/string.d.ts.map +1 -1
- package/dist/output_parsers/structured.d.cts +6 -7
- package/dist/output_parsers/structured.d.cts.map +1 -1
- package/dist/output_parsers/structured.d.ts +6 -7
- package/dist/output_parsers/structured.d.ts.map +1 -1
- package/dist/output_parsers/transform.d.cts +3 -4
- package/dist/output_parsers/transform.d.cts.map +1 -1
- package/dist/output_parsers/transform.d.ts +3 -4
- package/dist/output_parsers/transform.d.ts.map +1 -1
- package/dist/output_parsers/xml.d.cts +6 -7
- package/dist/output_parsers/xml.d.cts.map +1 -1
- package/dist/output_parsers/xml.d.ts +6 -7
- package/dist/output_parsers/xml.d.ts.map +1 -1
- package/dist/outputs.d.cts +9 -10
- package/dist/outputs.d.cts.map +1 -1
- package/dist/outputs.d.ts +9 -10
- package/dist/outputs.d.ts.map +1 -1
- package/dist/prompt_values.d.cts +10 -11
- package/dist/prompt_values.d.cts.map +1 -1
- package/dist/prompt_values.d.ts +10 -11
- package/dist/prompt_values.d.ts.map +1 -1
- package/dist/prompts/base.d.cts +4 -5
- package/dist/prompts/base.d.cts.map +1 -1
- package/dist/prompts/base.d.ts +4 -5
- package/dist/prompts/base.d.ts.map +1 -1
- package/dist/prompts/chat.d.cts +14 -15
- package/dist/prompts/chat.d.cts.map +1 -1
- package/dist/prompts/chat.d.ts +14 -15
- package/dist/prompts/chat.d.ts.map +1 -1
- package/dist/prompts/dict.d.cts +1 -2
- package/dist/prompts/dict.d.cts.map +1 -1
- package/dist/prompts/dict.d.ts +1 -2
- package/dist/prompts/dict.d.ts.map +1 -1
- package/dist/prompts/few_shot.d.cts +4 -5
- package/dist/prompts/few_shot.d.cts.map +1 -1
- package/dist/prompts/few_shot.d.ts +4 -5
- package/dist/prompts/few_shot.d.ts.map +1 -1
- package/dist/prompts/image.d.cts +2 -3
- package/dist/prompts/image.d.cts.map +1 -1
- package/dist/prompts/image.d.ts +2 -3
- package/dist/prompts/image.d.ts.map +1 -1
- package/dist/prompts/pipeline.d.cts +3 -4
- package/dist/prompts/pipeline.d.cts.map +1 -1
- package/dist/prompts/pipeline.d.ts +3 -4
- package/dist/prompts/pipeline.d.ts.map +1 -1
- package/dist/prompts/prompt.d.cts +4 -5
- package/dist/prompts/prompt.d.cts.map +1 -1
- package/dist/prompts/prompt.d.ts +4 -5
- package/dist/prompts/prompt.d.ts.map +1 -1
- package/dist/prompts/serde.d.cts +3 -4
- package/dist/prompts/serde.d.cts.map +1 -1
- package/dist/prompts/serde.d.ts +3 -4
- package/dist/prompts/serde.d.ts.map +1 -1
- package/dist/prompts/string.d.cts +1 -2
- package/dist/prompts/string.d.cts.map +1 -1
- package/dist/prompts/string.d.ts +1 -2
- package/dist/prompts/string.d.ts.map +1 -1
- package/dist/prompts/structured.d.cts +2 -3
- package/dist/prompts/structured.d.cts.map +1 -1
- package/dist/prompts/structured.d.ts +2 -3
- package/dist/prompts/structured.d.ts.map +1 -1
- package/dist/prompts/template.d.cts +12 -13
- package/dist/prompts/template.d.cts.map +1 -1
- package/dist/prompts/template.d.ts +12 -13
- package/dist/prompts/template.d.ts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.cts +1 -2
- package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
- package/dist/retrievers/document_compressors/index.d.ts +1 -2
- package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
- package/dist/retrievers/index.d.cts +3 -4
- package/dist/retrievers/index.d.cts.map +1 -1
- package/dist/retrievers/index.d.ts +3 -4
- package/dist/retrievers/index.d.ts.map +1 -1
- package/dist/runnables/base.d.cts +23 -23
- package/dist/runnables/base.d.cts.map +1 -1
- package/dist/runnables/base.d.ts +23 -23
- package/dist/runnables/base.d.ts.map +1 -1
- package/dist/runnables/branch.d.cts +3 -4
- package/dist/runnables/branch.d.cts.map +1 -1
- package/dist/runnables/branch.d.ts +3 -4
- package/dist/runnables/branch.d.ts.map +1 -1
- package/dist/runnables/config.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-utils.d.cts","names":[],"sources":["../../src/types/type-utils.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"type-utils.d.cts","names":[],"sources":["../../src/types/type-utils.ts"],"mappings":";YAEY,SAAS,GAAG,gBAAgB,KAAK,KAAK,GAAG,KAAK,QAAQ,KAAK,GAAG;YAG9D,YAAY,QACrB,WAAW,KAAK,EAAE,oBAAoB,YAAY,EAAE,MAAM,EAAE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region src/types/type-utils.d.ts
|
|
2
|
-
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
3
|
-
type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; };
|
|
2
|
+
export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
3
|
+
export type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P]; };
|
|
4
4
|
//#endregion
|
|
5
|
-
export { DeepPartial, Optional };
|
|
6
5
|
//# sourceMappingURL=type-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-utils.d.ts","names":[],"sources":["../../src/types/type-utils.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"type-utils.d.ts","names":[],"sources":["../../src/types/type-utils.ts"],"mappings":";YAEY,SAAS,GAAG,gBAAgB,KAAK,KAAK,GAAG,KAAK,QAAQ,KAAK,GAAG;YAG9D,YAAY,QACrB,WAAW,KAAK,EAAE,oBAAoB,YAAY,EAAE,MAAM,EAAE"}
|
|
@@ -5,10 +5,10 @@ type RateLimitClassification = {
|
|
|
5
5
|
retryAfterMs?: number;
|
|
6
6
|
reason: string;
|
|
7
7
|
};
|
|
8
|
-
declare function parseRetryAfterMs(headerValue: string | null | undefined): number | undefined;
|
|
9
|
-
declare function classifyRateLimitError(error: unknown): RateLimitClassification | undefined;
|
|
10
|
-
type FailedAttemptHandler = (error: any) => any;
|
|
11
|
-
interface AsyncCallerParams {
|
|
8
|
+
export declare function parseRetryAfterMs(headerValue: string | null | undefined): number | undefined;
|
|
9
|
+
export declare function classifyRateLimitError(error: unknown): RateLimitClassification | undefined;
|
|
10
|
+
export type FailedAttemptHandler = (error: any) => any;
|
|
11
|
+
export interface AsyncCallerParams {
|
|
12
12
|
/**
|
|
13
13
|
* The maximum number of concurrent calls that can be made.
|
|
14
14
|
* Defaults to `Infinity`, which means no limit.
|
|
@@ -26,7 +26,7 @@ interface AsyncCallerParams {
|
|
|
26
26
|
*/
|
|
27
27
|
onFailedAttempt?: FailedAttemptHandler;
|
|
28
28
|
}
|
|
29
|
-
interface AsyncCallerCallOptions {
|
|
29
|
+
export interface AsyncCallerCallOptions {
|
|
30
30
|
signal?: AbortSignal;
|
|
31
31
|
maxRetries?: number;
|
|
32
32
|
}
|
|
@@ -43,7 +43,7 @@ interface AsyncCallerCallOptions {
|
|
|
43
43
|
* means that by default, each call will be retried up to 6 times, with an
|
|
44
44
|
* exponential backoff between each attempt.
|
|
45
45
|
*/
|
|
46
|
-
declare class AsyncCaller {
|
|
46
|
+
export declare class AsyncCaller {
|
|
47
47
|
protected maxConcurrency: AsyncCallerParams["maxConcurrency"];
|
|
48
48
|
protected maxRetries: AsyncCallerParams["maxRetries"];
|
|
49
49
|
protected onFailedAttempt: AsyncCallerParams["onFailedAttempt"];
|
|
@@ -55,5 +55,4 @@ declare class AsyncCaller {
|
|
|
55
55
|
fetch(...args: Parameters<typeof fetch>): ReturnType<typeof fetch>;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
export { AsyncCaller, AsyncCallerCallOptions, AsyncCallerParams, FailedAttemptHandler, classifyRateLimitError, parseRetryAfterMs };
|
|
59
58
|
//# sourceMappingURL=async_caller.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async_caller.d.cts","names":[],"sources":["../../src/utils/async_caller.ts"],"mappings":";KAmCK;KAEA;EACH,QAAQ;EACR;EACA;;
|
|
1
|
+
{"version":3,"file":"async_caller.d.cts","names":[],"sources":["../../src/utils/async_caller.ts"],"mappings":";KAmCK;KAEA;EACH,QAAQ;EACR;EACA;;wBA8Ic,kBACd;wBAyBc,uBACd,iBACC;YA0HS,wBAAwB;iBAEnB;;;;;EAKf;;;;;EAKA;;;;;;EAMA,kBAAkB;;iBAGH;EACf,SAAS;EACT;;;;;;;;;;;;;;;qBAgBW;YACD,gBAAgB;YAEhB,YAAY;YAEZ,iBAAiB;UAEnB;EAER,YAAY,QAAQ;EAad,KAAK,iBAAiB,cAAc,MAAM,MAAM,cACpD,UAAU,MACP,MAAM,WAAW,KACnB,QAAQ,QAAQ,WAAW;UAItB;EAmCR,gBAAgB,iBAAiB,cAAc,MAAM,MAAM,cACzD,SAAS,wBACT,UAAU,MACP,MAAM,WAAW,KACnB,QAAQ,QAAQ,WAAW;EAuB9B,SAAS,MAAM,kBAAkB,SAAS,kBAAkB"}
|
|
@@ -5,10 +5,10 @@ type RateLimitClassification = {
|
|
|
5
5
|
retryAfterMs?: number;
|
|
6
6
|
reason: string;
|
|
7
7
|
};
|
|
8
|
-
declare function parseRetryAfterMs(headerValue: string | null | undefined): number | undefined;
|
|
9
|
-
declare function classifyRateLimitError(error: unknown): RateLimitClassification | undefined;
|
|
10
|
-
type FailedAttemptHandler = (error: any) => any;
|
|
11
|
-
interface AsyncCallerParams {
|
|
8
|
+
export declare function parseRetryAfterMs(headerValue: string | null | undefined): number | undefined;
|
|
9
|
+
export declare function classifyRateLimitError(error: unknown): RateLimitClassification | undefined;
|
|
10
|
+
export type FailedAttemptHandler = (error: any) => any;
|
|
11
|
+
export interface AsyncCallerParams {
|
|
12
12
|
/**
|
|
13
13
|
* The maximum number of concurrent calls that can be made.
|
|
14
14
|
* Defaults to `Infinity`, which means no limit.
|
|
@@ -26,7 +26,7 @@ interface AsyncCallerParams {
|
|
|
26
26
|
*/
|
|
27
27
|
onFailedAttempt?: FailedAttemptHandler;
|
|
28
28
|
}
|
|
29
|
-
interface AsyncCallerCallOptions {
|
|
29
|
+
export interface AsyncCallerCallOptions {
|
|
30
30
|
signal?: AbortSignal;
|
|
31
31
|
maxRetries?: number;
|
|
32
32
|
}
|
|
@@ -43,7 +43,7 @@ interface AsyncCallerCallOptions {
|
|
|
43
43
|
* means that by default, each call will be retried up to 6 times, with an
|
|
44
44
|
* exponential backoff between each attempt.
|
|
45
45
|
*/
|
|
46
|
-
declare class AsyncCaller {
|
|
46
|
+
export declare class AsyncCaller {
|
|
47
47
|
protected maxConcurrency: AsyncCallerParams["maxConcurrency"];
|
|
48
48
|
protected maxRetries: AsyncCallerParams["maxRetries"];
|
|
49
49
|
protected onFailedAttempt: AsyncCallerParams["onFailedAttempt"];
|
|
@@ -55,5 +55,4 @@ declare class AsyncCaller {
|
|
|
55
55
|
fetch(...args: Parameters<typeof fetch>): ReturnType<typeof fetch>;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
export { AsyncCaller, AsyncCallerCallOptions, AsyncCallerParams, FailedAttemptHandler, classifyRateLimitError, parseRetryAfterMs };
|
|
59
58
|
//# sourceMappingURL=async_caller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async_caller.d.ts","names":[],"sources":["../../src/utils/async_caller.ts"],"mappings":";KAmCK;KAEA;EACH,QAAQ;EACR;EACA;;
|
|
1
|
+
{"version":3,"file":"async_caller.d.ts","names":[],"sources":["../../src/utils/async_caller.ts"],"mappings":";KAmCK;KAEA;EACH,QAAQ;EACR;EACA;;wBA8Ic,kBACd;wBAyBc,uBACd,iBACC;YA0HS,wBAAwB;iBAEnB;;;;;EAKf;;;;;EAKA;;;;;;EAMA,kBAAkB;;iBAGH;EACf,SAAS;EACT;;;;;;;;;;;;;;;qBAgBW;YACD,gBAAgB;YAEhB,YAAY;YAEZ,iBAAiB;UAEnB;EAER,YAAY,QAAQ;EAad,KAAK,iBAAiB,cAAc,MAAM,MAAM,cACpD,UAAU,MACP,MAAM,WAAW,KACnB,QAAQ,QAAQ,WAAW;UAItB;EAmCR,gBAAgB,iBAAiB,cAAc,MAAM,MAAM,cACzD,SAAS,wBACT,UAAU,MACP,MAAM,WAAW,KACnB,QAAQ,QAAQ,WAAW;EAuB9B,SAAS,MAAM,kBAAkB,SAAS,kBAAkB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
//#region src/utils/chunk_array.d.ts
|
|
2
|
-
declare const chunkArray: <T>(arr: T[], chunkSize: number) => T[][];
|
|
2
|
+
export declare const chunkArray: <T>(arr: T[], chunkSize: number) => T[][];
|
|
3
3
|
//#endregion
|
|
4
|
-
export { chunkArray };
|
|
5
4
|
//# sourceMappingURL=chunk_array.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_array.d.cts","names":[],"sources":["../../src/utils/chunk_array.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"chunk_array.d.cts","names":[],"sources":["../../src/utils/chunk_array.ts"],"mappings":";qBAAa,aAAc,GAAC,KAAO,KAAG,sBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk_array.d.ts","names":[],"sources":["../../src/utils/chunk_array.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"chunk_array.d.ts","names":[],"sources":["../../src/utils/chunk_array.ts"],"mappings":";qBAAa,aAAc,GAAC,KAAO,KAAG,sBAAmB"}
|
package/dist/utils/context.d.cts
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
* // The items will be indented to match " " (4 spaces)
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
declare function context(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
41
|
+
export declare function context(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { context };
|
|
44
43
|
//# sourceMappingURL=context.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/utils/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/utils/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuCgB,QACd,SAAS,yBACN"}
|
package/dist/utils/context.d.ts
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
* // The items will be indented to match " " (4 spaces)
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
declare function context(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
41
|
+
export declare function context(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { context };
|
|
44
43
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","names":[],"sources":["../../src/utils/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"context.d.ts","names":[],"sources":["../../src/utils/context.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuCgB,QACd,SAAS,yBACN"}
|
package/dist/utils/env.d.cts
CHANGED
|
@@ -9,20 +9,19 @@ declare global {
|
|
|
9
9
|
};
|
|
10
10
|
} | undefined;
|
|
11
11
|
}
|
|
12
|
-
declare const isBrowser: () => boolean;
|
|
13
|
-
declare const isWebWorker: () => boolean;
|
|
14
|
-
declare const isJsDom: () => boolean;
|
|
15
|
-
declare const isDeno: () => boolean;
|
|
16
|
-
declare const isNode: () => boolean;
|
|
17
|
-
declare const getEnv: () => string;
|
|
18
|
-
type RuntimeEnvironment = {
|
|
12
|
+
export declare const isBrowser: () => boolean;
|
|
13
|
+
export declare const isWebWorker: () => boolean;
|
|
14
|
+
export declare const isJsDom: () => boolean;
|
|
15
|
+
export declare const isDeno: () => boolean;
|
|
16
|
+
export declare const isNode: () => boolean;
|
|
17
|
+
export declare const getEnv: () => string;
|
|
18
|
+
export type RuntimeEnvironment = {
|
|
19
19
|
library: string;
|
|
20
20
|
libraryVersion?: string;
|
|
21
21
|
runtime: string;
|
|
22
22
|
runtimeVersion?: string;
|
|
23
23
|
};
|
|
24
|
-
declare function getRuntimeEnvironment(): RuntimeEnvironment;
|
|
25
|
-
declare function getEnvironmentVariable(name: string): string | undefined;
|
|
24
|
+
export declare function getRuntimeEnvironment(): RuntimeEnvironment;
|
|
25
|
+
export declare function getEnvironmentVariable(name: string): string | undefined;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { RuntimeEnvironment, getEnv, getEnvironmentVariable, getRuntimeEnvironment, isBrowser, isDeno, isJsDom, isNode, isWebWorker };
|
|
28
27
|
//# sourceMappingURL=env.d.cts.map
|
package/dist/utils/env.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/utils/env.ts"],"mappings":";QACQ;QACA;IAEA;MACE;;IAEF;MACE,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/utils/env.ts"],"mappings":";QACQ;QACA;IAEA;MACE;;IAEF;MACE,MAAM;;;;qBAMH;qBAGA;qBAKA;qBAMA;qBAGA;qBAMA;YAmBD;EACV;EACA;EACA;EACA;;wBAKc,yBAAyB;wBAYzB,uBAAuB"}
|
package/dist/utils/env.d.ts
CHANGED
|
@@ -9,20 +9,19 @@ declare global {
|
|
|
9
9
|
};
|
|
10
10
|
} | undefined;
|
|
11
11
|
}
|
|
12
|
-
declare const isBrowser: () => boolean;
|
|
13
|
-
declare const isWebWorker: () => boolean;
|
|
14
|
-
declare const isJsDom: () => boolean;
|
|
15
|
-
declare const isDeno: () => boolean;
|
|
16
|
-
declare const isNode: () => boolean;
|
|
17
|
-
declare const getEnv: () => string;
|
|
18
|
-
type RuntimeEnvironment = {
|
|
12
|
+
export declare const isBrowser: () => boolean;
|
|
13
|
+
export declare const isWebWorker: () => boolean;
|
|
14
|
+
export declare const isJsDom: () => boolean;
|
|
15
|
+
export declare const isDeno: () => boolean;
|
|
16
|
+
export declare const isNode: () => boolean;
|
|
17
|
+
export declare const getEnv: () => string;
|
|
18
|
+
export type RuntimeEnvironment = {
|
|
19
19
|
library: string;
|
|
20
20
|
libraryVersion?: string;
|
|
21
21
|
runtime: string;
|
|
22
22
|
runtimeVersion?: string;
|
|
23
23
|
};
|
|
24
|
-
declare function getRuntimeEnvironment(): RuntimeEnvironment;
|
|
25
|
-
declare function getEnvironmentVariable(name: string): string | undefined;
|
|
24
|
+
export declare function getRuntimeEnvironment(): RuntimeEnvironment;
|
|
25
|
+
export declare function getEnvironmentVariable(name: string): string | undefined;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { RuntimeEnvironment, getEnv, getEnvironmentVariable, getRuntimeEnvironment, isBrowser, isDeno, isJsDom, isNode, isWebWorker };
|
|
28
27
|
//# sourceMappingURL=env.d.ts.map
|
package/dist/utils/env.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","names":[],"sources":["../../src/utils/env.ts"],"mappings":";QACQ;QACA;IAEA;MACE;;IAEF;MACE,MAAM;;;;
|
|
1
|
+
{"version":3,"file":"env.d.ts","names":[],"sources":["../../src/utils/env.ts"],"mappings":";QACQ;QACA;IAEA;MACE;;IAEF;MACE,MAAM;;;;qBAMH;qBAGA;qBAKA;qBAMA;qBAGA;qBAMA;YAmBD;EACV;EACA;EACA;EACA;;wBAKc,yBAAyB;wBAYzB,uBAAuB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IterableReadableStream } from "./stream.cjs";
|
|
2
2
|
//#region src/utils/event_source_parse.d.ts
|
|
3
|
-
declare const EventStreamContentType = "text/event-stream";
|
|
3
|
+
export declare const EventStreamContentType = "text/event-stream";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a message sent in an event stream
|
|
6
6
|
* https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
|
|
7
7
|
*/
|
|
8
|
-
interface EventSourceMessage {
|
|
8
|
+
export interface EventSourceMessage {
|
|
9
9
|
/** The event ID to set the EventSource object's last event ID value. */
|
|
10
10
|
id: string;
|
|
11
11
|
/** A string identifying the type of event described. */
|
|
@@ -21,14 +21,14 @@ interface EventSourceMessage {
|
|
|
21
21
|
* @param onChunk A function that will be called on each new byte chunk in the stream.
|
|
22
22
|
* @returns {Promise<void>} A promise that will be resolved when the stream closes.
|
|
23
23
|
*/
|
|
24
|
-
declare function getBytes(stream: ReadableStream<Uint8Array> | AsyncIterable<any>, onChunk: (arr: Uint8Array, flush?: boolean) => void): Promise<void>;
|
|
24
|
+
export declare function getBytes(stream: ReadableStream<Uint8Array> | AsyncIterable<any>, onChunk: (arr: Uint8Array, flush?: boolean) => void): Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Parses arbitary byte chunks into EventSource line buffers.
|
|
27
27
|
* Each line should be of the format "field: value" and ends with \r, \n, or \r\n.
|
|
28
28
|
* @param onLine A function that will be called on each new EventSource line.
|
|
29
29
|
* @returns A function that should be called for each incoming byte chunk.
|
|
30
30
|
*/
|
|
31
|
-
declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?: boolean) => void): (arr: Uint8Array, flush?: boolean) => void;
|
|
31
|
+
export declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?: boolean) => void): (arr: Uint8Array, flush?: boolean) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Parses line buffers into EventSourceMessages.
|
|
34
34
|
* @param onId A function that will be called on each `id` field.
|
|
@@ -36,8 +36,7 @@ declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?
|
|
|
36
36
|
* @param onMessage A function that will be called on each message.
|
|
37
37
|
* @returns A function that should be called for each incoming line buffer.
|
|
38
38
|
*/
|
|
39
|
-
declare function getMessages(onMessage?: (msg: EventSourceMessage) => void, onId?: (id: string) => void, onRetry?: (retry: number) => void): (line: Uint8Array, fieldLength: number, flush?: boolean) => void;
|
|
40
|
-
declare function convertEventStreamToIterableReadableDataStream(stream: ReadableStream, onMetadataEvent?: (e: unknown) => unknown): IterableReadableStream<any>;
|
|
39
|
+
export declare function getMessages(onMessage?: (msg: EventSourceMessage) => void, onId?: (id: string) => void, onRetry?: (retry: number) => void): (line: Uint8Array, fieldLength: number, flush?: boolean) => void;
|
|
40
|
+
export declare function convertEventStreamToIterableReadableDataStream(stream: ReadableStream, onMetadataEvent?: (e: unknown) => unknown): IterableReadableStream<any>;
|
|
41
41
|
//#endregion
|
|
42
|
-
export { EventSourceMessage, EventStreamContentType, convertEventStreamToIterableReadableDataStream, getBytes, getLines, getMessages };
|
|
43
42
|
//# sourceMappingURL=event_source_parse.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event_source_parse.d.cts","names":[],"sources":["../../src/utils/event_source_parse.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"event_source_parse.d.cts","names":[],"sources":["../../src/utils/event_source_parse.ts"],"mappings":";;qBAOa;;;;;iBAMI;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;;wBASoB,SAEpB,QAAQ,eAAe,cAAc,oBACrC,UAAU,KAAK,YAAY,2BAAwB;;;;;;;wBAoDrC,SACd,SAAS,MAAM,YAAY,qBAAqB,4BAAwB,KAQ3C,YAAU;;;;;;;;wBA4EzB,YACd,aAAa,KAAK,6BAClB,QAAQ,qBACR,WAAW,0BAAsB,MAOzB,YAAU,qBACG;wBAqEP,+CACd,QAAQ,gBACR,mBAAmB,yBAAsB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IterableReadableStream } from "./stream.js";
|
|
2
2
|
//#region src/utils/event_source_parse.d.ts
|
|
3
|
-
declare const EventStreamContentType = "text/event-stream";
|
|
3
|
+
export declare const EventStreamContentType = "text/event-stream";
|
|
4
4
|
/**
|
|
5
5
|
* Represents a message sent in an event stream
|
|
6
6
|
* https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
|
|
7
7
|
*/
|
|
8
|
-
interface EventSourceMessage {
|
|
8
|
+
export interface EventSourceMessage {
|
|
9
9
|
/** The event ID to set the EventSource object's last event ID value. */
|
|
10
10
|
id: string;
|
|
11
11
|
/** A string identifying the type of event described. */
|
|
@@ -21,14 +21,14 @@ interface EventSourceMessage {
|
|
|
21
21
|
* @param onChunk A function that will be called on each new byte chunk in the stream.
|
|
22
22
|
* @returns {Promise<void>} A promise that will be resolved when the stream closes.
|
|
23
23
|
*/
|
|
24
|
-
declare function getBytes(stream: ReadableStream<Uint8Array> | AsyncIterable<any>, onChunk: (arr: Uint8Array, flush?: boolean) => void): Promise<void>;
|
|
24
|
+
export declare function getBytes(stream: ReadableStream<Uint8Array> | AsyncIterable<any>, onChunk: (arr: Uint8Array, flush?: boolean) => void): Promise<void>;
|
|
25
25
|
/**
|
|
26
26
|
* Parses arbitary byte chunks into EventSource line buffers.
|
|
27
27
|
* Each line should be of the format "field: value" and ends with \r, \n, or \r\n.
|
|
28
28
|
* @param onLine A function that will be called on each new EventSource line.
|
|
29
29
|
* @returns A function that should be called for each incoming byte chunk.
|
|
30
30
|
*/
|
|
31
|
-
declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?: boolean) => void): (arr: Uint8Array, flush?: boolean) => void;
|
|
31
|
+
export declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?: boolean) => void): (arr: Uint8Array, flush?: boolean) => void;
|
|
32
32
|
/**
|
|
33
33
|
* Parses line buffers into EventSourceMessages.
|
|
34
34
|
* @param onId A function that will be called on each `id` field.
|
|
@@ -36,8 +36,7 @@ declare function getLines(onLine: (line: Uint8Array, fieldLength: number, flush?
|
|
|
36
36
|
* @param onMessage A function that will be called on each message.
|
|
37
37
|
* @returns A function that should be called for each incoming line buffer.
|
|
38
38
|
*/
|
|
39
|
-
declare function getMessages(onMessage?: (msg: EventSourceMessage) => void, onId?: (id: string) => void, onRetry?: (retry: number) => void): (line: Uint8Array, fieldLength: number, flush?: boolean) => void;
|
|
40
|
-
declare function convertEventStreamToIterableReadableDataStream(stream: ReadableStream, onMetadataEvent?: (e: unknown) => unknown): IterableReadableStream<any>;
|
|
39
|
+
export declare function getMessages(onMessage?: (msg: EventSourceMessage) => void, onId?: (id: string) => void, onRetry?: (retry: number) => void): (line: Uint8Array, fieldLength: number, flush?: boolean) => void;
|
|
40
|
+
export declare function convertEventStreamToIterableReadableDataStream(stream: ReadableStream, onMetadataEvent?: (e: unknown) => unknown): IterableReadableStream<any>;
|
|
41
41
|
//#endregion
|
|
42
|
-
export { EventSourceMessage, EventStreamContentType, convertEventStreamToIterableReadableDataStream, getBytes, getLines, getMessages };
|
|
43
42
|
//# sourceMappingURL=event_source_parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event_source_parse.d.ts","names":[],"sources":["../../src/utils/event_source_parse.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"event_source_parse.d.ts","names":[],"sources":["../../src/utils/event_source_parse.ts"],"mappings":";;qBAOa;;;;;iBAMI;;EAEf;;EAEA;;EAEA;;EAEA;;;;;;;;wBASoB,SAEpB,QAAQ,eAAe,cAAc,oBACrC,UAAU,KAAK,YAAY,2BAAwB;;;;;;;wBAoDrC,SACd,SAAS,MAAM,YAAY,qBAAqB,4BAAwB,KAQ3C,YAAU;;;;;;;;wBA4EzB,YACd,aAAa,KAAK,6BAClB,QAAQ,qBACR,WAAW,0BAAsB,MAOzB,YAAU,qBACG;wBAqEP,+CACd,QAAQ,gBACR,mBAAmB,yBAAsB"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
//#region src/utils/fast-json-patch/src/core.d.ts
|
|
2
|
-
type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
3
|
-
interface Validator<T> {
|
|
2
|
+
export type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
3
|
+
export interface Validator<T> {
|
|
4
4
|
(operation: Operation, index: number, document: T, existingPathFragment: string): void;
|
|
5
5
|
}
|
|
6
|
-
interface OperationResult<T> {
|
|
6
|
+
export interface OperationResult<T> {
|
|
7
7
|
removed?: any;
|
|
8
8
|
test?: boolean;
|
|
9
9
|
newDocument: T;
|
|
10
10
|
}
|
|
11
|
-
interface BaseOperation {
|
|
11
|
+
export interface BaseOperation {
|
|
12
12
|
path: string;
|
|
13
13
|
}
|
|
14
|
-
interface AddOperation<T> extends BaseOperation {
|
|
14
|
+
export interface AddOperation<T> extends BaseOperation {
|
|
15
15
|
op: "add";
|
|
16
16
|
value: T;
|
|
17
17
|
}
|
|
18
|
-
interface RemoveOperation extends BaseOperation {
|
|
18
|
+
export interface RemoveOperation extends BaseOperation {
|
|
19
19
|
op: "remove";
|
|
20
20
|
}
|
|
21
|
-
interface ReplaceOperation<T> extends BaseOperation {
|
|
21
|
+
export interface ReplaceOperation<T> extends BaseOperation {
|
|
22
22
|
op: "replace";
|
|
23
23
|
value: T;
|
|
24
24
|
}
|
|
25
|
-
interface MoveOperation extends BaseOperation {
|
|
25
|
+
export interface MoveOperation extends BaseOperation {
|
|
26
26
|
op: "move";
|
|
27
27
|
from: string;
|
|
28
28
|
}
|
|
29
|
-
interface CopyOperation extends BaseOperation {
|
|
29
|
+
export interface CopyOperation extends BaseOperation {
|
|
30
30
|
op: "copy";
|
|
31
31
|
from: string;
|
|
32
32
|
}
|
|
33
|
-
interface TestOperation<T> extends BaseOperation {
|
|
33
|
+
export interface TestOperation<T> extends BaseOperation {
|
|
34
34
|
op: "test";
|
|
35
35
|
value: T;
|
|
36
36
|
}
|
|
37
|
-
interface GetOperation<T> extends BaseOperation {
|
|
37
|
+
export interface GetOperation<T> extends BaseOperation {
|
|
38
38
|
op: "_get";
|
|
39
39
|
value: T;
|
|
40
40
|
}
|
|
41
|
-
interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
41
|
+
export interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
42
42
|
newDocument: T;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -55,7 +55,6 @@ interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
|
55
55
|
* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.
|
|
56
56
|
* @return An array of `{newDocument, result}` after the patch
|
|
57
57
|
*/
|
|
58
|
-
declare function applyPatch<T>(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): PatchResult<T>;
|
|
58
|
+
export declare function applyPatch<T>(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): PatchResult<T>;
|
|
59
59
|
//#endregion
|
|
60
|
-
export { AddOperation, BaseOperation, CopyOperation, GetOperation, MoveOperation, Operation, OperationResult, PatchResult, RemoveOperation, ReplaceOperation, TestOperation, Validator, applyPatch };
|
|
61
60
|
//# sourceMappingURL=core.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.cts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/core.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"core.d.cts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/core.ts"],"mappings":";YAsBY,YACR,oBACA,kBACA,wBACA,gBACA,gBACA,qBACA;iBAEa,UAAU;GAEvB,WAAW,WACX,eACA,UAAU,GACV;;iBAIa,gBAAgB;EAC/B;EACA;EACA,aAAa;;iBAGE;EACf;;iBAGe,aAAa,WAAW;EACvC;EACA,OAAO;;iBAGQ,wBAAwB;EACvC;;iBAGe,iBAAiB,WAAW;EAC3C;EACA,OAAO;;iBAGQ,sBAAsB;EACrC;EACA;;iBAGe,sBAAsB;EACrC;EACA;;iBAGe,cAAc,WAAW;EACxC;EACA,OAAO;;iBAGQ,aAAa,WAAW;EACvC;EACA,OAAO;;iBAEQ,YAAY,WAAW,MAAM,gBAAgB;EAC5D,aAAa;;;;;;;;;;;;;;;;wBA4VC,WAAW,GACzB,UAAU,GACV,OAAO,cAAc,YACrB,8BAA8B,UAAU,IACxC,0BACA,sCACC,YAAY"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
//#region src/utils/fast-json-patch/src/core.d.ts
|
|
2
|
-
type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
3
|
-
interface Validator<T> {
|
|
2
|
+
export type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
3
|
+
export interface Validator<T> {
|
|
4
4
|
(operation: Operation, index: number, document: T, existingPathFragment: string): void;
|
|
5
5
|
}
|
|
6
|
-
interface OperationResult<T> {
|
|
6
|
+
export interface OperationResult<T> {
|
|
7
7
|
removed?: any;
|
|
8
8
|
test?: boolean;
|
|
9
9
|
newDocument: T;
|
|
10
10
|
}
|
|
11
|
-
interface BaseOperation {
|
|
11
|
+
export interface BaseOperation {
|
|
12
12
|
path: string;
|
|
13
13
|
}
|
|
14
|
-
interface AddOperation<T> extends BaseOperation {
|
|
14
|
+
export interface AddOperation<T> extends BaseOperation {
|
|
15
15
|
op: "add";
|
|
16
16
|
value: T;
|
|
17
17
|
}
|
|
18
|
-
interface RemoveOperation extends BaseOperation {
|
|
18
|
+
export interface RemoveOperation extends BaseOperation {
|
|
19
19
|
op: "remove";
|
|
20
20
|
}
|
|
21
|
-
interface ReplaceOperation<T> extends BaseOperation {
|
|
21
|
+
export interface ReplaceOperation<T> extends BaseOperation {
|
|
22
22
|
op: "replace";
|
|
23
23
|
value: T;
|
|
24
24
|
}
|
|
25
|
-
interface MoveOperation extends BaseOperation {
|
|
25
|
+
export interface MoveOperation extends BaseOperation {
|
|
26
26
|
op: "move";
|
|
27
27
|
from: string;
|
|
28
28
|
}
|
|
29
|
-
interface CopyOperation extends BaseOperation {
|
|
29
|
+
export interface CopyOperation extends BaseOperation {
|
|
30
30
|
op: "copy";
|
|
31
31
|
from: string;
|
|
32
32
|
}
|
|
33
|
-
interface TestOperation<T> extends BaseOperation {
|
|
33
|
+
export interface TestOperation<T> extends BaseOperation {
|
|
34
34
|
op: "test";
|
|
35
35
|
value: T;
|
|
36
36
|
}
|
|
37
|
-
interface GetOperation<T> extends BaseOperation {
|
|
37
|
+
export interface GetOperation<T> extends BaseOperation {
|
|
38
38
|
op: "_get";
|
|
39
39
|
value: T;
|
|
40
40
|
}
|
|
41
|
-
interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
41
|
+
export interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
42
42
|
newDocument: T;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -55,7 +55,6 @@ interface PatchResult<T> extends Array<OperationResult<T>> {
|
|
|
55
55
|
* @param banPrototypeModifications Whether to ban modifications to `__proto__`, defaults to `true`.
|
|
56
56
|
* @return An array of `{newDocument, result}` after the patch
|
|
57
57
|
*/
|
|
58
|
-
declare function applyPatch<T>(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): PatchResult<T>;
|
|
58
|
+
export declare function applyPatch<T>(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument?: boolean, banPrototypeModifications?: boolean): PatchResult<T>;
|
|
59
59
|
//#endregion
|
|
60
|
-
export { AddOperation, BaseOperation, CopyOperation, GetOperation, MoveOperation, Operation, OperationResult, PatchResult, RemoveOperation, ReplaceOperation, TestOperation, Validator, applyPatch };
|
|
61
60
|
//# sourceMappingURL=core.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/core.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"core.d.ts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/core.ts"],"mappings":";YAsBY,YACR,oBACA,kBACA,wBACA,gBACA,gBACA,qBACA;iBAEa,UAAU;GAEvB,WAAW,WACX,eACA,UAAU,GACV;;iBAIa,gBAAgB;EAC/B;EACA;EACA,aAAa;;iBAGE;EACf;;iBAGe,aAAa,WAAW;EACvC;EACA,OAAO;;iBAGQ,wBAAwB;EACvC;;iBAGe,iBAAiB,WAAW;EAC3C;EACA,OAAO;;iBAGQ,sBAAsB;EACrC;EACA;;iBAGe,sBAAsB;EACrC;EACA;;iBAGe,cAAc,WAAW;EACxC;EACA,OAAO;;iBAGQ,aAAa,WAAW;EACvC;EACA,OAAO;;iBAEQ,YAAY,WAAW,MAAM,gBAAgB;EAC5D,aAAa;;;;;;;;;;;;;;;;wBA4VC,WAAW,GACzB,UAAU,GACV,OAAO,cAAc,YACrB,8BAA8B,UAAU,IACxC,0BACA,sCACC,YAAY"}
|
|
@@ -3,7 +3,6 @@ import { Operation } from "./core.cjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* Create an array of patches from the differences in two objects
|
|
5
5
|
*/
|
|
6
|
-
declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
|
|
6
|
+
export declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
|
|
7
7
|
//#endregion
|
|
8
|
-
export { compare };
|
|
9
8
|
//# sourceMappingURL=duplex.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duplex.d.cts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/duplex.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"duplex.d.cts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/duplex.ts"],"mappings":";;;;;wBAmQgB,QACd,OAAO,SAAS,YAChB,OAAO,SAAS,YAChB,uBACC"}
|
|
@@ -3,7 +3,6 @@ import { Operation } from "./core.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Create an array of patches from the differences in two objects
|
|
5
5
|
*/
|
|
6
|
-
declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
|
|
6
|
+
export declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];
|
|
7
7
|
//#endregion
|
|
8
|
-
export { compare };
|
|
9
8
|
//# sourceMappingURL=duplex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duplex.d.ts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/duplex.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"duplex.d.ts","names":[],"sources":["../../../../src/utils/fast-json-patch/src/duplex.ts"],"mappings":";;;;;wBAmQgB,QACd,OAAO,SAAS,YAChB,OAAO,SAAS,YAChB,uBACC"}
|
package/dist/utils/format.d.cts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* };
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
type Converter<T, U> = (input: T) => U;
|
|
22
|
+
export type Converter<T, U> = (input: T) => U;
|
|
23
23
|
/**
|
|
24
24
|
* A pair of bidirectional conversion functions for transforming data between two formats.
|
|
25
25
|
*
|
|
@@ -49,10 +49,9 @@ type Converter<T, U> = (input: T) => U;
|
|
|
49
49
|
* const backToStandard = openAIConverter.decode(openaiBlock);
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
type ConverterPair<T, U> = {
|
|
52
|
+
export type ConverterPair<T, U> = {
|
|
53
53
|
encode: Converter<T, U>;
|
|
54
54
|
decode: Converter<U, T>;
|
|
55
55
|
};
|
|
56
56
|
//#endregion
|
|
57
|
-
export { Converter, ConverterPair };
|
|
58
57
|
//# sourceMappingURL=format.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.cts","names":[],"sources":["../../src/utils/format.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"format.d.cts","names":[],"sources":["../../src/utils/format.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;YAoBY,UAAU,GAAG,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BhC,cAAc,GAAG;EAC3B,QAAQ,UAAU,GAAG;EACrB,QAAQ,UAAU,GAAG"}
|
package/dist/utils/format.d.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* };
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
type Converter<T, U> = (input: T) => U;
|
|
22
|
+
export type Converter<T, U> = (input: T) => U;
|
|
23
23
|
/**
|
|
24
24
|
* A pair of bidirectional conversion functions for transforming data between two formats.
|
|
25
25
|
*
|
|
@@ -49,10 +49,9 @@ type Converter<T, U> = (input: T) => U;
|
|
|
49
49
|
* const backToStandard = openAIConverter.decode(openaiBlock);
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
type ConverterPair<T, U> = {
|
|
52
|
+
export type ConverterPair<T, U> = {
|
|
53
53
|
encode: Converter<T, U>;
|
|
54
54
|
decode: Converter<U, T>;
|
|
55
55
|
};
|
|
56
56
|
//#endregion
|
|
57
|
-
export { Converter, ConverterPair };
|
|
58
57
|
//# sourceMappingURL=format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","names":[],"sources":["../../src/utils/format.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"format.d.ts","names":[],"sources":["../../src/utils/format.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;YAoBY,UAAU,GAAG,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+BhC,cAAc,GAAG;EAC3B,QAAQ,UAAU,GAAG;EACrB,QAAQ,UAAU,GAAG"}
|
|
@@ -11,7 +11,7 @@ import { StructuredToolInterface, StructuredToolParams, isLangChainTool, isRunna
|
|
|
11
11
|
* @param {StructuredToolInterface | RunnableToolLike} tool The tool to convert to an OpenAI function.
|
|
12
12
|
* @returns {FunctionDefinition} The inputted tool in OpenAI function format.
|
|
13
13
|
*/
|
|
14
|
-
declare function convertToOpenAIFunction(tool: StructuredToolInterface | RunnableToolLike | StructuredToolParams, fields?: {
|
|
14
|
+
export declare function convertToOpenAIFunction(tool: StructuredToolInterface | RunnableToolLike | StructuredToolParams, fields?: {
|
|
15
15
|
/**
|
|
16
16
|
* If `true`, model output is guaranteed to exactly match the JSON Schema
|
|
17
17
|
* provided in the function definition.
|
|
@@ -27,7 +27,7 @@ declare function convertToOpenAIFunction(tool: StructuredToolInterface | Runnabl
|
|
|
27
27
|
* @param {StructuredToolInterface | Record<string, any> | RunnableToolLike} tool The tool to convert to an OpenAI tool.
|
|
28
28
|
* @returns {ToolDefinition} The inputted tool in OpenAI tool format.
|
|
29
29
|
*/
|
|
30
|
-
declare function convertToOpenAITool(tool: StructuredToolInterface | Record<string, any> | RunnableToolLike, fields?: {
|
|
30
|
+
export declare function convertToOpenAITool(tool: StructuredToolInterface | Record<string, any> | RunnableToolLike, fields?: {
|
|
31
31
|
/**
|
|
32
32
|
* If `true`, model output is guaranteed to exactly match the JSON Schema
|
|
33
33
|
* provided in the function definition.
|
|
@@ -35,5 +35,5 @@ declare function convertToOpenAITool(tool: StructuredToolInterface | Record<stri
|
|
|
35
35
|
strict?: boolean;
|
|
36
36
|
} | number): ToolDefinition;
|
|
37
37
|
//#endregion
|
|
38
|
-
export {
|
|
38
|
+
export { isLangChainTool, isRunnableToolLike, isStructuredTool, isStructuredToolParams };
|
|
39
39
|
//# sourceMappingURL=function_calling.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function_calling.d.cts","names":[],"sources":["../../src/utils/function_calling.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"function_calling.d.cts","names":[],"sources":["../../src/utils/function_calling.ts"],"mappings":";;;;;;;;;;;;;wBA2BgB,wBACd,MAAM,0BAA0B,mBAAmB,sBACnD;;;;;EAMM;aAGL;;;;;;;;;;wBAsBa,oBAEd,MAAM,0BAA0B,sBAAsB,kBACtD;;;;;EAMM;aAGL"}
|