@mastra/memory 1.28.2-alpha.0 → 1.28.2-alpha.2
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/README.md +35 -21
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-human-in-the-loop.md +1 -1
- package/dist/docs/references/docs-agents-networks.md +1 -1
- package/dist/docs/references/docs-evals-evals-with-memory.md +1 -1
- package/dist/docs/references/docs-guides-context-engineering.md +1 -1
- package/dist/docs/references/docs-harness-background-tasks.md +1 -1
- package/dist/docs/references/docs-memory-message-history.md +3 -3
- package/dist/docs/references/docs-memory-observational-memory.md +18 -18
- package/dist/docs/references/docs-memory-overview.md +1 -1
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/docs/references/docs-subagents.md +2 -2
- package/dist/docs/references/reference-memory-observational-memory.md +4 -4
- package/dist/docs/references/reference-memory-settled.md +1 -1
- package/dist/docs/references/reference-processors-token-limiter-processor.md +1 -1
- package/dist/docs/references/reference-vectors-mongodb.md +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -3
- package/dist/processors/index.js +2 -2
- package/dist/processors/observational-memory/extraction-runner.d.ts.map +1 -1
- package/dist/processors/observational-memory/index.d.ts +2 -2
- package/dist/processors/observational-memory/index.d.ts.map +1 -1
- package/dist/processors/observational-memory/observational-memory.d.ts +0 -10
- package/dist/processors/observational-memory/observational-memory.d.ts.map +1 -1
- package/dist/processors/observational-memory/processor.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/curate.d.ts +14 -5
- package/dist/processors/observational-memory/subconscious/curate.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/index.d.ts +4 -5
- package/dist/processors/observational-memory/subconscious/index.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/knowledge-tools.d.ts +10 -0
- package/dist/processors/observational-memory/subconscious/knowledge-tools.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/knowledge-write-tools.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/pinned.d.ts +0 -2
- package/dist/processors/observational-memory/subconscious/pinned.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/remind-agent.d.ts +22 -0
- package/dist/processors/observational-memory/subconscious/remind-agent.d.ts.map +1 -0
- package/dist/processors/observational-memory/subconscious/remind-continuation.d.ts +21 -0
- package/dist/processors/observational-memory/subconscious/remind-continuation.d.ts.map +1 -0
- package/dist/processors/observational-memory/subconscious/remind-protocol.d.ts +28 -0
- package/dist/processors/observational-memory/subconscious/remind-protocol.d.ts.map +1 -0
- package/dist/processors/observational-memory/subconscious/remind-questions.d.ts +27 -0
- package/dist/processors/observational-memory/subconscious/remind-questions.d.ts.map +1 -0
- package/dist/processors/observational-memory/subconscious/remind.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/types.d.ts +8 -59
- package/dist/processors/observational-memory/subconscious/types.d.ts.map +1 -1
- package/dist/processors/observational-memory/types.d.ts +0 -5
- package/dist/processors/observational-memory/types.d.ts.map +1 -1
- package/dist/{src-Br1yJXN1.js → src-BYrxAUzs.js} +1788 -1495
- package/dist/src-BYrxAUzs.js.map +1 -0
- package/dist/{src-Bq1Ng-3M.cjs → src-Bewti2w5.cjs} +1778 -1496
- package/dist/src-Bewti2w5.cjs.map +1 -0
- package/package.json +6 -8
- package/CHANGELOG.md +0 -8634
- package/dist/processors/observational-memory/subconscious/capture.d.ts +0 -44
- package/dist/processors/observational-memory/subconscious/capture.d.ts.map +0 -1
- package/dist/processors/observational-memory/subconscious/learn.d.ts +0 -23
- package/dist/processors/observational-memory/subconscious/learn.d.ts.map +0 -1
- package/dist/src-Bq1Ng-3M.cjs.map +0 -1
- package/dist/src-Br1yJXN1.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @mastra/memory
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@mastra/memory` gives Mastra agents persistent conversation history, semantic recall, working memory, and observational memory. Attach a `Memory` instance to an agent when it should retain context across messages and threads.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/memory
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Attach memory to an agent and pass a stable thread and resource ID when generating a response.
|
|
8
14
|
|
|
9
15
|
```typescript
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
};
|
|
16
|
+
import { Agent } from '@mastra/core/agent';
|
|
17
|
+
import { Memory } from '@mastra/memory';
|
|
18
|
+
|
|
19
|
+
const agent = new Agent({
|
|
20
|
+
id: 'support-agent',
|
|
21
|
+
name: 'Support agent',
|
|
22
|
+
instructions: 'Answer support questions using the conversation history.',
|
|
23
|
+
model: 'openai/gpt-5.6-sol',
|
|
24
|
+
memory: new Memory(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const response = await agent.generate('What did we discuss last time?', {
|
|
28
|
+
memory: { thread: 'conversation-123', resource: 'user-456' },
|
|
29
|
+
});
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
- [@mastra/memory documentation](https://mastra.ai/docs/memory/overview)
|
|
35
|
+
|
|
36
|
+
## Changelog
|
|
37
|
+
|
|
38
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/packages/memory/CHANGELOG.md) for version history and release notes.
|
|
39
|
+
|
|
40
|
+
## Support
|
|
41
|
+
|
|
42
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -508,7 +508,7 @@ if (run && toolCall) {
|
|
|
508
508
|
|
|
509
509
|
Each returned run includes the suspended tool calls (`toolCallId`, `toolName`, `args`, and `requiresApproval`). Approval suspensions (`requiresApproval: true`) are answered with `approveToolCall()` / `declineToolCall()`, while `suspend()`-based suspensions carry their `suspendPayload` and expect `resumeStream()` with resume data, so you can rebuild the right UI for either flow without keeping any state in memory.
|
|
510
510
|
|
|
511
|
-
`sendToolApproval()` uses the same storage-backed discovery
|
|
511
|
+
`sendToolApproval()` automatically uses the same storage-backed discovery. If memory contains no active run for the thread, it searches storage for a suspended run before failing. Pass a `toolCallId` when several suspended runs match the thread.
|
|
512
512
|
|
|
513
513
|
The same discovery is available over HTTP as `GET /agents/:agentId/suspended-runs` and in the client SDK as [`agent.listSuspendedRuns()`](https://mastra.ai/reference/client-js/agents), so browser-based approval UIs can rediscover pending runs directly.
|
|
514
514
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Agent networks
|
|
6
6
|
|
|
7
|
-
> **Deprecated:** Agent networks are deprecated and will be removed in a future major release. [
|
|
7
|
+
> **Deprecated:** Agent networks are deprecated and will be removed in a future major release. Replace them with [supervisor agents](https://mastra.ai/docs/subagents) that use `agent.stream()` or `agent.generate()`. Supervisor agents provide the same multi-agent coordination through a simpler API that improves control and debugging.
|
|
8
8
|
>
|
|
9
9
|
> See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
10
10
|
|
|
@@ -143,6 +143,6 @@ The inline `task` receives the item's `metadata`, so each row can drive its own
|
|
|
143
143
|
## Related
|
|
144
144
|
|
|
145
145
|
- [Running scorers in CI](https://mastra.ai/docs/evals/running-in-ci)
|
|
146
|
-
- [Running experiments](https://mastra.ai/docs/
|
|
146
|
+
- [Running experiments](https://mastra.ai/docs/evals/experiments)
|
|
147
147
|
- [Observational memory](https://mastra.ai/docs/memory/observational-memory)
|
|
148
148
|
- [runEvals API reference](https://mastra.ai/reference/evals/run-evals)
|
|
@@ -243,7 +243,7 @@ await result.accepted
|
|
|
243
243
|
|
|
244
244
|
A processor can send a reactive signal during `processInputStep()`. This is useful for guidance that depends on the current step or a recent tool result. Set `transient: true` when the signal should reach only the current model call. Re-send it when needed instead of storing repeated reminders in conversation history.
|
|
245
245
|
|
|
246
|
-
State signals represent context that changes over time. Mastra tracks snapshots and deltas
|
|
246
|
+
State signals represent context that changes over time. For each state lane, Mastra tracks snapshots and deltas so it can reinsert a fresh snapshot after the previous one leaves the active context window. Use `computeStateSignal()` when a processor owns the state. This lane can keep working memory and browser context available alongside task lists, even after history or Observational Memory removes older messages.
|
|
247
247
|
|
|
248
248
|
Signals append changing context near the current turn instead of rewriting the agent's base instructions. Transient and state signals can therefore preserve a more stable prompt prefix while keeping current guidance and state visible to the model.
|
|
249
249
|
|
|
@@ -275,7 +275,7 @@ await mastra.backgroundTaskManager?.resume(taskId, {
|
|
|
275
275
|
|
|
276
276
|
### What happens to the agent loop
|
|
277
277
|
|
|
278
|
-
When a task suspends mid-`stream()` with `untilIdle`, the wrapper treats it as terminal for the current iteration and closes.
|
|
278
|
+
When a task suspends mid-`stream()` with `untilIdle`, the wrapper treats it as terminal for the current iteration and closes. Once the resume payload is available, call `agent.resumeStream(resumeData, { runId, toolCallId, memory, untilIdle: true })` to continue immediately. The resumed background task completes and adds its result to the message list before the agent runs a follow-up turn on the same SSE connection. To drive the resume out of band, call `mastra.backgroundTaskManager.resume(taskId, resumeData)` directly. Its result is still written into the thread for the next user turn.
|
|
279
279
|
|
|
280
280
|
### Re-registering the executor on resume
|
|
281
281
|
|
|
@@ -119,8 +119,8 @@ await agent.stream('Hello', {
|
|
|
119
119
|
|
|
120
120
|
You can use this history in two ways:
|
|
121
121
|
|
|
122
|
-
- **Automatic inclusion**: Mastra automatically
|
|
123
|
-
- [**Manual querying**](#querying): For more control,
|
|
122
|
+
- **Automatic inclusion**: Mastra automatically includes recent messages in the context window. The default of 10 messages keeps agents grounded in the conversation. Adjust it with `lastMessages` when needed.
|
|
123
|
+
- [**Manual querying**](#querying): For more control, query threads and messages directly with `recall()`. Use the results to choose which memories enter the context window or to render conversation history in your UI.
|
|
124
124
|
|
|
125
125
|
> **Tip:** When memory is enabled, [Studio](https://mastra.ai/docs/studio/overview) uses message history to display past conversations in the chat sidebar.
|
|
126
126
|
|
|
@@ -230,7 +230,7 @@ const thread = await memory.getThreadById({ threadId: 'thread-123' })
|
|
|
230
230
|
|
|
231
231
|
### Messages
|
|
232
232
|
|
|
233
|
-
Once you have a thread, use [`recall()`](https://mastra.ai/reference/memory/recall) to retrieve its messages. It supports pagination
|
|
233
|
+
Once you have a thread, use [`recall()`](https://mastra.ai/reference/memory/recall) to retrieve its messages. It supports pagination and [semantic search](https://mastra.ai/docs/memory/semantic-recall), with optional date filtering.
|
|
234
234
|
|
|
235
235
|
Basic recall returns all messages from a thread:
|
|
236
236
|
|
|
@@ -31,7 +31,7 @@ export const agent = new Agent({
|
|
|
31
31
|
|
|
32
32
|
**For AI agents:** Using Observational Memory requires a storage provider! You either need to set it on the Mastra instance at `src/mastra/index.ts` or pass it to the Agent constructor.
|
|
33
33
|
|
|
34
|
-
The following script creates a local LibSQL database
|
|
34
|
+
The following script creates a local LibSQL database and enables Observational Memory before using one resource and thread across two agent calls:
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
37
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -214,11 +214,11 @@ When message history tokens exceed a threshold (default: 30,000), the Observer c
|
|
|
214
214
|
|
|
215
215
|
OM uses fast local token estimation for this thresholding work. Text is estimated with `tokenx`, while image parts use provider-aware heuristics so multimodal conversations still trigger observation at the right time. The same applies to image-like `file` parts when a transport normalizes an uploaded image as a file instead of an image part. For example, OpenAI image detail settings can materially change when OM decides to observe.
|
|
216
216
|
|
|
217
|
-
The Observer can also see attachments in the history it reviews. OM keeps
|
|
217
|
+
The Observer can also see attachments in the history it reviews. For readability, OM keeps placeholders such as `[Image #1: reference-board.png]` or `[File #1: floorplan.pdf]` in the transcript while forwarding the actual attachments beside the text. When possible, image-like `file` parts become image inputs for the Observer. Other attachments remain file parts and use normalized token counting. This applies to both normal thread observation and batched resource-scope observation.
|
|
218
218
|
|
|
219
219
|
### Extractors
|
|
220
220
|
|
|
221
|
-
Use extractors when you want OM to persist specific values alongside observations. Built-in values
|
|
221
|
+
Use extractors when you want OM to persist specific values alongside observations. Built-in values use the same extraction pipeline as custom values. They include **current task** and **suggested response**, along with **thread title**.
|
|
222
222
|
|
|
223
223
|
The following example extracts a compact user profile from observations:
|
|
224
224
|
|
|
@@ -380,7 +380,7 @@ new Agent({
|
|
|
380
380
|
})
|
|
381
381
|
```
|
|
382
382
|
|
|
383
|
-
You can also pass an allowlist of mimeType globs (for example `['image/*']`) to forward only the kinds the Observer can handle. Alternatively, set `observeAttachments: 'auto'`
|
|
383
|
+
You can also pass an allowlist of mimeType globs (for example `['image/*']`) to forward only the kinds the Observer can handle. Alternatively, set `observeAttachments: 'auto'` so Mastra consults the provider capabilities registry. It forwards attachments when the Observer model supports multimodal input and drops them otherwise. If capability data is unavailable for the model, the setting falls back to `true`.
|
|
384
384
|
|
|
385
385
|
```md
|
|
386
386
|
Date: 2026-01-15
|
|
@@ -426,7 +426,7 @@ With [`shareTokenBudget`](https://mastra.ai/reference/memory/observational-memor
|
|
|
426
426
|
|
|
427
427
|
### Retrieval mode
|
|
428
428
|
|
|
429
|
-
Normal OM compresses messages into observations, which is great for staying on task, but the original wording is gone. Retrieval mode fixes this by keeping each observation group linked to the raw messages that produced it.
|
|
429
|
+
Normal OM compresses messages into observations, which is great for staying on task, but the original wording is gone. Retrieval mode fixes this by keeping each observation group linked to the raw messages that produced it. The agent can call a `recall` tool to recover source details compressed by the summary, including exact wording and tool output as well as chronology.
|
|
430
430
|
|
|
431
431
|
#### Browsing only
|
|
432
432
|
|
|
@@ -716,23 +716,23 @@ When message tokens reach the `messageTokens` threshold, buffered chunks activat
|
|
|
716
716
|
|
|
717
717
|
Buffered observations also include continuation hints, a suggested next response and the current task, so the main agent maintains conversational continuity after activation shrinks the context window.
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
When message production outpaces the Observer, the `blockAfter` safety threshold allows activation to overshoot the retention target instead of using fewer chunks. Activation still uses no more chunks than needed to reach the target, and the default settings remain unaffected. A synchronous observation runs when the `messageTokens` threshold is reached and buffered activation didn't happen. Buffered activation usually preserves a minimum remaining context (the smaller of \~1k tokens or the configured retention floor), but a single buffered chunk that covers the whole pending window still activates and can leave less.
|
|
720
720
|
|
|
721
721
|
Reflection works similarly, the Reflector runs in the background when observations reach a fraction of the reflection threshold.
|
|
722
722
|
|
|
723
723
|
### Settings
|
|
724
724
|
|
|
725
|
-
| Setting | Default | What it controls
|
|
726
|
-
| ------------------------------------- | ------- |
|
|
727
|
-
| `observation.bufferTokens` | `0.2` | How often to buffer. `0.2` means every 20% of `messageTokens`. With the default 30k threshold, that's roughly every 6k tokens. Can also be an absolute token count (e.g. `5000`).
|
|
728
|
-
| `observation.bufferActivation` | `0.8` | How aggressively to clear the message window on activation. `0.8` means remove enough messages to keep only 20% of `messageTokens` remaining. Lower values keep more message history.
|
|
729
|
-
| `observation.blockAfter` | `1.2` | Safety net if buffering can't keep up. Values from 1 up to (but not including) 100 multiply `messageTokens
|
|
730
|
-
| `activateAfterIdle` | none | Forces buffered observations to activate after a period of inactivity, even before `observation.messageTokens` is reached. Accepts a numeric millisecond value such as `300_000`, duration strings like `"5m"` or `"1hr"`, or `"auto"` for a provider-aware prompt cache TTL.
|
|
731
|
-
| `activateOnProviderChange` | `false` | Forces buffered observations to activate when the next step uses a different `provider/model` than the one that produced the latest assistant step. Use this when switching providers or models would invalidate prompt cache reuse.
|
|
732
|
-
| `reflection.bufferActivation` | `0.5` | When to start background reflection. `0.5` means reflection begins when observations reach 50% of the `observationTokens` threshold.
|
|
733
|
-
| `reflection.activateAfterIdle` | none | Opts buffered reflections into idle activation. Reflections don't inherit top-level `activateAfterIdle`.
|
|
734
|
-
| `reflection.activateOnProviderChange` | `false` | Opts buffered reflections into provider-change activation. Reflections don't inherit top-level `activateOnProviderChange`.
|
|
735
|
-
| `reflection.blockAfter` | `1.2` | Safety threshold for reflection. Same value format as observation (absolute values must be greater than `observationTokens`), but above it reflection runs synchronously when no buffered reflection is ready to activate.
|
|
725
|
+
| Setting | Default | What it controls |
|
|
726
|
+
| ------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
727
|
+
| `observation.bufferTokens` | `0.2` | How often to buffer. `0.2` means every 20% of `messageTokens`. With the default 30k threshold, that's roughly every 6k tokens. Can also be an absolute token count (e.g. `5000`). |
|
|
728
|
+
| `observation.bufferActivation` | `0.8` | How aggressively to clear the message window on activation. `0.8` means remove enough messages to keep only 20% of `messageTokens` remaining. Lower values keep more message history. |
|
|
729
|
+
| `observation.blockAfter` | `1.2` | Safety net if buffering can't keep up. Values from 1 up to (but not including) 100 multiply `messageTokens`. For example, `1.2` creates a threshold of 36k tokens (1.2 × 30k), above which activation may overshoot the retention target rather than use fewer chunks. Values of 100 or more are absolute token counts (e.g. `50_000`) and must be greater than `messageTokens`. |
|
|
730
|
+
| `activateAfterIdle` | none | Forces buffered observations to activate after a period of inactivity, even before `observation.messageTokens` is reached. Accepts a numeric millisecond value such as `300_000`, duration strings like `"5m"` or `"1hr"`, or `"auto"` for a provider-aware prompt cache TTL. |
|
|
731
|
+
| `activateOnProviderChange` | `false` | Forces buffered observations to activate when the next step uses a different `provider/model` than the one that produced the latest assistant step. Use this when switching providers or models would invalidate prompt cache reuse. |
|
|
732
|
+
| `reflection.bufferActivation` | `0.5` | When to start background reflection. `0.5` means reflection begins when observations reach 50% of the `observationTokens` threshold. |
|
|
733
|
+
| `reflection.activateAfterIdle` | none | Opts buffered reflections into idle activation. Reflections don't inherit top-level `activateAfterIdle`. |
|
|
734
|
+
| `reflection.activateOnProviderChange` | `false` | Opts buffered reflections into provider-change activation. Reflections don't inherit top-level `activateOnProviderChange`. |
|
|
735
|
+
| `reflection.blockAfter` | `1.2` | Safety threshold for reflection. Same value format as observation (absolute values must be greater than `observationTokens`), but above it reflection runs synchronously when no buffered reflection is ready to activate. |
|
|
736
736
|
|
|
737
737
|
If you're relying on prompt caching, set `activateAfterIdle` to `"auto"` or to a specific cache TTL. That way, once a thread has been idle long enough for the cache to expire, the next request can activate buffered observations first and send a smaller compressed context window.
|
|
738
738
|
|
|
@@ -784,7 +784,7 @@ const memory = new Memory({
|
|
|
784
784
|
|
|
785
785
|
Setting `bufferTokens: false` disables both observation and reflection async buffering. See [async buffering configuration](https://mastra.ai/reference/memory/observational-memory) for the full API.
|
|
786
786
|
|
|
787
|
-
> **Note:**
|
|
787
|
+
> **Note:** Resource scope automatically disables async buffering.
|
|
788
788
|
|
|
789
789
|
## Observer Context Optimization
|
|
790
790
|
|
|
@@ -116,7 +116,7 @@ Use memory when your agent needs to maintain multi-turn conversations that refer
|
|
|
116
116
|
|
|
117
117
|
Visit [Memory Class](https://mastra.ai/reference/memory/memory-class) for a full list of configuration options.
|
|
118
118
|
|
|
119
|
-
5. Call your agent, for example in [Studio](https://mastra.ai/docs/studio/overview). Inside Studio, start a new chat with your agent and take a look at the right sidebar. It'll now display
|
|
119
|
+
5. Call your agent, for example in [Studio](https://mastra.ai/docs/studio/overview). Inside Studio, start a new chat with your agent and take a look at the right sidebar. It'll now display memory details.
|
|
120
120
|
|
|
121
121
|
## Message history
|
|
122
122
|
|
|
@@ -275,7 +275,7 @@ Schema-based working memory uses **merge semantics**, meaning the agent only nee
|
|
|
275
275
|
## Choosing between template and schema
|
|
276
276
|
|
|
277
277
|
- Use a **template** (Markdown) if you want the agent to maintain memory as a free-form text block, such as a user profile or scratchpad. Templates use **replace semantics**: the agent must provide the complete memory content on each update.
|
|
278
|
-
- Use a **schema**
|
|
278
|
+
- Use a **schema** for structured, type-safe JSON data that supports validation and programmatic access. The `workingMemory.schema` field accepts any `PublicSchema`-compatible schema, such as Zod v3 or v4. JSON Schema and already-standard schemas are also supported. **Merge semantics** preserve existing fields when the agent provides only the fields to update.
|
|
279
279
|
- Only one mode can be active at a time: setting both `template` and `schema` isn't supported.
|
|
280
280
|
|
|
281
281
|
## Example: Multi-step retention
|
|
@@ -138,7 +138,7 @@ Called after a delegation finishes. Use it to inspect results or provide feedbac
|
|
|
138
138
|
- Return `{ feedback: '...' }`: Add feedback that gets saved to the parent agent's memory and is visible to subsequent iterations
|
|
139
139
|
- Return `{ resultText: '...' }`: Replace the tool result text the parent model sees for this delegation, within the current run
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
Set `resultText` when the subagent's own result would give the parent a misleading signal. For example, empty text from a subagent stopped on a tool-calls step looks like a successful but empty delegation to the parent model. Unlike `feedback` on the next turn, `resultText` affects the parent's reasoning immediately.
|
|
142
142
|
|
|
143
143
|
```typescript
|
|
144
144
|
const stream = await parentAgent.stream('Research AI trends', {
|
|
@@ -196,7 +196,7 @@ await parentAgent.generate('Research AI trends', { maxSteps: 10, requestContext
|
|
|
196
196
|
const hookErrors = requestContext.get('__mastra_delegationHookErrors') ?? []
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
When `hookErrorStrategy` is `'throw'`, a throwing `onDelegationStart` blocks the subagent from running at all, and a throwing `messageFilter` or `onDelegationComplete` surfaces to the parent as a failed tool call. If `onDelegationComplete` throws while handling a failed delegation, the original delegation error
|
|
199
|
+
When `hookErrorStrategy` is `'throw'`, a throwing `onDelegationStart` blocks the subagent from running at all, and a throwing `messageFilter` or `onDelegationComplete` surfaces to the parent as a failed tool call. If `onDelegationComplete` throws while handling a failed delegation, the original delegation error remains the surfaced error. The hook isn't invoked again for its own failure.
|
|
200
200
|
|
|
201
201
|
## Message filtering
|
|
202
202
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Added in:** `@mastra/memory@1.1.0`
|
|
8
8
|
|
|
9
|
-
Observational Memory (OM) is Mastra's memory system for long-context agentic memory. An **Observer** watches conversations and creates observations
|
|
9
|
+
Observational Memory (OM) is Mastra's memory system for long-context agentic memory. An **Observer** watches conversations and creates observations, which a **Reflector** restructures by combining related items and condensing overarching patterns. Together, they maintain an observation log that replaces raw message history as it grows.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -245,7 +245,7 @@ export const agent = new Agent({
|
|
|
245
245
|
|
|
246
246
|
### Shared token budget
|
|
247
247
|
|
|
248
|
-
When `shareTokenBudget` is enabled, the total budget is `observation.messageTokens + reflection.observationTokens
|
|
248
|
+
When `shareTokenBudget` is enabled, the total budget is `observation.messageTokens + reflection.observationTokens`, which is 100k in this example. Observations that use only 30k tokens leave up to 70k for messages, while short messages give observations more room before reflection starts.
|
|
249
249
|
|
|
250
250
|
```typescript
|
|
251
251
|
import { Memory } from '@mastra/memory'
|
|
@@ -359,7 +359,7 @@ export const agent = new Agent({
|
|
|
359
359
|
|
|
360
360
|
Async buffering is **enabled by default**. It pre-computes observations in the background as the conversation grows: when the `messageTokens` threshold is reached, buffered observations activate instantly with no blocking LLM call.
|
|
361
361
|
|
|
362
|
-
The lifecycle follows **buffer → activate → remove messages → repeat**. Background Observer calls run at `bufferTokens` intervals
|
|
362
|
+
The lifecycle follows **buffer → activate → remove messages → repeat**. Background Observer calls run at `bufferTokens` intervals and produce chunks of observations. At the threshold, activation moves observations into the log and removes raw messages from context. Above `blockAfter`, activation may overshoot the retention target instead of activating fewer chunks. A synchronous observation runs if the threshold is reached without activating a buffered chunk.
|
|
363
363
|
|
|
364
364
|
Default settings:
|
|
365
365
|
|
|
@@ -765,7 +765,7 @@ The standalone `ObservationalMemory` class accepts all the same options as the `
|
|
|
765
765
|
|
|
766
766
|
## Recall tool
|
|
767
767
|
|
|
768
|
-
When `retrieval` is
|
|
768
|
+
When `retrieval` is truthy, Mastra registers a `recall` tool that pages through raw messages behind observation group ranges. With the default resource scope, the tool can list threads (`mode: "threads"`) and browse another thread through `threadId`. It also supports cross-thread search. Set `retrieval: { vector: true }` for semantic search (`mode: "search"`), or use `scope: 'thread'` to restrict the tool to the current thread. The tool is automatically added to the agent.
|
|
769
769
|
|
|
770
770
|
Mastra also injects scope-aware usage instructions into the agent's context. For resource scope with `vector: true`, these cover routing between `search`, `threads`, and `messages`, including fallback to thread discovery when search results are unsuitable. Without `vector: true`, the instructions only cover `threads` and `messages` browsing, so the agent isn't steered toward a search mode that isn't configured. Resource-scoped instructions are injected even before any observation group exists, so the agent can browse other threads from the first message. Use `retrieval: { instructions: '...' }` to append application-specific guidance after the built-in instructions.
|
|
771
771
|
|
|
@@ -50,7 +50,7 @@ await memory.settled()
|
|
|
50
50
|
await store.close()
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
> **Note:** `settled()` joins the work that had started by the time you called it, plus any work that work enqueues. It
|
|
53
|
+
> **Note:** `settled()` joins the work that had started by the time you called it, plus any work that work enqueues. It doesn't prevent new work from starting afterwards, so call it once the agent runs you care about have returned.
|
|
54
54
|
|
|
55
55
|
## Related
|
|
56
56
|
|
|
@@ -68,7 +68,7 @@ for await (const part of stream.fullStream) {
|
|
|
68
68
|
|
|
69
69
|
## Media token counting
|
|
70
70
|
|
|
71
|
-
Images and file attachments are estimated
|
|
71
|
+
Images and file attachments are estimated instead of tokenized, including `file` message parts and tool results shaped like `{ data, mediaType }`. Images use a flat per-image estimate; other media uses decoded byte size, while remote URLs and provider file ids use a flat fallback because their size isn't known locally. Encoded payloads such as base64 data are never counted as text, avoiding an inflated count that could truncate history unnecessarily.
|
|
72
72
|
|
|
73
73
|
## Error behavior
|
|
74
74
|
|
|
@@ -222,7 +222,7 @@ const results = await store.textQuery({
|
|
|
222
222
|
|
|
223
223
|
### `hybridQuery()`
|
|
224
224
|
|
|
225
|
-
Runs a hybrid search that fuses vector similarity
|
|
225
|
+
Runs a hybrid search that fuses vector similarity with full-text results through MongoDB's server-side `$rankFusion`. The feature requires MongoDB 8.0 or later and is generally available from 8.1. MongoDB Atlas 8.0.x supports it where enabled, although enablement may require a support case. A full-text search index must exist. Managed indexes create one automatically, while bring-your-own collections require an explicit `createSearchIndex()` call.
|
|
226
226
|
|
|
227
227
|
**indexName** (`string`): Name of the Mastra index to search
|
|
228
228
|
|
|
@@ -255,7 +255,7 @@ const results = await store.hybridQuery({
|
|
|
255
255
|
})
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
`hybridQuery()` requires MongoDB
|
|
258
|
+
`hybridQuery()` requires MongoDB 8.0 or later for the `$rankFusion` stage, which is generally available from 8.1. On 8.0.x, the stage runs where enabled, including MongoDB Atlas, but enablement may require a support case. If your deployment is older or lacks `$rankFusion`, run `query()` and `textQuery()` separately before merging the results client-side.
|
|
259
259
|
|
|
260
260
|
### `describeIndex()`
|
|
261
261
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-Bewti2w5.cjs");
|
|
3
3
|
let _mastra_core_processors = require("@mastra/core/processors");
|
|
4
4
|
exports.Extractor = require_src.Extractor;
|
|
5
5
|
exports.KnowledgeSemanticIndexCoordinator = require_src.KnowledgeSemanticIndexCoordinator;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { ModelByInputTokens, type ModelByInputTokensConfig, } from './processors
|
|
|
16
16
|
export { Extractor, type ExtractorConfig, type ExtractorOnExtractedContext, type ExtractorRuntimeContext, type ExtractorSource, } from './processors/observational-memory/index.js';
|
|
17
17
|
export { WorkingMemoryExtractor } from './processors/observational-memory/working-memory-extractor.js';
|
|
18
18
|
export { KnowledgeSemanticIndexCoordinator, StaleKnowledgeSemanticIndexError, Subconscious, } from './processors/observational-memory/subconscious/index.js';
|
|
19
|
-
export type { KnowledgeSemanticIndexCoordinatorConfig, ResolvedSubconsciousAgent, ResolvedSubconsciousConfig, SubconsciousBuiltInObservationAgent, SubconsciousBuiltInObservationConfig,
|
|
19
|
+
export type { KnowledgeSemanticIndexCoordinatorConfig, ResolvedSubconsciousAgent, ResolvedSubconsciousConfig, SubconsciousBuiltInObservationAgent, SubconsciousBuiltInObservationConfig, SubconsciousConfig, SubconsciousCustomObservationConfig, SubconsciousObservationEntry, } from './processors/observational-memory/subconscious/index.js';
|
|
20
20
|
export { summarizeConversation, SUMMARIZE_THREAD_DEFAULTS } from './processors/observational-memory/summarize.js';
|
|
21
21
|
export type { SummarizeConversationOptions, SummarizeConversationResult, SummarizeModel, } from './processors/observational-memory/summarize.js';
|
|
22
22
|
/**
|
|
@@ -82,26 +82,10 @@ export declare class Memory extends MastraMemory {
|
|
|
82
82
|
/** The shared ObservationalMemory engine. Lazily created on first access. */
|
|
83
83
|
get omEngine(): Promise<ObservationalMemory | null>;
|
|
84
84
|
__registerMastra(mastra: Mastra): void;
|
|
85
|
+
/** @internal Creates isolated memory for a derived subconscious agent. */
|
|
86
|
+
createSubconsciousMemory(): Memory;
|
|
85
87
|
getMergedThreadConfig(config?: MemoryConfigInternal): MemoryConfigInternal;
|
|
86
88
|
private applySubconsciousDefaults;
|
|
87
|
-
/** Threads with a curation currently in flight in this process; guards same-process double-fire only. */
|
|
88
|
-
private _curationsInFlight;
|
|
89
|
-
/**
|
|
90
|
-
* Run the subconscious curator directly over the pending fact worklist, without a reflection.
|
|
91
|
-
* Cross-process serialization is the curation cursor's job; a lost race wastes one advisory run.
|
|
92
|
-
*
|
|
93
|
-
* Outcomes: `ran` (curator executed), `no-op` (empty worklist and no prompt, or no curate agent
|
|
94
|
-
* configured), `skipped` (a curation for this thread is already in flight in this process), and
|
|
95
|
-
* `no-model` (no per-agent, observational memory, or main-agent model could be resolved).
|
|
96
|
-
*/
|
|
97
|
-
runCuration(options: {
|
|
98
|
-
threadId: string;
|
|
99
|
-
resourceId: string;
|
|
100
|
-
requestContext?: RequestContext;
|
|
101
|
-
prompt?: string;
|
|
102
|
-
}): Promise<{
|
|
103
|
-
outcome: 'ran' | 'no-op' | 'skipped' | 'no-model';
|
|
104
|
-
}>;
|
|
105
89
|
private applyManagedWorkingMemoryDefaults;
|
|
106
90
|
constructor(config?: MemoryConstructorConfig);
|
|
107
91
|
private getKnowledgeStore;
|
|
@@ -147,6 +131,7 @@ export declare class Memory extends MastraMemory {
|
|
|
147
131
|
memoryConfig?: MemoryConfigInternal;
|
|
148
132
|
}): Promise<StorageThreadType>;
|
|
149
133
|
deleteThread(threadId: string): Promise<void>;
|
|
134
|
+
private deleteStoredThread;
|
|
150
135
|
/**
|
|
151
136
|
* Prefix shared by every message index. The index for the default embedding
|
|
152
137
|
* dimension is named with the bare prefix; other dimensions add a suffix.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,oBAAoB,EAA6B,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,eAAe,EACf,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EACV,uB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E,wBAAwB,EAAO,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,cAAc,EAAE,CAAC;IAsB5B;;;;OAIG;IACG,mBAAmB,CACvB,oBAAoB,GAAE,yBAAyB,EAAO,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,eAAe,EAAE,CAAC;IAW7B;;;;OAIG;YACW,iBAAiB;IAqC/B;;;;OAIG;YACW,iCAAiC;IAyB/C;;;;;;OAMG;YACW,0BAA0B;CAiBzC;AAGD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGxF,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAGnH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxE,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EACvB,iCAAiC,GAClC,MAAM,mCAAmC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as SUMMARIZE_THREAD_DEFAULTS, G as ModelByInputTokens, H as KnowledgeSemanticIndexCoordinator,
|
|
1
|
+
import { C as SUMMARIZE_THREAD_DEFAULTS, G as ModelByInputTokens, H as KnowledgeSemanticIndexCoordinator, S as WorkingMemoryExtractor, U as StaleKnowledgeSemanticIndexError, V as Subconscious, X as Extractor, a as extractWorkingMemoryContent, b as WorkingMemoryStateProcessor, c as getObservationsAsOf, i as WorkingMemory, n as MessageHistory, o as extractWorkingMemoryTags, r as SemanticRecall, s as removeWorkingMemoryTags, t as Memory, v as WORKING_MEMORY_STATE_ID, w as summarizeConversation, x as deepMergeWorkingMemory, y as WORKING_MEMORY_STATE_PROCESSOR_ID } from "./src-BYrxAUzs.js";
|
|
2
2
|
export { Extractor, KnowledgeSemanticIndexCoordinator, Memory, MessageHistory, ModelByInputTokens, SUMMARIZE_THREAD_DEFAULTS, SemanticRecall, StaleKnowledgeSemanticIndexError, Subconscious, WORKING_MEMORY_STATE_ID, WORKING_MEMORY_STATE_PROCESSOR_ID, WorkingMemory, WorkingMemoryExtractor, WorkingMemoryStateProcessor, deepMergeWorkingMemory, extractWorkingMemoryContent, extractWorkingMemoryTags, getObservationsAsOf, removeWorkingMemoryTags, summarizeConversation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("../src-
|
|
2
|
+
const require_src = require("../src-Bewti2w5.cjs");
|
|
3
3
|
exports.Extractor = require_src.Extractor;
|
|
4
4
|
exports.KnowledgeSemanticIndexCoordinator = require_src.KnowledgeSemanticIndexCoordinator;
|
|
5
5
|
exports.ModelByInputTokens = require_src.ModelByInputTokens;
|
|
@@ -13,7 +13,6 @@ exports.ObservationalMemoryProcessor = require_src.ObservationalMemoryProcessor;
|
|
|
13
13
|
exports.SUBCONSCIOUS_ACTIVITY_STATE_ID = require_src.SUBCONSCIOUS_ACTIVITY_STATE_ID;
|
|
14
14
|
exports.StaleKnowledgeSemanticIndexError = require_src.StaleKnowledgeSemanticIndexError;
|
|
15
15
|
exports.Subconscious = require_src.Subconscious;
|
|
16
|
-
exports.SubconsciousCaptureExtractor = require_src.SubconsciousCaptureExtractor;
|
|
17
16
|
exports.SubconsciousRemindExtractor = require_src.SubconsciousRemindExtractor;
|
|
18
17
|
exports.TokenCounter = require_src.TokenCounter;
|
|
19
18
|
exports.WorkingMemoryExtractor = require_src.WorkingMemoryExtractor;
|
|
@@ -37,6 +36,5 @@ exports.renderObservationGroupsForReflection = require_src.renderObservationGrou
|
|
|
37
36
|
exports.renderSubconsciousActivity = require_src.renderSubconsciousActivity;
|
|
38
37
|
exports.stripEphemeralAnchorIds = require_src.stripEphemeralAnchorIds;
|
|
39
38
|
exports.stripObservationGroups = require_src.stripObservationGroups;
|
|
40
|
-
exports.subconsciousCaptureSchema = require_src.subconsciousCaptureSchema;
|
|
41
39
|
exports.summarizeConversation = require_src.summarizeConversation;
|
|
42
40
|
exports.wrapInObservationGroup = require_src.wrapInObservationGroup;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as formatMessagesForObserver, B as OBSERVATION_CONTINUATION_HINT, D as buildObserverPrompt, E as OBSERVER_SYSTEM_PROMPT, F as parseAnchorId, G as ModelByInputTokens, H as KnowledgeSemanticIndexCoordinator, I as stripEphemeralAnchorIds, J as
|
|
2
|
-
export { Extractor, KnowledgeSemanticIndexCoordinator, ModelByInputTokens, OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, SUBCONSCIOUS_ACTIVITY_STATE_ID, StaleKnowledgeSemanticIndexError, Subconscious,
|
|
1
|
+
import { A as formatMessagesForObserver, B as OBSERVATION_CONTINUATION_HINT, D as buildObserverPrompt, E as OBSERVER_SYSTEM_PROMPT, F as parseAnchorId, G as ModelByInputTokens, H as KnowledgeSemanticIndexCoordinator, I as stripEphemeralAnchorIds, J as publishSubconsciousActivity, K as SUBCONSCIOUS_ACTIVITY_STATE_ID, L as OBSERVATIONAL_MEMORY_DEFAULTS, M as optimizeObservationsForContext, N as parseObserverOutput, O as buildObserverSystemPrompt, P as injectAnchorIds, R as OBSERVATION_CONTEXT_INSTRUCTIONS, S as WorkingMemoryExtractor, T as TokenCounter, U as StaleKnowledgeSemanticIndexError, V as Subconscious, W as SubconsciousRemindExtractor, X as Extractor, Y as renderSubconsciousActivity, _ as wrapInObservationGroup, c as getObservationsAsOf, d as combineObservationGroupRanges, f as deriveObservationGroupProvenance, g as stripObservationGroups, h as renderObservationGroupsForReflection, j as hasCurrentTaskSection, k as extractCurrentTask, l as ObservationalMemoryProcessor, m as reconcileObservationGroupsFromReflection, p as parseObservationGroups, q as buildSubconsciousActivitySnapshot, u as ObservationalMemory, w as summarizeConversation, z as OBSERVATION_CONTEXT_PROMPT } from "../src-BYrxAUzs.js";
|
|
2
|
+
export { Extractor, KnowledgeSemanticIndexCoordinator, ModelByInputTokens, OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTINUATION_HINT, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, SUBCONSCIOUS_ACTIVITY_STATE_ID, StaleKnowledgeSemanticIndexError, Subconscious, SubconsciousRemindExtractor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, buildSubconsciousActivitySnapshot, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, publishSubconsciousActivity, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, renderSubconsciousActivity, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extraction-runner.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/extraction-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAmBD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;IACvC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,OAAO,CAAC,0BAA0B,CAAC,
|
|
1
|
+
{"version":3,"file":"extraction-runner.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/extraction-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAmBD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE;IAClD,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;IACvC,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAwGtC"}
|
|
@@ -19,8 +19,8 @@ export { ModelByInputTokens, type ModelByInputTokensConfig } from './model-by-in
|
|
|
19
19
|
export { Extractor } from './extractor.js';
|
|
20
20
|
export type { ExtractorConfig, ExtractorOnExtractedContext, ExtractorRuntimeContext, ExtractorSource, } from './extractor.js';
|
|
21
21
|
export { WorkingMemoryExtractor } from './working-memory-extractor.js';
|
|
22
|
-
export { buildSubconsciousActivitySnapshot, KnowledgeSemanticIndexCoordinator, publishSubconsciousActivity, renderSubconsciousActivity, StaleKnowledgeSemanticIndexError, Subconscious, SUBCONSCIOUS_ACTIVITY_STATE_ID,
|
|
23
|
-
export type { KnowledgeSemanticIndexCoordinatorConfig, ResolvedSubconsciousAgent, SubconsciousActivitySnapshot, SubconsciousActivityUpdate, ResolvedSubconsciousConfig, SubconsciousBuiltInObservationAgent, SubconsciousBuiltInObservationConfig,
|
|
22
|
+
export { buildSubconsciousActivitySnapshot, KnowledgeSemanticIndexCoordinator, publishSubconsciousActivity, renderSubconsciousActivity, StaleKnowledgeSemanticIndexError, Subconscious, SUBCONSCIOUS_ACTIVITY_STATE_ID, SubconsciousRemindExtractor, } from './subconscious/index.js';
|
|
23
|
+
export type { KnowledgeSemanticIndexCoordinatorConfig, ResolvedSubconsciousAgent, SubconsciousActivitySnapshot, SubconsciousActivityUpdate, ResolvedSubconsciousConfig, SubconsciousBuiltInObservationAgent, SubconsciousBuiltInObservationConfig, SubconsciousConfig, SubconsciousCustomObservationConfig, SubconsciousObservationEntry, } from './subconscious/index.js';
|
|
24
24
|
export { summarizeConversation } from './summarize.js';
|
|
25
25
|
export type { SummarizeConversationOptions, SummarizeConversationResult, SummarizeModel } from './summarize.js';
|
|
26
26
|
export type { ObservationalMemoryConfig, ObservationDebugEvent, ObserveHooks, ObserveHookContext, ObserveHookUsage, ObserveTrigger, ObservationConfig, ReflectionConfig, ContinuationHintsConfig, ObserverResult, ReflectorResult, ObservationMarkerConfig, DataOmObservationStartPart, DataOmObservationEndPart, DataOmObservationFailedPart, DataOmStatusPart, DataOmThreadUpdatePart, DataOmObservationPart, DataOmBufferingStartPart, DataOmBufferingEndPart, DataOmBufferingFailedPart, DataOmBufferingPart, DataOmActivationPart, DataOmPart, } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,eAAe,EACf,2BAA2B,EAC3B,uBAAuB,EACvB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,eAAe,EACf,2BAA2B,EAC3B,uBAAuB,EACvB,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,uCAAuC,EACvC,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,mCAAmC,EACnC,oCAAoC,EACpC,kBAAkB,EAClB,mCAAmC,EACnC,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,cAAc,EAAE,MAAM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