formatMemoriesForChat
formatMemoriesForChat(
memories:StoredMemory&object[],format:"compact"|"detailed"):string
Defined in: src/lib/memory/chat.ts:9
Format memories into a context string that can be included in chat messages
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
|
|
|
|
Array of memories with similarity scores |
|
|
|
|
Format style: “compact” (key-value pairs) or “detailed” (includes evidence) |
Returns
string
Formatted string ready to include in system/user message
Last updated on