@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
|
@@ -5,13 +5,13 @@ import "../messages/index.cjs";
|
|
|
5
5
|
import { BaseOutputParser, FormatInstructionsOptions } from "./base.cjs";
|
|
6
6
|
import { z } from "zod/v3";
|
|
7
7
|
//#region src/output_parsers/structured.d.ts
|
|
8
|
-
type JsonMarkdownStructuredOutputParserInput = {
|
|
8
|
+
export type JsonMarkdownStructuredOutputParserInput = {
|
|
9
9
|
interpolationDepth?: number;
|
|
10
10
|
};
|
|
11
|
-
interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
|
|
11
|
+
export interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
|
|
12
12
|
interpolationDepth?: number;
|
|
13
13
|
}
|
|
14
|
-
declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
|
|
14
|
+
export declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
|
|
15
15
|
schema: T;
|
|
16
16
|
static lc_name(): string;
|
|
17
17
|
lc_namespace: string[];
|
|
@@ -57,7 +57,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
|
|
|
57
57
|
* A specific type of `StructuredOutputParser` that parses JSON data
|
|
58
58
|
* formatted as a markdown code snippet.
|
|
59
59
|
*/
|
|
60
|
-
declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
|
|
60
|
+
export declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
|
|
61
61
|
static lc_name(): string;
|
|
62
62
|
getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;
|
|
63
63
|
private _schemaToInstruction;
|
|
@@ -72,14 +72,14 @@ declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> exten
|
|
|
72
72
|
[x: string]: string;
|
|
73
73
|
}>>;
|
|
74
74
|
}
|
|
75
|
-
interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
|
|
75
|
+
export interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
|
|
76
76
|
inputSchema: T;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* A type of `StructuredOutputParser` that handles asymmetric input and
|
|
80
80
|
* output schemas.
|
|
81
81
|
*/
|
|
82
|
-
declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
|
|
82
|
+
export declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
|
|
83
83
|
private structuredInputParser;
|
|
84
84
|
constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);
|
|
85
85
|
/**
|
|
@@ -93,5 +93,4 @@ declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType
|
|
|
93
93
|
getFormatInstructions(): string;
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
|
-
export { AsymmetricStructuredOutputParser, AsymmetricStructuredOutputParserFields, JsonMarkdownFormatInstructionsOptions, JsonMarkdownStructuredOutputParser, JsonMarkdownStructuredOutputParserInput, StructuredOutputParser };
|
|
97
96
|
//# sourceMappingURL=structured.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured.d.cts","names":[],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"structured.d.cts","names":["_$___load_serializable_js0.SerializedNotImplemented"],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;YAsBY;EACV;;iBAGe,8CAA8C;EAC7D;;qBAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2BA;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;qBAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;iBAeG,uCACf,UAAU;EAEV,aAAa;;;;;;8BAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
|
|
@@ -5,13 +5,13 @@ import "../messages/index.js";
|
|
|
5
5
|
import { BaseOutputParser, FormatInstructionsOptions } from "./base.js";
|
|
6
6
|
import { z } from "zod/v3";
|
|
7
7
|
//#region src/output_parsers/structured.d.ts
|
|
8
|
-
type JsonMarkdownStructuredOutputParserInput = {
|
|
8
|
+
export type JsonMarkdownStructuredOutputParserInput = {
|
|
9
9
|
interpolationDepth?: number;
|
|
10
10
|
};
|
|
11
|
-
interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
|
|
11
|
+
export interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
|
|
12
12
|
interpolationDepth?: number;
|
|
13
13
|
}
|
|
14
|
-
declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
|
|
14
|
+
export declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
|
|
15
15
|
schema: T;
|
|
16
16
|
static lc_name(): string;
|
|
17
17
|
lc_namespace: string[];
|
|
@@ -57,7 +57,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
|
|
|
57
57
|
* A specific type of `StructuredOutputParser` that parses JSON data
|
|
58
58
|
* formatted as a markdown code snippet.
|
|
59
59
|
*/
|
|
60
|
-
declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
|
|
60
|
+
export declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
|
|
61
61
|
static lc_name(): string;
|
|
62
62
|
getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;
|
|
63
63
|
private _schemaToInstruction;
|
|
@@ -72,14 +72,14 @@ declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> exten
|
|
|
72
72
|
[x: string]: string;
|
|
73
73
|
}>>;
|
|
74
74
|
}
|
|
75
|
-
interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
|
|
75
|
+
export interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
|
|
76
76
|
inputSchema: T;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* A type of `StructuredOutputParser` that handles asymmetric input and
|
|
80
80
|
* output schemas.
|
|
81
81
|
*/
|
|
82
|
-
declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
|
|
82
|
+
export declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
|
|
83
83
|
private structuredInputParser;
|
|
84
84
|
constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);
|
|
85
85
|
/**
|
|
@@ -93,5 +93,4 @@ declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType
|
|
|
93
93
|
getFormatInstructions(): string;
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
|
-
export { AsymmetricStructuredOutputParser, AsymmetricStructuredOutputParserFields, JsonMarkdownFormatInstructionsOptions, JsonMarkdownStructuredOutputParser, JsonMarkdownStructuredOutputParserInput, StructuredOutputParser };
|
|
97
96
|
//# sourceMappingURL=structured.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured.d.ts","names":[],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"structured.d.ts","names":["_$___load_serializable_js0.SerializedNotImplemented"],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;YAsBY;EACV;;iBAGe,8CAA8C;EAC7D;;qBAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2BA;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;qBAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;iBAeG,uCACf,UAAU;EAEV,aAAa;;;;;;8BAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
|
|
@@ -6,7 +6,7 @@ import { BaseOutputParser } from "./base.cjs";
|
|
|
6
6
|
/**
|
|
7
7
|
* Class to parse the output of an LLM call that also allows streaming inputs.
|
|
8
8
|
*/
|
|
9
|
-
declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
|
|
9
|
+
export declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
|
|
10
10
|
_transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<T>;
|
|
11
11
|
/**
|
|
12
12
|
* Transforms an asynchronous generator of input into an asynchronous
|
|
@@ -17,7 +17,7 @@ declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutput
|
|
|
17
17
|
*/
|
|
18
18
|
transform(inputGenerator: AsyncGenerator<string | BaseMessage>, options: BaseCallbackConfig): AsyncGenerator<T>;
|
|
19
19
|
}
|
|
20
|
-
type BaseCumulativeTransformOutputParserInput = {
|
|
20
|
+
export type BaseCumulativeTransformOutputParserInput = {
|
|
21
21
|
diff?: boolean;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -25,7 +25,7 @@ type BaseCumulativeTransformOutputParserInput = {
|
|
|
25
25
|
* extends the `BaseTransformOutputParser` class and provides a method for
|
|
26
26
|
* converting parsed outputs into a diff format.
|
|
27
27
|
*/
|
|
28
|
-
declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
|
|
28
|
+
export declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
|
|
29
29
|
protected diff: boolean;
|
|
30
30
|
constructor(fields?: BaseCumulativeTransformOutputParserInput);
|
|
31
31
|
protected abstract _diff(prev: any | undefined, next: any): any;
|
|
@@ -34,5 +34,4 @@ declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends
|
|
|
34
34
|
getFormatInstructions(): string;
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
|
-
export { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput, BaseTransformOutputParser };
|
|
38
37
|
//# sourceMappingURL=transform.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.cts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"transform.d.cts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;8BAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;YAYR;EAA6C;;;;;;;8BAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
|
|
@@ -6,7 +6,7 @@ import { BaseOutputParser } from "./base.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* Class to parse the output of an LLM call that also allows streaming inputs.
|
|
8
8
|
*/
|
|
9
|
-
declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
|
|
9
|
+
export declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
|
|
10
10
|
_transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<T>;
|
|
11
11
|
/**
|
|
12
12
|
* Transforms an asynchronous generator of input into an asynchronous
|
|
@@ -17,7 +17,7 @@ declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutput
|
|
|
17
17
|
*/
|
|
18
18
|
transform(inputGenerator: AsyncGenerator<string | BaseMessage>, options: BaseCallbackConfig): AsyncGenerator<T>;
|
|
19
19
|
}
|
|
20
|
-
type BaseCumulativeTransformOutputParserInput = {
|
|
20
|
+
export type BaseCumulativeTransformOutputParserInput = {
|
|
21
21
|
diff?: boolean;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -25,7 +25,7 @@ type BaseCumulativeTransformOutputParserInput = {
|
|
|
25
25
|
* extends the `BaseTransformOutputParser` class and provides a method for
|
|
26
26
|
* converting parsed outputs into a diff format.
|
|
27
27
|
*/
|
|
28
|
-
declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
|
|
28
|
+
export declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
|
|
29
29
|
protected diff: boolean;
|
|
30
30
|
constructor(fields?: BaseCumulativeTransformOutputParserInput);
|
|
31
31
|
protected abstract _diff(prev: any | undefined, next: any): any;
|
|
@@ -34,5 +34,4 @@ declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends
|
|
|
34
34
|
getFormatInstructions(): string;
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
|
-
export { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput, BaseTransformOutputParser };
|
|
38
37
|
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;8BAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;YAYR;EAA6C;;;;;;;8BAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
|
|
@@ -2,21 +2,21 @@ import { ChatGeneration, Generation } from "../outputs.cjs";
|
|
|
2
2
|
import { Operation } from "../utils/fast-json-patch/src/core.cjs";
|
|
3
3
|
import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "./transform.cjs";
|
|
4
4
|
//#region src/output_parsers/xml.d.ts
|
|
5
|
-
declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
|
|
6
|
-
interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
|
|
5
|
+
export declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
|
|
6
|
+
export interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
|
|
7
7
|
/**
|
|
8
8
|
* Optional list of tags that the output should conform to.
|
|
9
9
|
* Only used in formatting of the prompt.
|
|
10
10
|
*/
|
|
11
11
|
tags?: string[];
|
|
12
12
|
}
|
|
13
|
-
type Content = string | undefined | Array<{
|
|
13
|
+
export type Content = string | undefined | Array<{
|
|
14
14
|
[key: string]: Content;
|
|
15
15
|
}>;
|
|
16
|
-
type XMLResult = {
|
|
16
|
+
export type XMLResult = {
|
|
17
17
|
[key: string]: Content;
|
|
18
18
|
};
|
|
19
|
-
declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
|
|
19
|
+
export declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
|
|
20
20
|
tags?: string[];
|
|
21
21
|
constructor(fields?: XMLOutputParserFields);
|
|
22
22
|
static lc_name(): string;
|
|
@@ -27,7 +27,6 @@ declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLRes
|
|
|
27
27
|
parse(text: string): Promise<XMLResult>;
|
|
28
28
|
getFormatInstructions(): string;
|
|
29
29
|
}
|
|
30
|
-
declare function parseXMLMarkdown(s: string): XMLResult;
|
|
30
|
+
export declare function parseXMLMarkdown(s: string): XMLResult;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { Content, XMLOutputParser, XMLOutputParserFields, XMLResult, XML_FORMAT_INSTRUCTIONS, parseXMLMarkdown };
|
|
33
32
|
//# sourceMappingURL=xml.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.cts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"xml.d.cts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;qBAQa;iBAeI,8BAA8B;;;;;EAK7C;;YAGU,+BAA+B;GAAS,cAAc;;YAEtD;GACT,cAAc;;qBAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;wBAsCc,iBAAiB,YAAY"}
|
|
@@ -2,21 +2,21 @@ import { ChatGeneration, Generation } from "../outputs.js";
|
|
|
2
2
|
import { Operation } from "../utils/fast-json-patch/src/core.js";
|
|
3
3
|
import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "./transform.js";
|
|
4
4
|
//#region src/output_parsers/xml.d.ts
|
|
5
|
-
declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
|
|
6
|
-
interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
|
|
5
|
+
export declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
|
|
6
|
+
export interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
|
|
7
7
|
/**
|
|
8
8
|
* Optional list of tags that the output should conform to.
|
|
9
9
|
* Only used in formatting of the prompt.
|
|
10
10
|
*/
|
|
11
11
|
tags?: string[];
|
|
12
12
|
}
|
|
13
|
-
type Content = string | undefined | Array<{
|
|
13
|
+
export type Content = string | undefined | Array<{
|
|
14
14
|
[key: string]: Content;
|
|
15
15
|
}>;
|
|
16
|
-
type XMLResult = {
|
|
16
|
+
export type XMLResult = {
|
|
17
17
|
[key: string]: Content;
|
|
18
18
|
};
|
|
19
|
-
declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
|
|
19
|
+
export declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
|
|
20
20
|
tags?: string[];
|
|
21
21
|
constructor(fields?: XMLOutputParserFields);
|
|
22
22
|
static lc_name(): string;
|
|
@@ -27,7 +27,6 @@ declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLRes
|
|
|
27
27
|
parse(text: string): Promise<XMLResult>;
|
|
28
28
|
getFormatInstructions(): string;
|
|
29
29
|
}
|
|
30
|
-
declare function parseXMLMarkdown(s: string): XMLResult;
|
|
30
|
+
export declare function parseXMLMarkdown(s: string): XMLResult;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { Content, XMLOutputParser, XMLOutputParserFields, XMLResult, XML_FORMAT_INSTRUCTIONS, parseXMLMarkdown };
|
|
33
32
|
//# sourceMappingURL=xml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xml.d.ts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"xml.d.ts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;qBAQa;iBAeI,8BAA8B;;;;;EAK7C;;YAGU,+BAA+B;GAAS,cAAc;;YAEtD;GACT,cAAc;;qBAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;wBAsCc,iBAAiB,YAAY"}
|
package/dist/outputs.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseMessage, BaseMessageChunk } from "./messages/base.cjs";
|
|
2
2
|
//#region src/outputs.d.ts
|
|
3
|
-
declare const RUN_KEY = "__run";
|
|
3
|
+
export declare const RUN_KEY = "__run";
|
|
4
4
|
/**
|
|
5
5
|
* Output of a single generation.
|
|
6
6
|
*/
|
|
7
|
-
interface Generation {
|
|
7
|
+
export interface Generation {
|
|
8
8
|
/**
|
|
9
9
|
* Generated text output
|
|
10
10
|
*/
|
|
@@ -15,14 +15,14 @@ interface Generation {
|
|
|
15
15
|
*/
|
|
16
16
|
generationInfo?: Record<string, any>;
|
|
17
17
|
}
|
|
18
|
-
type GenerationChunkFields = {
|
|
18
|
+
export type GenerationChunkFields = {
|
|
19
19
|
text: string;
|
|
20
20
|
generationInfo?: Record<string, any>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Chunk of a single generation. Used for streaming.
|
|
24
24
|
*/
|
|
25
|
-
declare class GenerationChunk implements Generation {
|
|
25
|
+
export declare class GenerationChunk implements Generation {
|
|
26
26
|
text: string;
|
|
27
27
|
generationInfo?: Record<string, any>;
|
|
28
28
|
constructor(fields: GenerationChunkFields);
|
|
@@ -31,7 +31,7 @@ declare class GenerationChunk implements Generation {
|
|
|
31
31
|
/**
|
|
32
32
|
* Contains all relevant information returned by an LLM.
|
|
33
33
|
*/
|
|
34
|
-
type LLMResult = {
|
|
34
|
+
export type LLMResult = {
|
|
35
35
|
/**
|
|
36
36
|
* List of the things generated. Each input could have multiple {@link Generation | generations}, hence this is a list of lists.
|
|
37
37
|
*/
|
|
@@ -45,21 +45,20 @@ type LLMResult = {
|
|
|
45
45
|
*/
|
|
46
46
|
[RUN_KEY]?: Record<string, any>;
|
|
47
47
|
};
|
|
48
|
-
interface ChatGeneration extends Generation {
|
|
48
|
+
export interface ChatGeneration extends Generation {
|
|
49
49
|
message: BaseMessage;
|
|
50
50
|
}
|
|
51
|
-
type ChatGenerationChunkFields = GenerationChunkFields & {
|
|
51
|
+
export type ChatGenerationChunkFields = GenerationChunkFields & {
|
|
52
52
|
message: BaseMessageChunk;
|
|
53
53
|
};
|
|
54
|
-
declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
|
|
54
|
+
export declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
|
|
55
55
|
message: BaseMessageChunk;
|
|
56
56
|
constructor(fields: ChatGenerationChunkFields);
|
|
57
57
|
concat(chunk: ChatGenerationChunk): ChatGenerationChunk;
|
|
58
58
|
}
|
|
59
|
-
interface ChatResult {
|
|
59
|
+
export interface ChatResult {
|
|
60
60
|
generations: ChatGeneration[];
|
|
61
61
|
llmOutput?: Record<string, any>;
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
export { ChatGeneration, ChatGenerationChunk, ChatGenerationChunkFields, ChatResult, Generation, GenerationChunk, GenerationChunkFields, LLMResult, RUN_KEY };
|
|
65
64
|
//# sourceMappingURL=outputs.d.cts.map
|
package/dist/outputs.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputs.d.cts","names":[],"sources":["../src/outputs.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"outputs.d.cts","names":[],"sources":["../src/outputs.ts"],"mappings":";;qBAEa;;;;iBAKI;;;;EAIf;;;;;EAMA,iBAAiB;;YAGP;EACV;EAEA,iBAAiB;;;;;qBAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;YActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;iBAGG,uBAAuB;EACtC,SAAS;;YAGC,4BAA4B;EACtC,SAAS;;qBAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;iBAYlB;EACf,aAAa;EAGb,YAAY"}
|
package/dist/outputs.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseMessage, BaseMessageChunk } from "./messages/base.js";
|
|
2
2
|
//#region src/outputs.d.ts
|
|
3
|
-
declare const RUN_KEY = "__run";
|
|
3
|
+
export declare const RUN_KEY = "__run";
|
|
4
4
|
/**
|
|
5
5
|
* Output of a single generation.
|
|
6
6
|
*/
|
|
7
|
-
interface Generation {
|
|
7
|
+
export interface Generation {
|
|
8
8
|
/**
|
|
9
9
|
* Generated text output
|
|
10
10
|
*/
|
|
@@ -15,14 +15,14 @@ interface Generation {
|
|
|
15
15
|
*/
|
|
16
16
|
generationInfo?: Record<string, any>;
|
|
17
17
|
}
|
|
18
|
-
type GenerationChunkFields = {
|
|
18
|
+
export type GenerationChunkFields = {
|
|
19
19
|
text: string;
|
|
20
20
|
generationInfo?: Record<string, any>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Chunk of a single generation. Used for streaming.
|
|
24
24
|
*/
|
|
25
|
-
declare class GenerationChunk implements Generation {
|
|
25
|
+
export declare class GenerationChunk implements Generation {
|
|
26
26
|
text: string;
|
|
27
27
|
generationInfo?: Record<string, any>;
|
|
28
28
|
constructor(fields: GenerationChunkFields);
|
|
@@ -31,7 +31,7 @@ declare class GenerationChunk implements Generation {
|
|
|
31
31
|
/**
|
|
32
32
|
* Contains all relevant information returned by an LLM.
|
|
33
33
|
*/
|
|
34
|
-
type LLMResult = {
|
|
34
|
+
export type LLMResult = {
|
|
35
35
|
/**
|
|
36
36
|
* List of the things generated. Each input could have multiple {@link Generation | generations}, hence this is a list of lists.
|
|
37
37
|
*/
|
|
@@ -45,21 +45,20 @@ type LLMResult = {
|
|
|
45
45
|
*/
|
|
46
46
|
[RUN_KEY]?: Record<string, any>;
|
|
47
47
|
};
|
|
48
|
-
interface ChatGeneration extends Generation {
|
|
48
|
+
export interface ChatGeneration extends Generation {
|
|
49
49
|
message: BaseMessage;
|
|
50
50
|
}
|
|
51
|
-
type ChatGenerationChunkFields = GenerationChunkFields & {
|
|
51
|
+
export type ChatGenerationChunkFields = GenerationChunkFields & {
|
|
52
52
|
message: BaseMessageChunk;
|
|
53
53
|
};
|
|
54
|
-
declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
|
|
54
|
+
export declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
|
|
55
55
|
message: BaseMessageChunk;
|
|
56
56
|
constructor(fields: ChatGenerationChunkFields);
|
|
57
57
|
concat(chunk: ChatGenerationChunk): ChatGenerationChunk;
|
|
58
58
|
}
|
|
59
|
-
interface ChatResult {
|
|
59
|
+
export interface ChatResult {
|
|
60
60
|
generations: ChatGeneration[];
|
|
61
61
|
llmOutput?: Record<string, any>;
|
|
62
62
|
}
|
|
63
63
|
//#endregion
|
|
64
|
-
export { ChatGeneration, ChatGenerationChunk, ChatGenerationChunkFields, ChatResult, Generation, GenerationChunk, GenerationChunkFields, LLMResult, RUN_KEY };
|
|
65
64
|
//# sourceMappingURL=outputs.d.ts.map
|
package/dist/outputs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outputs.d.ts","names":[],"sources":["../src/outputs.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"outputs.d.ts","names":[],"sources":["../src/outputs.ts"],"mappings":";;qBAEa;;;;iBAKI;;;;EAIf;;;;;EAMA,iBAAiB;;YAGP;EACV;EAEA,iBAAiB;;;;;qBAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;YActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;iBAGG,uBAAuB;EACtC,SAAS;;YAGC,4BAA4B;EACtC,SAAS;;qBAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;iBAYlB;EACf,aAAa;EAGb,YAAY"}
|
package/dist/prompt_values.d.cts
CHANGED
|
@@ -3,20 +3,20 @@ import { BaseMessage } from "./messages/base.cjs";
|
|
|
3
3
|
import { HumanMessage } from "./messages/human.cjs";
|
|
4
4
|
import { MessageStructure, MessageToolSet, MessageType } from "./messages/message.cjs";
|
|
5
5
|
//#region src/prompt_values.d.ts
|
|
6
|
-
interface BasePromptValueInterface extends Serializable {
|
|
6
|
+
export interface BasePromptValueInterface extends Serializable {
|
|
7
7
|
toString(): string;
|
|
8
8
|
toChatMessages(): BaseMessage[];
|
|
9
9
|
}
|
|
10
|
-
interface StringPromptValueInterface extends BasePromptValueInterface {
|
|
10
|
+
export interface StringPromptValueInterface extends BasePromptValueInterface {
|
|
11
11
|
value: string;
|
|
12
12
|
}
|
|
13
|
-
interface ChatPromptValueInterface extends BasePromptValueInterface {
|
|
13
|
+
export interface ChatPromptValueInterface extends BasePromptValueInterface {
|
|
14
14
|
messages: BaseMessage[];
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Base PromptValue class. All prompt values should extend this class.
|
|
18
18
|
*/
|
|
19
|
-
declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
|
|
19
|
+
export declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
|
|
20
20
|
abstract toString(): string;
|
|
21
21
|
abstract toChatMessages(): BaseMessage[];
|
|
22
22
|
}
|
|
@@ -24,7 +24,7 @@ declare abstract class BasePromptValue extends Serializable implements BasePromp
|
|
|
24
24
|
* Represents a prompt value as a string. It extends the BasePromptValue
|
|
25
25
|
* class and overrides the toString and toChatMessages methods.
|
|
26
26
|
*/
|
|
27
|
-
declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
|
|
27
|
+
export declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
|
|
28
28
|
static lc_name(): string;
|
|
29
29
|
lc_namespace: string[];
|
|
30
30
|
lc_serializable: boolean;
|
|
@@ -36,14 +36,14 @@ declare class StringPromptValue extends BasePromptValue implements StringPromptV
|
|
|
36
36
|
/**
|
|
37
37
|
* Interface for the fields of a ChatPromptValue.
|
|
38
38
|
*/
|
|
39
|
-
interface ChatPromptValueFields {
|
|
39
|
+
export interface ChatPromptValueFields {
|
|
40
40
|
messages: BaseMessage[];
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Class that represents a chat prompt value. It extends the
|
|
44
44
|
* BasePromptValue and includes an array of BaseMessage instances.
|
|
45
45
|
*/
|
|
46
|
-
declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
|
|
46
|
+
export declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
|
|
47
47
|
lc_namespace: string[];
|
|
48
48
|
lc_serializable: boolean;
|
|
49
49
|
static lc_name(): string;
|
|
@@ -53,20 +53,20 @@ declare class ChatPromptValue extends BasePromptValue implements ChatPromptValue
|
|
|
53
53
|
toString(): string;
|
|
54
54
|
toChatMessages(): BaseMessage<MessageStructure<MessageToolSet>, MessageType>[];
|
|
55
55
|
}
|
|
56
|
-
type ImageContent = {
|
|
56
|
+
export type ImageContent = {
|
|
57
57
|
/** Specifies the detail level of the image. */
|
|
58
58
|
detail?: "auto" | "low" | "high";
|
|
59
59
|
/** Either a URL of the image or the base64 encoded image data. */
|
|
60
60
|
url: string;
|
|
61
61
|
};
|
|
62
|
-
interface ImagePromptValueFields {
|
|
62
|
+
export interface ImagePromptValueFields {
|
|
63
63
|
imageUrl: ImageContent;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Class that represents an image prompt value. It extends the
|
|
67
67
|
* BasePromptValue and includes an ImageURL instance.
|
|
68
68
|
*/
|
|
69
|
-
declare class ImagePromptValue extends BasePromptValue {
|
|
69
|
+
export declare class ImagePromptValue extends BasePromptValue {
|
|
70
70
|
lc_namespace: string[];
|
|
71
71
|
lc_serializable: boolean;
|
|
72
72
|
static lc_name(): string;
|
|
@@ -79,5 +79,4 @@ declare class ImagePromptValue extends BasePromptValue {
|
|
|
79
79
|
toChatMessages(): HumanMessage<MessageStructure<MessageToolSet>>[];
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
-
export { BasePromptValue, BasePromptValueInterface, ChatPromptValue, ChatPromptValueFields, ChatPromptValueInterface, ImageContent, ImagePromptValue, ImagePromptValueFields, StringPromptValue, StringPromptValueInterface };
|
|
83
82
|
//# sourceMappingURL=prompt_values.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_values.d.cts","names":[],"sources":["../src/prompt_values.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"prompt_values.d.cts","names":["_$__messages_message_js0.MessageToolSet","_$__messages_message_js0.MessageStructure","_$__messages_message_js0.MessageType"],"sources":["../src/prompt_values.ts"],"mappings":";;;;;iBAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;iBAGH,mCAAmC;EAClD;;iBAGe,iCAAiC;EAChD,UAAU;;;;;8BAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;qBAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAAC,iBAvBHD;;;;;iBA+BI;EACf,UAAU;;;;;;qBAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAAC,iBAhBMD,iBAgBNE;;YAKJ;;EAEV;;EAGA;;iBAGe;EACf,UAAU;;;;;;qBAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAAD,iBAhBMD"}
|
package/dist/prompt_values.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import { BaseMessage } from "./messages/base.js";
|
|
|
3
3
|
import { HumanMessage } from "./messages/human.js";
|
|
4
4
|
import { MessageStructure, MessageToolSet, MessageType } from "./messages/message.js";
|
|
5
5
|
//#region src/prompt_values.d.ts
|
|
6
|
-
interface BasePromptValueInterface extends Serializable {
|
|
6
|
+
export interface BasePromptValueInterface extends Serializable {
|
|
7
7
|
toString(): string;
|
|
8
8
|
toChatMessages(): BaseMessage[];
|
|
9
9
|
}
|
|
10
|
-
interface StringPromptValueInterface extends BasePromptValueInterface {
|
|
10
|
+
export interface StringPromptValueInterface extends BasePromptValueInterface {
|
|
11
11
|
value: string;
|
|
12
12
|
}
|
|
13
|
-
interface ChatPromptValueInterface extends BasePromptValueInterface {
|
|
13
|
+
export interface ChatPromptValueInterface extends BasePromptValueInterface {
|
|
14
14
|
messages: BaseMessage[];
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Base PromptValue class. All prompt values should extend this class.
|
|
18
18
|
*/
|
|
19
|
-
declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
|
|
19
|
+
export declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
|
|
20
20
|
abstract toString(): string;
|
|
21
21
|
abstract toChatMessages(): BaseMessage[];
|
|
22
22
|
}
|
|
@@ -24,7 +24,7 @@ declare abstract class BasePromptValue extends Serializable implements BasePromp
|
|
|
24
24
|
* Represents a prompt value as a string. It extends the BasePromptValue
|
|
25
25
|
* class and overrides the toString and toChatMessages methods.
|
|
26
26
|
*/
|
|
27
|
-
declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
|
|
27
|
+
export declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
|
|
28
28
|
static lc_name(): string;
|
|
29
29
|
lc_namespace: string[];
|
|
30
30
|
lc_serializable: boolean;
|
|
@@ -36,14 +36,14 @@ declare class StringPromptValue extends BasePromptValue implements StringPromptV
|
|
|
36
36
|
/**
|
|
37
37
|
* Interface for the fields of a ChatPromptValue.
|
|
38
38
|
*/
|
|
39
|
-
interface ChatPromptValueFields {
|
|
39
|
+
export interface ChatPromptValueFields {
|
|
40
40
|
messages: BaseMessage[];
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Class that represents a chat prompt value. It extends the
|
|
44
44
|
* BasePromptValue and includes an array of BaseMessage instances.
|
|
45
45
|
*/
|
|
46
|
-
declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
|
|
46
|
+
export declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
|
|
47
47
|
lc_namespace: string[];
|
|
48
48
|
lc_serializable: boolean;
|
|
49
49
|
static lc_name(): string;
|
|
@@ -53,20 +53,20 @@ declare class ChatPromptValue extends BasePromptValue implements ChatPromptValue
|
|
|
53
53
|
toString(): string;
|
|
54
54
|
toChatMessages(): BaseMessage<MessageStructure<MessageToolSet>, MessageType>[];
|
|
55
55
|
}
|
|
56
|
-
type ImageContent = {
|
|
56
|
+
export type ImageContent = {
|
|
57
57
|
/** Specifies the detail level of the image. */
|
|
58
58
|
detail?: "auto" | "low" | "high";
|
|
59
59
|
/** Either a URL of the image or the base64 encoded image data. */
|
|
60
60
|
url: string;
|
|
61
61
|
};
|
|
62
|
-
interface ImagePromptValueFields {
|
|
62
|
+
export interface ImagePromptValueFields {
|
|
63
63
|
imageUrl: ImageContent;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Class that represents an image prompt value. It extends the
|
|
67
67
|
* BasePromptValue and includes an ImageURL instance.
|
|
68
68
|
*/
|
|
69
|
-
declare class ImagePromptValue extends BasePromptValue {
|
|
69
|
+
export declare class ImagePromptValue extends BasePromptValue {
|
|
70
70
|
lc_namespace: string[];
|
|
71
71
|
lc_serializable: boolean;
|
|
72
72
|
static lc_name(): string;
|
|
@@ -79,5 +79,4 @@ declare class ImagePromptValue extends BasePromptValue {
|
|
|
79
79
|
toChatMessages(): HumanMessage<MessageStructure<MessageToolSet>>[];
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
-
export { BasePromptValue, BasePromptValueInterface, ChatPromptValue, ChatPromptValueFields, ChatPromptValueInterface, ImageContent, ImagePromptValue, ImagePromptValueFields, StringPromptValue, StringPromptValueInterface };
|
|
83
82
|
//# sourceMappingURL=prompt_values.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_values.d.ts","names":[],"sources":["../src/prompt_values.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"prompt_values.d.ts","names":["_$__messages_message_js0.MessageToolSet","_$__messages_message_js0.MessageStructure","_$__messages_message_js0.MessageType"],"sources":["../src/prompt_values.ts"],"mappings":";;;;;iBAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;iBAGH,mCAAmC;EAClD;;iBAGe,iCAAiC;EAChD,UAAU;;;;;8BAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;qBAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAAC,iBAvBHD;;;;;iBA+BI;EACf,UAAU;;;;;;qBAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAAC,iBAhBMD,iBAgBNE;;YAKJ;;EAEV;;EAGA;;iBAGe;EACf,UAAU;;;;;;qBAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAAD,iBAhBMD"}
|
package/dist/prompts/base.d.cts
CHANGED
|
@@ -6,12 +6,12 @@ import { Runnable } from "../runnables/base.cjs";
|
|
|
6
6
|
import { BaseOutputParser } from "../output_parsers/base.cjs";
|
|
7
7
|
import "../output_parsers/index.cjs";
|
|
8
8
|
//#region src/prompts/base.d.ts
|
|
9
|
-
type TypedPromptInputValues<RunInput> = InputValues<StringWithAutocomplete<Extract<keyof RunInput, string>>>;
|
|
10
|
-
type Example = Record<string, string>;
|
|
9
|
+
export type TypedPromptInputValues<RunInput> = InputValues<StringWithAutocomplete<Extract<keyof RunInput, string>>>;
|
|
10
|
+
export type Example = Record<string, string>;
|
|
11
11
|
/**
|
|
12
12
|
* Input common to all prompt templates.
|
|
13
13
|
*/
|
|
14
|
-
interface BasePromptTemplateInput<InputVariables extends InputValues = any, PartialVariableName extends string = any> {
|
|
14
|
+
export interface BasePromptTemplateInput<InputVariables extends InputValues = any, PartialVariableName extends string = any> {
|
|
15
15
|
/**
|
|
16
16
|
* A list of variable names the prompt template expects
|
|
17
17
|
*/
|
|
@@ -27,7 +27,7 @@ interface BasePromptTemplateInput<InputVariables extends InputValues = any, Part
|
|
|
27
27
|
* Base class for prompt templates. Exposes a format method that returns a
|
|
28
28
|
* string prompt given a set of input values.
|
|
29
29
|
*/
|
|
30
|
-
declare abstract class BasePromptTemplate<RunInput extends InputValues = any, RunOutput extends BasePromptValueInterface = BasePromptValueInterface, PartialVariableName extends string = any> extends Runnable<RunInput, RunOutput> implements BasePromptTemplateInput {
|
|
30
|
+
export declare abstract class BasePromptTemplate<RunInput extends InputValues = any, RunOutput extends BasePromptValueInterface = BasePromptValueInterface, PartialVariableName extends string = any> extends Runnable<RunInput, RunOutput> implements BasePromptTemplateInput {
|
|
31
31
|
PromptValueReturnType: RunOutput;
|
|
32
32
|
lc_serializable: boolean;
|
|
33
33
|
lc_namespace: string[];
|
|
@@ -80,5 +80,4 @@ declare abstract class BasePromptTemplate<RunInput extends InputValues = any, Ru
|
|
|
80
80
|
abstract _getPromptType(): string;
|
|
81
81
|
}
|
|
82
82
|
//#endregion
|
|
83
|
-
export { BasePromptTemplate, BasePromptTemplateInput, Example, TypedPromptInputValues };
|
|
84
83
|
//# sourceMappingURL=base.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/prompts/base.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"base.d.cts","names":[],"sources":["../../src/prompts/base.ts"],"mappings":";;;;;;;;YAcY,uBAAuB,YAAY,YAC7C,uBAAuB,cAAc;YAG3B,UAAU;;;;iBAKL,wBAEf,uBAAuB,mBAEvB;;;;EAKA,gBAAgB,MAAM,cAAc;;;;EAKpC,eAAe;;EAGf,mBAAmB,cAAc;;;;;;8BAOb,mBAEpB,iBAAiB,mBACjB,kBAAkB,2BAA2B,0BAE7C,kDAEQ,SAAS,UAAU,sBAChB;EAEH,uBAAuB;EAE/B;EAEA;MAEI,iBAAiB;EAMrB,gBAAgB,MAAM,cAAc;EAEpC,eAAe;EAEf,kBAAkB,cAAc;;;;EAKhC,WAAW;;EAGX;EAEA,YAAY,OAAO;WAWV,QACP,QAAQ,gBACP,QAAQ,mBAAmB,UAAU,WAAW;;;;;;EAO7C,6BACJ,eAAe,uBAAuB,YACrC,QACD,YAAY,cAAc,oBAAoB;;;;;;;EA0B1C,OACJ,OAAO,UACP,UAAU,qBACT,QAAQ;;;;;;;;;;;;WAwBF,OAAO,QAAQ,uBAAuB,YAAY;;;;;;WAOlD,kBACP,QAAQ,uBAAuB,YAC9B,QAAQ;;;;WAKF"}
|