For the complete BrainAPI documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL. Docs MCP: /docs/mcp.
Saving
How to save data to the memory store
Importing
Start by importing the Driver class.
import { LumenBrainDriver } from "lumen-brain";// Initialize the driver with your API keyconst brain = new LumenBrainDriver("your-api-key");Saving a message
You can save messages from your application during a conversation.
const saveResult = await brain.saveMessage( "memory-uuid", "Hello, this is a test message", "user", "conversation-123");Prop
Type
