@mastra/memory 1.41.1-alpha.4 → 1.41.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/SKILL.md +3 -3
- package/dist/docs/assets/SOURCE_MAP.json +48 -48
- package/dist/docs/references/docs-memory-multi-user-threads.md +57 -127
- package/dist/docs/references/docs-memory-observational-memory.md +196 -756
- package/dist/docs/references/docs-memory-overview.md +4 -0
- package/dist/docs/references/reference-memory-observational-memory.md +350 -151
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/{src-DvkS93hU.cjs → src-DiQcqLOH.cjs} +7 -7
- package/dist/{src-DvkS93hU.cjs.map → src-DiQcqLOH.cjs.map} +1 -1
- package/dist/{src-KIKQ7ztT.js → src-MUc-jGgr.js} +7 -7
- package/dist/{src-KIKQ7ztT.js.map → src-MUc-jGgr.js.map} +1 -1
- package/package.json +4 -4
|
@@ -199,6 +199,8 @@ import { Memory } from '@mastra/memory'
|
|
|
199
199
|
export const memoryAgent = new Agent({
|
|
200
200
|
id: 'memory-agent',
|
|
201
201
|
name: 'Memory Agent',
|
|
202
|
+
instructions: 'You are a helpful assistant.',
|
|
203
|
+
model: 'openai/gpt-6-luna',
|
|
202
204
|
memory: new Memory({
|
|
203
205
|
options: {
|
|
204
206
|
observationalMemory: true,
|
|
@@ -207,6 +209,8 @@ export const memoryAgent = new Agent({
|
|
|
207
209
|
})
|
|
208
210
|
```
|
|
209
211
|
|
|
212
|
+
Observational Memory needs a storage adapter that supports it, and with any other adapter it turns off without a warning and stored history doesn't load.
|
|
213
|
+
|
|
210
214
|
See [Observational Memory](https://mastra.ai/docs/memory/observational-memory) for details on how observations and reflections work, and [the reference](https://mastra.ai/reference/memory/observational-memory) for all configuration options.
|
|
211
215
|
|
|
212
216
|
## What the model sees
|