9 lines
345 B
TypeScript
9 lines
345 B
TypeScript
import { Document } from "@langchain/core/documents";
|
|
/**
|
|
* Given a list of documents, this util formats their contents
|
|
* into a string, separated by newlines.
|
|
*
|
|
* @param documents
|
|
* @returns A string of the documents page content, separated by newlines.
|
|
*/
|
|
export declare const formatDocumentsAsString: (documents: Document[]) => string;
|