@langchain/core
Version:
Core LangChain.js abstractions and schemas
1 lines • 1.05 kB
Source Map (JSON)
{"version":3,"file":"base.d.ts","names":["Document","DocumentLoader","Promise","BaseDocumentLoader"],"sources":["../../src/document_loaders/base.d.ts"],"sourcesContent":["import { Document } from \"../documents/document.js\";\n/**\n * Interface that defines the methods for loading and splitting documents.\n */\nexport interface DocumentLoader {\n load(): Promise<Document[]>;\n}\n/**\n * Abstract class that provides a default implementation for the\n * loadAndSplit() method from the DocumentLoader interface. The load()\n * method is left abstract and needs to be implemented by subclasses.\n */\nexport declare abstract class BaseDocumentLoader implements DocumentLoader {\n /**\n * Loads the documents.\n * @returns A Promise that resolves with an array of Document instances.\n */\n abstract load(): Promise<Document[]>;\n}\n//# sourceMappingURL=base.d.ts.map"],"mappings":";;;;;;AAIA;AAQ8BG,UARbF,cAAAA,CAQ+B;EAKnBD,IAAAA,EAAAA,EAZjBE,OAYiBF,CAZTA,QAYSA,EAAAA,CAAAA;;;AAL6C;;;;uBAA5CG,kBAAAA,YAA8BF;;;;;mBAKvCC,QAAQF"}