{"version":3,"file":"document.cjs","names":[],"sources":["../../src/util/document.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\n\n/**\n * Given a list of documents, this util formats their contents\n * into a string, separated by newlines.\n *\n * @param documents\n * @returns A string of the documents page content, separated by newlines.\n */\nexport const formatDocumentsAsString = (documents: Document[]): string =>\n  documents.map((doc) => doc.pageContent).join(\"\\n\\n\");\n"],"mappings":";;;;;;;;;;AASA,MAAa,2BAA2B,cACtC,UAAU,KAAK,QAAQ,IAAI,YAAY,CAAC,KAAK,OAAO"}