diff options
| author | Shoubhit Dash <[email protected]> | 2026-01-30 21:08:11 +0530 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2026-01-30 21:09:12 -0700 |
| commit | 05ecc18e4f0eef6d3b88b0e459b43ad9f13ce8cf (patch) | |
| tree | 84d930a7fccccff3a6d54295ee8ecec8d0acedb0 /apps/docs | |
| parent | done (diff) | |
| download | supermemory-01-30-mastra_integration.tar.xz supermemory-01-30-mastra_integration.zip | |
format and lint01-30-mastra_integration
Diffstat (limited to 'apps/docs')
| -rw-r--r-- | apps/docs/test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/docs/test.ts b/apps/docs/test.ts index 21c8bb8e..8eab02ff 100644 --- a/apps/docs/test.ts +++ b/apps/docs/test.ts @@ -15,7 +15,7 @@ const conversation = [ // Get user profile + relevant memories for context const profile = await client.profile({ containerTag: USER_ID, - q: conversation.at(-1)!.content, + q: conversation.at(-1)?.content, }) const context = `Static profile: @@ -25,10 +25,10 @@ Dynamic profile: ${profile.profile.dynamic.join("\n")} Relevant memories: -${profile.searchResults?.results.map((r) => r["content"]).join("\n")}` +${profile.searchResults?.results.map((r) => r.content).join("\n")}` // Build messages with memory-enriched context -const messages = [ +const _messages = [ { role: "system", content: `User context:\n${context}` }, ...conversation, ] |