summarizeSessionToMemory
Store a session summary as a durable memory with a stable ID, replacing any existing summary for that ID. Use at session end to persist a concise summary directly.
Instructions
Store an agent-authored session summary as a durable 'summary' memory in one call. Upserts on memoryId, so calling it again with the same memoryId replaces the prior summary rather than duplicating it.
WHEN TO CALL: At session end when you have already written a concise summary of what was accomplished and want to persist it directly (the simpler alternative to handleSessionEnd's automatic summarization).
WHEN NOT TO CALL: When you want sessionmem to generate the summary from ingested session events — use handleSessionEnd for that. For non-summary facts/decisions use storeMemory.
Provide: memoryId (stable id for this session's summary), sessionId, sourceAdapter, summary (the text), importance (1-10; 7 is typical for summaries).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| memoryId | Yes | ||
| sessionId | Yes | ||
| importance | Yes | ||
| sourceAdapter | Yes |