Skip to main content

Overview

The SearchMemoriesResult interface encapsulates the outcome of a semantic search operation. It provides both the matched memory content and the operation status.

Properties

PropertyTypeDescription
contentEpisodicMemory[]An array of memory entries that matched the search criteria, ranked by relevance.
statusnumberThe numeric status code of the search operation (e.g., 200 for success).

Usage Example

cconst searchResponse = await memory.search('What is the user's favorite color?');

if (searchResponse.status === 0) {
console.dir(searchResponse.content, { depth: null })
}