@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
|
@@ -12,13 +12,13 @@ import "../runnables/index.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Options for formatting instructions.
|
|
14
14
|
*/
|
|
15
|
-
interface FormatInstructionsOptions {}
|
|
15
|
+
export interface FormatInstructionsOptions {}
|
|
16
16
|
/**
|
|
17
17
|
* Abstract base class for parsing the output of a Large Language Model
|
|
18
18
|
* (LLM) call. It provides methods for parsing the result of an LLM call
|
|
19
19
|
* and invoking the parser with a given input.
|
|
20
20
|
*/
|
|
21
|
-
declare abstract class BaseLLMOutputParser<T = unknown> extends Runnable<string | BaseMessage, T> {
|
|
21
|
+
export declare abstract class BaseLLMOutputParser<T = unknown> extends Runnable<string | BaseMessage, T> {
|
|
22
22
|
/**
|
|
23
23
|
* Parses the result of an LLM call. This method is meant to be
|
|
24
24
|
* implemented by subclasses to define how the output from the LLM should
|
|
@@ -54,7 +54,7 @@ declare abstract class BaseLLMOutputParser<T = unknown> extends Runnable<string
|
|
|
54
54
|
/**
|
|
55
55
|
* Class to parse the output of an LLM call.
|
|
56
56
|
*/
|
|
57
|
-
declare abstract class BaseOutputParser<T = unknown> extends BaseLLMOutputParser<T> {
|
|
57
|
+
export declare abstract class BaseOutputParser<T = unknown> extends BaseLLMOutputParser<T> {
|
|
58
58
|
parseResult(generations: Generation[] | ChatGeneration[], callbacks?: Callbacks): Promise<T>;
|
|
59
59
|
/**
|
|
60
60
|
* Parse the output of an LLM call.
|
|
@@ -99,12 +99,11 @@ declare abstract class BaseOutputParser<T = unknown> extends BaseLLMOutputParser
|
|
|
99
99
|
* structured, in the hopes that it will update the output to the correct
|
|
100
100
|
* format.
|
|
101
101
|
*/
|
|
102
|
-
declare class OutputParserException extends Error {
|
|
102
|
+
export declare class OutputParserException extends Error {
|
|
103
103
|
llmOutput?: string;
|
|
104
104
|
observation?: string;
|
|
105
105
|
sendToLLM: boolean;
|
|
106
106
|
constructor(message: string, llmOutput?: string, observation?: string, sendToLLM?: boolean);
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
|
-
export { BaseLLMOutputParser, BaseOutputParser, FormatInstructionsOptions, OutputParserException };
|
|
110
109
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","names":[],"sources":["../../src/output_parsers/base.ts"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"base.d.ts","names":[],"sources":["../../src/output_parsers/base.ts"],"mappings":";;;;;;;;;;;;;;iBAWiB;;;;;;8BAOK,oBAAoB,qBAAqB,kBACpD,aACT;;;;;;;;;WAUS,YACP,aAAa,eAAe,kBAC5B,YAAY,YACX,QAAQ;;;;;;;;;EAUX,sBACE,aAAa,eAAe,kBAC5B,SAAS,0BACT,YAAY,YACX,QAAQ;YAID,qBAAqB,SAAS;YAM9B,4BAA4B,SAAS;;;;;;;;;;;EAczC,OACJ,gBAAgB,aAChB,UAAU,iBACT,QAAQ;;;;;8BA8BS,iBACpB,qBACQ,oBAAoB;EAC5B,YACE,aAAa,eAAe,kBAC5B,YAAY,YACX,QAAQ;;;;;;;WAUF,MAAM,cAAc,YAAY,YAAY,QAAQ;EAEvD,gBACJ,cACA,SAAS,0BACT,YAAY,YACX,QAAQ;;;;;;;;;;;;WAeF,sBAAsB,UAAU;;;;EAKzC;;;;;;;;;;;;;;;;;;;;qBAuBW,8BAA8B;EACzC;EAEA;EAEA;EAEA,YACE,iBACA,oBACA,sBACA"}
|
|
@@ -4,7 +4,7 @@ import { BaseTransformOutputParser } from "./transform.cjs";
|
|
|
4
4
|
* OutputParser that parses LLMResult into the top likely string and
|
|
5
5
|
* encodes it into bytes.
|
|
6
6
|
*/
|
|
7
|
-
declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
7
|
+
export declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
8
8
|
static lc_name(): string;
|
|
9
9
|
lc_namespace: string[];
|
|
10
10
|
lc_serializable: boolean;
|
|
@@ -13,5 +13,4 @@ declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
|
13
13
|
getFormatInstructions(): string;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
export { BytesOutputParser };
|
|
17
16
|
//# sourceMappingURL=bytes.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes.d.cts","names":[],"sources":["../../src/output_parsers/bytes.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"bytes.d.cts","names":[],"sources":["../../src/output_parsers/bytes.ts"],"mappings":";;;;;;qBAMa,0BAA0B,0BAA0B;SACxD;EAIP;EAEA;YAEU,aAAa,oBAAoB;EAE3C,MAAM,eAAe,QAAQ;EAI7B"}
|
|
@@ -4,7 +4,7 @@ import { BaseTransformOutputParser } from "./transform.js";
|
|
|
4
4
|
* OutputParser that parses LLMResult into the top likely string and
|
|
5
5
|
* encodes it into bytes.
|
|
6
6
|
*/
|
|
7
|
-
declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
7
|
+
export declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
8
8
|
static lc_name(): string;
|
|
9
9
|
lc_namespace: string[];
|
|
10
10
|
lc_serializable: boolean;
|
|
@@ -13,5 +13,4 @@ declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Array> {
|
|
|
13
13
|
getFormatInstructions(): string;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
export { BytesOutputParser };
|
|
17
16
|
//# sourceMappingURL=bytes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes.d.ts","names":[],"sources":["../../src/output_parsers/bytes.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"bytes.d.ts","names":[],"sources":["../../src/output_parsers/bytes.ts"],"mappings":";;;;;;qBAMa,0BAA0B,0BAA0B;SACxD;EAIP;EAEA;YAEU,aAAa,oBAAoB;EAE3C,MAAM,eAAe,QAAQ;EAI7B"}
|
|
@@ -8,7 +8,7 @@ import { parseJsonMarkdown, parsePartialJson } from "../utils/json.cjs";
|
|
|
8
8
|
/**
|
|
9
9
|
* Class for parsing the output of an LLM into a JSON object.
|
|
10
10
|
*/
|
|
11
|
-
declare class JsonOutputParser<T extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<T> {
|
|
11
|
+
export declare class JsonOutputParser<T extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<T> {
|
|
12
12
|
static lc_name(): string;
|
|
13
13
|
lc_namespace: string[];
|
|
14
14
|
lc_serializable: boolean;
|
|
@@ -28,5 +28,5 @@ declare class JsonOutputParser<T extends Record<string, any> = Record<string, an
|
|
|
28
28
|
protected _baseMessageToString(message: BaseMessage): string;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { parseJsonMarkdown, parsePartialJson };
|
|
32
32
|
//# sourceMappingURL=json.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.cts","names":[],"sources":["../../src/output_parsers/json.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"json.d.cts","names":[],"sources":["../../src/output_parsers/json.ts"],"mappings":";;;;;;;;;;qBASa,iBAEX,UAAU,sBAAsB,6BACxB,oCAAoC;SACrC;EAIP;EAEA;;EAGS,oBAAoB,GAAG,OAAO,GAAG,QAAQ,IAAI;YAO5C,MACR,2BACA,gBACC;EAYG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;;;;;;;YAWU,qBAAqB,SAAS"}
|
|
@@ -8,7 +8,7 @@ import { parseJsonMarkdown, parsePartialJson } from "../utils/json.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Class for parsing the output of an LLM into a JSON object.
|
|
10
10
|
*/
|
|
11
|
-
declare class JsonOutputParser<T extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<T> {
|
|
11
|
+
export declare class JsonOutputParser<T extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<T> {
|
|
12
12
|
static lc_name(): string;
|
|
13
13
|
lc_namespace: string[];
|
|
14
14
|
lc_serializable: boolean;
|
|
@@ -28,5 +28,5 @@ declare class JsonOutputParser<T extends Record<string, any> = Record<string, an
|
|
|
28
28
|
protected _baseMessageToString(message: BaseMessage): string;
|
|
29
29
|
}
|
|
30
30
|
//#endregion
|
|
31
|
-
export {
|
|
31
|
+
export { parseJsonMarkdown, parsePartialJson };
|
|
32
32
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","names":[],"sources":["../../src/output_parsers/json.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"json.d.ts","names":[],"sources":["../../src/output_parsers/json.ts"],"mappings":";;;;;;;;;;qBASa,iBAEX,UAAU,sBAAsB,6BACxB,oCAAoC;SACrC;EAIP;EAEA;;EAGS,oBAAoB,GAAG,OAAO,GAAG,QAAQ,IAAI;YAO5C,MACR,2BACA,gBACC;EAYG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;;;;;;;YAWU,qBAAqB,SAAS"}
|
|
@@ -6,7 +6,7 @@ import { BaseTransformOutputParser } from "./transform.cjs";
|
|
|
6
6
|
* Class to parse the output of an LLM call to a list.
|
|
7
7
|
* @augments BaseOutputParser
|
|
8
8
|
*/
|
|
9
|
-
declare abstract class ListOutputParser extends BaseTransformOutputParser<string[]> {
|
|
9
|
+
export declare abstract class ListOutputParser extends BaseTransformOutputParser<string[]> {
|
|
10
10
|
re?: RegExp;
|
|
11
11
|
_transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<string[]>;
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@ declare abstract class ListOutputParser extends BaseTransformOutputParser<string
|
|
|
14
14
|
* Class to parse the output of an LLM call as a comma-separated list.
|
|
15
15
|
* @augments ListOutputParser
|
|
16
16
|
*/
|
|
17
|
-
declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
17
|
+
export declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
18
18
|
static lc_name(): string;
|
|
19
19
|
lc_namespace: string[];
|
|
20
20
|
lc_serializable: boolean;
|
|
@@ -36,7 +36,7 @@ declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
|
36
36
|
* Class to parse the output of an LLM call to a list with a specific length and separator.
|
|
37
37
|
* @augments ListOutputParser
|
|
38
38
|
*/
|
|
39
|
-
declare class CustomListOutputParser extends ListOutputParser {
|
|
39
|
+
export declare class CustomListOutputParser extends ListOutputParser {
|
|
40
40
|
lc_namespace: string[];
|
|
41
41
|
private length;
|
|
42
42
|
private separator;
|
|
@@ -60,7 +60,7 @@ declare class CustomListOutputParser extends ListOutputParser {
|
|
|
60
60
|
*/
|
|
61
61
|
getFormatInstructions(): string;
|
|
62
62
|
}
|
|
63
|
-
declare class NumberedListOutputParser extends ListOutputParser {
|
|
63
|
+
export declare class NumberedListOutputParser extends ListOutputParser {
|
|
64
64
|
static lc_name(): string;
|
|
65
65
|
lc_namespace: string[];
|
|
66
66
|
lc_serializable: boolean;
|
|
@@ -68,7 +68,7 @@ declare class NumberedListOutputParser extends ListOutputParser {
|
|
|
68
68
|
re: RegExp;
|
|
69
69
|
parse(text: string): Promise<string[]>;
|
|
70
70
|
}
|
|
71
|
-
declare class MarkdownListOutputParser extends ListOutputParser {
|
|
71
|
+
export declare class MarkdownListOutputParser extends ListOutputParser {
|
|
72
72
|
static lc_name(): string;
|
|
73
73
|
lc_namespace: string[];
|
|
74
74
|
lc_serializable: boolean;
|
|
@@ -77,5 +77,4 @@ declare class MarkdownListOutputParser extends ListOutputParser {
|
|
|
77
77
|
parse(text: string): Promise<string[]>;
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
export { CommaSeparatedListOutputParser, CustomListOutputParser, ListOutputParser, MarkdownListOutputParser, NumberedListOutputParser };
|
|
81
80
|
//# sourceMappingURL=list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.cts","names":[],"sources":["../../src/output_parsers/list.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"list.d.cts","names":[],"sources":["../../src/output_parsers/list.ts"],"mappings":";;;;;;;;8BAQsB,yBAAyB;EAG7C,KAAK;EAEE,WACL,gBAAgB,wBAAwB,eACvC;;;;;;qBAgDQ,uCAAuC;SAC3C;EAIP;EAEA;;;;;;;EAQM,MAAM,eAAe;;;;;;EAgB3B;;;;;;qBASW,+BAA+B;EAC1C;UAEQ;UAEA;EAER,cAAc,QAAQ;IAAe;IAAiB;;;;;;;;;EAahD,MAAM,eAAe;;;;;;;EA0B3B;;qBASW,iCAAiC;SACrC;EAIP;EAEA;EAEA;EAIA,IAAE;EAEI,MAAM,eAAe;;qBAKhB,iCAAiC;SACrC;EAIP;EAEA;EAEA;EAIA,IAAE;EAEI,MAAM,eAAe"}
|
|
@@ -6,7 +6,7 @@ import { BaseTransformOutputParser } from "./transform.js";
|
|
|
6
6
|
* Class to parse the output of an LLM call to a list.
|
|
7
7
|
* @augments BaseOutputParser
|
|
8
8
|
*/
|
|
9
|
-
declare abstract class ListOutputParser extends BaseTransformOutputParser<string[]> {
|
|
9
|
+
export declare abstract class ListOutputParser extends BaseTransformOutputParser<string[]> {
|
|
10
10
|
re?: RegExp;
|
|
11
11
|
_transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<string[]>;
|
|
12
12
|
}
|
|
@@ -14,7 +14,7 @@ declare abstract class ListOutputParser extends BaseTransformOutputParser<string
|
|
|
14
14
|
* Class to parse the output of an LLM call as a comma-separated list.
|
|
15
15
|
* @augments ListOutputParser
|
|
16
16
|
*/
|
|
17
|
-
declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
17
|
+
export declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
18
18
|
static lc_name(): string;
|
|
19
19
|
lc_namespace: string[];
|
|
20
20
|
lc_serializable: boolean;
|
|
@@ -36,7 +36,7 @@ declare class CommaSeparatedListOutputParser extends ListOutputParser {
|
|
|
36
36
|
* Class to parse the output of an LLM call to a list with a specific length and separator.
|
|
37
37
|
* @augments ListOutputParser
|
|
38
38
|
*/
|
|
39
|
-
declare class CustomListOutputParser extends ListOutputParser {
|
|
39
|
+
export declare class CustomListOutputParser extends ListOutputParser {
|
|
40
40
|
lc_namespace: string[];
|
|
41
41
|
private length;
|
|
42
42
|
private separator;
|
|
@@ -60,7 +60,7 @@ declare class CustomListOutputParser extends ListOutputParser {
|
|
|
60
60
|
*/
|
|
61
61
|
getFormatInstructions(): string;
|
|
62
62
|
}
|
|
63
|
-
declare class NumberedListOutputParser extends ListOutputParser {
|
|
63
|
+
export declare class NumberedListOutputParser extends ListOutputParser {
|
|
64
64
|
static lc_name(): string;
|
|
65
65
|
lc_namespace: string[];
|
|
66
66
|
lc_serializable: boolean;
|
|
@@ -68,7 +68,7 @@ declare class NumberedListOutputParser extends ListOutputParser {
|
|
|
68
68
|
re: RegExp;
|
|
69
69
|
parse(text: string): Promise<string[]>;
|
|
70
70
|
}
|
|
71
|
-
declare class MarkdownListOutputParser extends ListOutputParser {
|
|
71
|
+
export declare class MarkdownListOutputParser extends ListOutputParser {
|
|
72
72
|
static lc_name(): string;
|
|
73
73
|
lc_namespace: string[];
|
|
74
74
|
lc_serializable: boolean;
|
|
@@ -77,5 +77,4 @@ declare class MarkdownListOutputParser extends ListOutputParser {
|
|
|
77
77
|
parse(text: string): Promise<string[]>;
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
export { CommaSeparatedListOutputParser, CustomListOutputParser, ListOutputParser, MarkdownListOutputParser, NumberedListOutputParser };
|
|
81
80
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","names":[],"sources":["../../src/output_parsers/list.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"list.d.ts","names":[],"sources":["../../src/output_parsers/list.ts"],"mappings":";;;;;;;;8BAQsB,yBAAyB;EAG7C,KAAK;EAEE,WACL,gBAAgB,wBAAwB,eACvC;;;;;;qBAgDQ,uCAAuC;SAC3C;EAIP;EAEA;;;;;;;EAQM,MAAM,eAAe;;;;;;EAgB3B;;;;;;qBASW,+BAA+B;EAC1C;UAEQ;UAEA;EAER,cAAc,QAAQ;IAAe;IAAiB;;;;;;;;;EAahD,MAAM,eAAe;;;;;;;EA0B3B;;qBASW,iCAAiC;SACrC;EAIP;EAEA;EAEA;EAIA,IAAE;EAEI,MAAM,eAAe;;qBAKhB,iCAAiC;SACrC;EAIP;EAEA;EAEA;EAIA,IAAE;EAEI,MAAM,eAAe"}
|
|
@@ -9,12 +9,12 @@ import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParse
|
|
|
9
9
|
/**
|
|
10
10
|
* Represents optional parameters for a function in a JSON Schema.
|
|
11
11
|
*/
|
|
12
|
-
type FunctionParameters = Optional<JsonSchema7ObjectType, "additionalProperties">;
|
|
12
|
+
export type FunctionParameters = Optional<JsonSchema7ObjectType, "additionalProperties">;
|
|
13
13
|
/**
|
|
14
14
|
* Class for parsing the output of an LLM. Can be configured to return
|
|
15
15
|
* only the arguments of the function call in the output.
|
|
16
16
|
*/
|
|
17
|
-
declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
17
|
+
export declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
18
18
|
static lc_name(): string;
|
|
19
19
|
lc_namespace: string[];
|
|
20
20
|
lc_serializable: boolean;
|
|
@@ -34,7 +34,7 @@ declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
|
34
34
|
* Class for parsing the output of an LLM into a JSON object. Uses an
|
|
35
35
|
* instance of `OutputFunctionsParser` to parse the output.
|
|
36
36
|
*/
|
|
37
|
-
declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<Output> {
|
|
37
|
+
export declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<Output> {
|
|
38
38
|
static lc_name(): string;
|
|
39
39
|
lc_namespace: string[];
|
|
40
40
|
lc_serializable: boolean;
|
|
@@ -60,7 +60,7 @@ declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Rec
|
|
|
60
60
|
* a specific attribute. Uses an instance of `JsonOutputFunctionsParser`
|
|
61
61
|
* to parse the output.
|
|
62
62
|
*/
|
|
63
|
-
declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Record<string, any>> extends BaseLLMOutputParser<T> {
|
|
63
|
+
export declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Record<string, any>> extends BaseLLMOutputParser<T> {
|
|
64
64
|
static lc_name(): string;
|
|
65
65
|
lc_namespace: string[];
|
|
66
66
|
lc_serializable: boolean;
|
|
@@ -81,5 +81,4 @@ declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Recor
|
|
|
81
81
|
parseResult(generations: Generation[] | ChatGeneration[]): Promise<T>;
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
|
-
export { FunctionParameters, JsonKeyOutputFunctionsParser, JsonOutputFunctionsParser, OutputFunctionsParser };
|
|
85
84
|
//# sourceMappingURL=json_output_functions_parsers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json_output_functions_parsers.d.cts","names":[],"sources":["../../../src/output_parsers/openai_functions/json_output_functions_parsers.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"json_output_functions_parsers.d.cts","names":["JSONPatchOperation"],"sources":["../../../src/output_parsers/openai_functions/json_output_functions_parsers.ts"],"mappings":";;;;;;;;;;;YAiBY,qBAAqB,SAC/B;;;;;qBAQW,8BAA8B;SAClC;EAIP;EAEA;EAEA;EAEA,YAAY;IAAW;;;;;;;;EAWjB,YACJ,aAAa,eAAe,mBAC3B;;;;;;qBA8BQ,0BAEX,eAAe,sBAAsB,6BAC7B,oCAAoC;SACrC;EAIP;EAEA;EAEA,cAAc;EAEd;EAEA,YACE;IAAW;MAAuB;YAO1B,MACR,2BACA,gBACCA;EAQG,mBACJ,aAAa,mBACZ,QAAQ;;;;;;;EA2BL,YACJ,aAAa,eAAe,mBAC3B,QAAQ;EAUL,MAAM,eAAe,QAAQ;EASnC;;;;;;;qBAUW,6BAEX,UAAU,sBAAsB,6BACxB,oBAAoB;SACrB;EAIP;EAEA;EAEA,cAAY,0BAAA;EAEZ;MAEI;IAEA;;EAIJ,YAAY;IAAU;;;;;;;;EAWhB,YAAY,aAAa,eAAe,mBAAmB,QAAQ"}
|
|
@@ -9,12 +9,12 @@ import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParse
|
|
|
9
9
|
/**
|
|
10
10
|
* Represents optional parameters for a function in a JSON Schema.
|
|
11
11
|
*/
|
|
12
|
-
type FunctionParameters = Optional<JsonSchema7ObjectType, "additionalProperties">;
|
|
12
|
+
export type FunctionParameters = Optional<JsonSchema7ObjectType, "additionalProperties">;
|
|
13
13
|
/**
|
|
14
14
|
* Class for parsing the output of an LLM. Can be configured to return
|
|
15
15
|
* only the arguments of the function call in the output.
|
|
16
16
|
*/
|
|
17
|
-
declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
17
|
+
export declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
18
18
|
static lc_name(): string;
|
|
19
19
|
lc_namespace: string[];
|
|
20
20
|
lc_serializable: boolean;
|
|
@@ -34,7 +34,7 @@ declare class OutputFunctionsParser extends BaseLLMOutputParser<string> {
|
|
|
34
34
|
* Class for parsing the output of an LLM into a JSON object. Uses an
|
|
35
35
|
* instance of `OutputFunctionsParser` to parse the output.
|
|
36
36
|
*/
|
|
37
|
-
declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<Output> {
|
|
37
|
+
export declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Record<string, any>> extends BaseCumulativeTransformOutputParser<Output> {
|
|
38
38
|
static lc_name(): string;
|
|
39
39
|
lc_namespace: string[];
|
|
40
40
|
lc_serializable: boolean;
|
|
@@ -60,7 +60,7 @@ declare class JsonOutputFunctionsParser<Output extends Record<string, any> = Rec
|
|
|
60
60
|
* a specific attribute. Uses an instance of `JsonOutputFunctionsParser`
|
|
61
61
|
* to parse the output.
|
|
62
62
|
*/
|
|
63
|
-
declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Record<string, any>> extends BaseLLMOutputParser<T> {
|
|
63
|
+
export declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Record<string, any>> extends BaseLLMOutputParser<T> {
|
|
64
64
|
static lc_name(): string;
|
|
65
65
|
lc_namespace: string[];
|
|
66
66
|
lc_serializable: boolean;
|
|
@@ -81,5 +81,4 @@ declare class JsonKeyOutputFunctionsParser<T extends Record<string, any> = Recor
|
|
|
81
81
|
parseResult(generations: Generation[] | ChatGeneration[]): Promise<T>;
|
|
82
82
|
}
|
|
83
83
|
//#endregion
|
|
84
|
-
export { FunctionParameters, JsonKeyOutputFunctionsParser, JsonOutputFunctionsParser, OutputFunctionsParser };
|
|
85
84
|
//# sourceMappingURL=json_output_functions_parsers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json_output_functions_parsers.d.ts","names":[],"sources":["../../../src/output_parsers/openai_functions/json_output_functions_parsers.ts"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"json_output_functions_parsers.d.ts","names":["JSONPatchOperation"],"sources":["../../../src/output_parsers/openai_functions/json_output_functions_parsers.ts"],"mappings":";;;;;;;;;;;YAiBY,qBAAqB,SAC/B;;;;;qBAQW,8BAA8B;SAClC;EAIP;EAEA;EAEA;EAEA,YAAY;IAAW;;;;;;;;EAWjB,YACJ,aAAa,eAAe,mBAC3B;;;;;;qBA8BQ,0BAEX,eAAe,sBAAsB,6BAC7B,oCAAoC;SACrC;EAIP;EAEA;EAEA,cAAc;EAEd;EAEA,YACE;IAAW;MAAuB;YAO1B,MACR,2BACA,gBACCA;EAQG,mBACJ,aAAa,mBACZ,QAAQ;;;;;;;EA2BL,YACJ,aAAa,eAAe,mBAC3B,QAAQ;EAUL,MAAM,eAAe,QAAQ;EASnC;;;;;;;qBAUW,6BAEX,UAAU,sBAAsB,6BACxB,oBAAoB;SACrB;EAIP;EAEA;EAEA,cAAY,0BAAA;EAEZ;MAEI;IAEA;;EAIJ,YAAY;IAAU;;;;;;;;EAWhB,YAAY,aAAa,eAAe,mBAAmB,QAAQ"}
|
|
@@ -4,28 +4,28 @@ import { SerializableSchema } from "../../utils/standard_schema.cjs";
|
|
|
4
4
|
import { InteropZodType, ZodV3Like, ZodV4Like } from "../../utils/types/zod.cjs";
|
|
5
5
|
import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "../transform.cjs";
|
|
6
6
|
//#region src/output_parsers/openai_tools/json_output_tools_parsers.d.ts
|
|
7
|
-
type ParsedToolCall = {
|
|
7
|
+
export type ParsedToolCall = {
|
|
8
8
|
id?: string;
|
|
9
9
|
type: string;
|
|
10
10
|
args: Record<string, any>;
|
|
11
11
|
};
|
|
12
|
-
type JsonOutputToolsParserParams = {
|
|
12
|
+
export type JsonOutputToolsParserParams = {
|
|
13
13
|
/** Whether to return the tool call id. */
|
|
14
14
|
returnId?: boolean;
|
|
15
15
|
} & BaseCumulativeTransformOutputParserInput;
|
|
16
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options: {
|
|
16
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options: {
|
|
17
17
|
returnId?: boolean;
|
|
18
18
|
partial: true;
|
|
19
19
|
}): ToolCall | undefined;
|
|
20
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
20
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
21
21
|
returnId?: boolean;
|
|
22
22
|
partial?: false;
|
|
23
23
|
}): ToolCall;
|
|
24
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
24
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
25
25
|
returnId?: boolean;
|
|
26
26
|
partial?: boolean;
|
|
27
27
|
}): ToolCall | undefined;
|
|
28
|
-
declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
28
|
+
export declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
29
29
|
id: string;
|
|
30
30
|
type: string;
|
|
31
31
|
function: {
|
|
@@ -33,11 +33,11 @@ declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
|
33
33
|
arguments: string;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
declare function makeInvalidToolCall(rawToolCall: Record<string, any>, errorMsg?: string): InvalidToolCall;
|
|
36
|
+
export declare function makeInvalidToolCall(rawToolCall: Record<string, any>, errorMsg?: string): InvalidToolCall;
|
|
37
37
|
/**
|
|
38
38
|
* Class for parsing the output of a tool-calling LLM into a JSON object.
|
|
39
39
|
*/
|
|
40
|
-
declare class JsonOutputToolsParser<T> extends BaseCumulativeTransformOutputParser<T> {
|
|
40
|
+
export declare class JsonOutputToolsParser<T> extends BaseCumulativeTransformOutputParser<T> {
|
|
41
41
|
static lc_name(): string;
|
|
42
42
|
returnId: boolean;
|
|
43
43
|
lc_namespace: string[];
|
|
@@ -64,18 +64,18 @@ type JsonOutputKeyToolsParserParamsV3<T extends Record<string, any> = Record<str
|
|
|
64
64
|
type JsonOutputKeyToolsParserParamsV4<T extends Record<string, any> = Record<string, any>> = {
|
|
65
65
|
zodSchema?: ZodV4Like<T, T>;
|
|
66
66
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
67
|
-
type JsonOutputKeyToolsParserParamsInterop<T extends Record<string, any> = Record<string, any>> = {
|
|
67
|
+
export type JsonOutputKeyToolsParserParamsInterop<T extends Record<string, any> = Record<string, any>> = {
|
|
68
68
|
zodSchema?: InteropZodType<T>;
|
|
69
69
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
70
|
-
type JsonOutputKeyToolsParserParamsSerializable<T extends Record<string, any> = Record<string, any>> = {
|
|
70
|
+
export type JsonOutputKeyToolsParserParamsSerializable<T extends Record<string, any> = Record<string, any>> = {
|
|
71
71
|
serializableSchema?: SerializableSchema<T>;
|
|
72
72
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
73
|
-
type JsonOutputKeyToolsParserParams<T extends Record<string, any> = Record<string, any>> = JsonOutputKeyToolsParserParamsV3<T>;
|
|
73
|
+
export type JsonOutputKeyToolsParserParams<T extends Record<string, any> = Record<string, any>> = JsonOutputKeyToolsParserParamsV3<T>;
|
|
74
74
|
/**
|
|
75
75
|
* Class for parsing the output of a tool-calling LLM into a JSON object if you are
|
|
76
76
|
* expecting only a single tool to be called.
|
|
77
77
|
*/
|
|
78
|
-
declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<string, any>> extends JsonOutputToolsParser<T> {
|
|
78
|
+
export declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<string, any>> extends JsonOutputToolsParser<T> {
|
|
79
79
|
static lc_name(): string;
|
|
80
80
|
lc_namespace: string[];
|
|
81
81
|
lc_serializable: boolean;
|
|
@@ -94,5 +94,4 @@ declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<st
|
|
|
94
94
|
parseResult(generations: ChatGeneration[]): Promise<any>;
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
export { JsonOutputKeyToolsParser, JsonOutputKeyToolsParserParams, JsonOutputKeyToolsParserParamsInterop, JsonOutputKeyToolsParserParamsSerializable, JsonOutputToolsParser, JsonOutputToolsParserParams, ParsedToolCall, convertLangChainToolCallToOpenAI, makeInvalidToolCall, parseToolCall };
|
|
98
97
|
//# sourceMappingURL=json_output_tools_parsers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json_output_tools_parsers.d.cts","names":[],"sources":["../../../src/output_parsers/openai_tools/json_output_tools_parsers.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"json_output_tools_parsers.d.cts","names":[],"sources":["../../../src/output_parsers/openai_tools/json_output_tools_parsers.ts"],"mappings":";;;;;;YAgBY;EACV;EAEA;EAGA,MAAM;;YAGI;;EAEV;IACE;wBAEY,cAEd,aAAa,qBACb;EAAW;EAAoB;IAC9B;wBACa,cAEd,aAAa,qBACb;EAAY;EAAoB;IAC/B;wBACa,cAEd,aAAa,qBACb;EAAY;EAAoB;IAC/B;wBA+Ca,iCAAiC,UAAU;EAKvD;EACA;EACA;IACE;IACA;;;wBAKU,oBAEd,aAAa,qBACb,oBACC;;;;qBAaU,sBACX,WACQ,oCAAoC;SACrC;EAIP;EAEA;EAEA;EAEA,YAAY,SAAS;YAKX;EAIJ,SAAS,QAAQ;EAIjB,YAAY,aAAa,mBAAmB,QAAQ;;;;;;;EAWpD,mBACJ,aAAa,wBAAwB,kBACrC,oBAEC;;KAwCA;EACH;EACA;IACE;KAEC,iCAEH,UAAU,sBAAsB;EAC5B,YAAY,UAAU;IAAO;KAE9B,iCAEH,UAAU,sBAAsB;EAC5B,YAAY,UAAU,GAAG;IAAO;YAE1B,sCAEV,UAAU,sBAAsB;EAC5B,YAAY,eAAe;IAAO;YAE5B,2CAEV,UAAU,sBAAsB;EAEhC,qBAAqB,mBAAmB;IACtC;YAGQ,+BAEV,UAAU,sBAAsB,uBAC9B,iCAAiC;;;;;qBAMxB,yBAEX,UAAU,sBAAsB,6BACxB,sBAAsB;SACvB;EAIP;EAEA;EAEA;;EAGA;;EAGA;EAEA,YAAY,eAAe;EAE3B,qBAAqB,mBAAmB;EAExC,YAAY,QAAQ,iCAAiC;EAErD,YAAY,QAAQ,iCAAiC;EAErD,YAAY,QAAQ,sCAAsC;YAoB1C,gBAAgB,kBAAkB,QAAQ;EAoCpD,mBAAmB,aAAa,mBAAmB;EAuBnD,YAAY,aAAa,mBAAmB"}
|
|
@@ -4,28 +4,28 @@ import { SerializableSchema } from "../../utils/standard_schema.js";
|
|
|
4
4
|
import { InteropZodType, ZodV3Like, ZodV4Like } from "../../utils/types/zod.js";
|
|
5
5
|
import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "../transform.js";
|
|
6
6
|
//#region src/output_parsers/openai_tools/json_output_tools_parsers.d.ts
|
|
7
|
-
type ParsedToolCall = {
|
|
7
|
+
export type ParsedToolCall = {
|
|
8
8
|
id?: string;
|
|
9
9
|
type: string;
|
|
10
10
|
args: Record<string, any>;
|
|
11
11
|
};
|
|
12
|
-
type JsonOutputToolsParserParams = {
|
|
12
|
+
export type JsonOutputToolsParserParams = {
|
|
13
13
|
/** Whether to return the tool call id. */
|
|
14
14
|
returnId?: boolean;
|
|
15
15
|
} & BaseCumulativeTransformOutputParserInput;
|
|
16
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options: {
|
|
16
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options: {
|
|
17
17
|
returnId?: boolean;
|
|
18
18
|
partial: true;
|
|
19
19
|
}): ToolCall | undefined;
|
|
20
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
20
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
21
21
|
returnId?: boolean;
|
|
22
22
|
partial?: false;
|
|
23
23
|
}): ToolCall;
|
|
24
|
-
declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
24
|
+
export declare function parseToolCall(rawToolCall: Record<string, any>, options?: {
|
|
25
25
|
returnId?: boolean;
|
|
26
26
|
partial?: boolean;
|
|
27
27
|
}): ToolCall | undefined;
|
|
28
|
-
declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
28
|
+
export declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
29
29
|
id: string;
|
|
30
30
|
type: string;
|
|
31
31
|
function: {
|
|
@@ -33,11 +33,11 @@ declare function convertLangChainToolCallToOpenAI(toolCall: ToolCall): {
|
|
|
33
33
|
arguments: string;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
-
declare function makeInvalidToolCall(rawToolCall: Record<string, any>, errorMsg?: string): InvalidToolCall;
|
|
36
|
+
export declare function makeInvalidToolCall(rawToolCall: Record<string, any>, errorMsg?: string): InvalidToolCall;
|
|
37
37
|
/**
|
|
38
38
|
* Class for parsing the output of a tool-calling LLM into a JSON object.
|
|
39
39
|
*/
|
|
40
|
-
declare class JsonOutputToolsParser<T> extends BaseCumulativeTransformOutputParser<T> {
|
|
40
|
+
export declare class JsonOutputToolsParser<T> extends BaseCumulativeTransformOutputParser<T> {
|
|
41
41
|
static lc_name(): string;
|
|
42
42
|
returnId: boolean;
|
|
43
43
|
lc_namespace: string[];
|
|
@@ -64,18 +64,18 @@ type JsonOutputKeyToolsParserParamsV3<T extends Record<string, any> = Record<str
|
|
|
64
64
|
type JsonOutputKeyToolsParserParamsV4<T extends Record<string, any> = Record<string, any>> = {
|
|
65
65
|
zodSchema?: ZodV4Like<T, T>;
|
|
66
66
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
67
|
-
type JsonOutputKeyToolsParserParamsInterop<T extends Record<string, any> = Record<string, any>> = {
|
|
67
|
+
export type JsonOutputKeyToolsParserParamsInterop<T extends Record<string, any> = Record<string, any>> = {
|
|
68
68
|
zodSchema?: InteropZodType<T>;
|
|
69
69
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
70
|
-
type JsonOutputKeyToolsParserParamsSerializable<T extends Record<string, any> = Record<string, any>> = {
|
|
70
|
+
export type JsonOutputKeyToolsParserParamsSerializable<T extends Record<string, any> = Record<string, any>> = {
|
|
71
71
|
serializableSchema?: SerializableSchema<T>;
|
|
72
72
|
} & JsonOutputKeyToolsParserParamsBase;
|
|
73
|
-
type JsonOutputKeyToolsParserParams<T extends Record<string, any> = Record<string, any>> = JsonOutputKeyToolsParserParamsV3<T>;
|
|
73
|
+
export type JsonOutputKeyToolsParserParams<T extends Record<string, any> = Record<string, any>> = JsonOutputKeyToolsParserParamsV3<T>;
|
|
74
74
|
/**
|
|
75
75
|
* Class for parsing the output of a tool-calling LLM into a JSON object if you are
|
|
76
76
|
* expecting only a single tool to be called.
|
|
77
77
|
*/
|
|
78
|
-
declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<string, any>> extends JsonOutputToolsParser<T> {
|
|
78
|
+
export declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<string, any>> extends JsonOutputToolsParser<T> {
|
|
79
79
|
static lc_name(): string;
|
|
80
80
|
lc_namespace: string[];
|
|
81
81
|
lc_serializable: boolean;
|
|
@@ -94,5 +94,4 @@ declare class JsonOutputKeyToolsParser<T extends Record<string, any> = Record<st
|
|
|
94
94
|
parseResult(generations: ChatGeneration[]): Promise<any>;
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
export { JsonOutputKeyToolsParser, JsonOutputKeyToolsParserParams, JsonOutputKeyToolsParserParamsInterop, JsonOutputKeyToolsParserParamsSerializable, JsonOutputToolsParser, JsonOutputToolsParserParams, ParsedToolCall, convertLangChainToolCallToOpenAI, makeInvalidToolCall, parseToolCall };
|
|
98
97
|
//# sourceMappingURL=json_output_tools_parsers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json_output_tools_parsers.d.ts","names":[],"sources":["../../../src/output_parsers/openai_tools/json_output_tools_parsers.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"json_output_tools_parsers.d.ts","names":[],"sources":["../../../src/output_parsers/openai_tools/json_output_tools_parsers.ts"],"mappings":";;;;;;YAgBY;EACV;EAEA;EAGA,MAAM;;YAGI;;EAEV;IACE;wBAEY,cAEd,aAAa,qBACb;EAAW;EAAoB;IAC9B;wBACa,cAEd,aAAa,qBACb;EAAY;EAAoB;IAC/B;wBACa,cAEd,aAAa,qBACb;EAAY;EAAoB;IAC/B;wBA+Ca,iCAAiC,UAAU;EAKvD;EACA;EACA;IACE;IACA;;;wBAKU,oBAEd,aAAa,qBACb,oBACC;;;;qBAaU,sBACX,WACQ,oCAAoC;SACrC;EAIP;EAEA;EAEA;EAEA,YAAY,SAAS;YAKX;EAIJ,SAAS,QAAQ;EAIjB,YAAY,aAAa,mBAAmB,QAAQ;;;;;;;EAWpD,mBACJ,aAAa,wBAAwB,kBACrC,oBAEC;;KAwCA;EACH;EACA;IACE;KAEC,iCAEH,UAAU,sBAAsB;EAC5B,YAAY,UAAU;IAAO;KAE9B,iCAEH,UAAU,sBAAsB;EAC5B,YAAY,UAAU,GAAG;IAAO;YAE1B,sCAEV,UAAU,sBAAsB;EAC5B,YAAY,eAAe;IAAO;YAE5B,2CAEV,UAAU,sBAAsB;EAEhC,qBAAqB,mBAAmB;IACtC;YAGQ,+BAEV,UAAU,sBAAsB,uBAC9B,iCAAiC;;;;;qBAMxB,yBAEX,UAAU,sBAAsB,6BACxB,sBAAsB;SACvB;EAIP;EAEA;EAEA;;EAGA;;EAGA;EAEA,YAAY,eAAe;EAE3B,qBAAqB,mBAAmB;EAExC,YAAY,QAAQ,iCAAiC;EAErD,YAAY,QAAQ,iCAAiC;EAErD,YAAY,QAAQ,sCAAsC;YAoB1C,gBAAgB,kBAAkB,QAAQ;EAoCpD,mBAAmB,aAAa,mBAAmB;EAuBnD,YAAY,aAAa,mBAAmB"}
|
|
@@ -3,7 +3,7 @@ import "../messages/index.cjs";
|
|
|
3
3
|
import { BaseOutputParser } from "./base.cjs";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/output_parsers/standard_schema.d.ts
|
|
6
|
-
declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> = Record<string, any>> extends BaseOutputParser<RunOutput> {
|
|
6
|
+
export declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> = Record<string, any>> extends BaseOutputParser<RunOutput> {
|
|
7
7
|
static lc_name(): string;
|
|
8
8
|
lc_namespace: string[];
|
|
9
9
|
private readonly schema;
|
|
@@ -14,5 +14,4 @@ declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> =
|
|
|
14
14
|
getFormatInstructions(): string;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
export { StandardSchemaOutputParser };
|
|
18
17
|
//# sourceMappingURL=standard_schema.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard_schema.d.cts","names":[],"sources":["../../src/output_parsers/standard_schema.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"standard_schema.d.cts","names":[],"sources":["../../src/output_parsers/standard_schema.ts"],"mappings":";;;;;qBAKa,2BAEX,kBAAkB,sBAAsB,6BAChC,iBAAiB;SAClB;EAIP;mBAEiB;EAEjB,YAAY,QAAQ,iBAAiB;SAK9B,uBAEL,kBAAkB,sBAAsB,qBACxC,QAAQ,iBAAiB,aAAU,2BAAA;EAI/B,MAAM,eAAe,QAAQ;YAgBhB,qBAAqB,SAAS;EAIjD"}
|
|
@@ -3,7 +3,7 @@ import "../messages/index.js";
|
|
|
3
3
|
import { BaseOutputParser } from "./base.js";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
//#region src/output_parsers/standard_schema.d.ts
|
|
6
|
-
declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> = Record<string, any>> extends BaseOutputParser<RunOutput> {
|
|
6
|
+
export declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> = Record<string, any>> extends BaseOutputParser<RunOutput> {
|
|
7
7
|
static lc_name(): string;
|
|
8
8
|
lc_namespace: string[];
|
|
9
9
|
private readonly schema;
|
|
@@ -14,5 +14,4 @@ declare class StandardSchemaOutputParser<RunOutput extends Record<string, any> =
|
|
|
14
14
|
getFormatInstructions(): string;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
export { StandardSchemaOutputParser };
|
|
18
17
|
//# sourceMappingURL=standard_schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard_schema.d.ts","names":[],"sources":["../../src/output_parsers/standard_schema.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"standard_schema.d.ts","names":[],"sources":["../../src/output_parsers/standard_schema.ts"],"mappings":";;;;;qBAKa,2BAEX,kBAAkB,sBAAsB,6BAChC,iBAAiB;SAClB;EAIP;mBAEiB;EAEjB,YAAY,QAAQ,iBAAiB;SAK9B,uBAEL,kBAAkB,sBAAsB,qBACxC,QAAQ,iBAAiB,aAAU,2BAAA;EAI/B,MAAM,eAAe,QAAQ;YAgBhB,qBAAqB,SAAS;EAIjD"}
|
|
@@ -20,7 +20,7 @@ import { BaseTransformOutputParser } from "./transform.cjs";
|
|
|
20
20
|
* console.log("What do you call a bear with no teeth? A gummy bear!");
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
23
|
+
export declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
24
24
|
static lc_name(): string;
|
|
25
25
|
lc_namespace: string[];
|
|
26
26
|
lc_serializable: boolean;
|
|
@@ -40,5 +40,4 @@ declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
|
40
40
|
protected _baseMessageContentToString(content: ContentBlock[]): string;
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
-
export { StringOutputParser };
|
|
44
43
|
//# sourceMappingURL=string.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.cts","names":[],"sources":["../../src/output_parsers/string.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"string.d.cts","names":[],"sources":["../../src/output_parsers/string.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBAqBa,2BAA2B;SAC/B;EAIP;EAEA;;;;;;;;;EAUA,MAAM,eAAe;EAIrB;YAIU,qBAAqB,SAAS,aAAa;YAI3C,yBACR,UAAU,aAAa,KAAK;YAOpB,wBAAwB,SAAS;YA6BjC,4BAA4B,SAAS"}
|
|
@@ -20,7 +20,7 @@ import { BaseTransformOutputParser } from "./transform.js";
|
|
|
20
20
|
* console.log("What do you call a bear with no teeth? A gummy bear!");
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
23
|
+
export declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
24
24
|
static lc_name(): string;
|
|
25
25
|
lc_namespace: string[];
|
|
26
26
|
lc_serializable: boolean;
|
|
@@ -40,5 +40,4 @@ declare class StringOutputParser extends BaseTransformOutputParser<string> {
|
|
|
40
40
|
protected _baseMessageContentToString(content: ContentBlock[]): string;
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
|
-
export { StringOutputParser };
|
|
44
43
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","names":[],"sources":["../../src/output_parsers/string.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"string.d.ts","names":[],"sources":["../../src/output_parsers/string.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBAqBa,2BAA2B;SAC/B;EAIP;EAEA;;;;;;;;;EAUA,MAAM,eAAe;EAIrB;YAIU,qBAAqB,SAAS,aAAa;YAI3C,yBACR,UAAU,aAAa,KAAK;YAOpB,wBAAwB,SAAS;YA6BjC,4BAA4B,SAAS"}
|