List Documents from a Memory
This example demonstrates how to list documents with name and metadata from a memory.
List Documents from a Memory Example
List Documents from a Memory Example
import 'dotenv/config';
import {Langbase} from 'langbase';
const langbase = new Langbase({
apiKey: process.env.LANGBASE_API_KEY!,
});
async function main() {
const response = await langbase.memories.documents.list({
memoryName: 'memory-sdk',
});
console.log(response);
}
main();