@mastra/memory 1.33.0-alpha.3 → 1.33.0
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 +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-human-in-the-loop.md +4 -2
- package/dist/docs/references/docs-evals-evals-with-memory.md +7 -6
- package/dist/docs/references/docs-harness-background-tasks.md +2 -2
- package/dist/docs/references/docs-harness-goals.md +27 -4
- package/dist/docs/references/docs-memory-observational-memory.md +3 -3
- package/dist/docs/references/docs-memory-overview.md +1 -1
- 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/processors/observational-memory/error.d.ts.map +1 -1
- package/dist/{src-BikfoIdS.js → src-BdfOygyn.js} +5 -4
- package/dist/{src-BikfoIdS.js.map → src-BdfOygyn.js.map} +1 -1
- package/dist/{src-CeFdO1YZ.cjs → src-CMESxrGy.cjs} +5 -4
- package/dist/{src-CeFdO1YZ.cjs.map → src-CMESxrGy.cjs.map} +1 -1
- package/package.json +8 -8
package/dist/docs/SKILL.md
CHANGED
|
@@ -120,12 +120,14 @@ The function can be asynchronous. For decisions that depend on the tool name and
|
|
|
120
120
|
|
|
121
121
|
```typescript
|
|
122
122
|
import { Classifier } from '@mastra/core/classifier'
|
|
123
|
-
import {
|
|
123
|
+
import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
|
|
124
124
|
import { agent } from './agent'
|
|
125
125
|
|
|
126
126
|
const approvalClassifier = new Classifier({
|
|
127
127
|
id: 'tool-approval-classifier',
|
|
128
|
-
model
|
|
128
|
+
model: createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
|
|
129
|
+
'jev-latest',
|
|
130
|
+
),
|
|
129
131
|
questions: {
|
|
130
132
|
requiresApproval: {
|
|
131
133
|
type: 'boolean',
|
|
@@ -10,15 +10,16 @@ Agents that use memory in `thread` scope, including observational memory, requir
|
|
|
10
10
|
ObservationalMemory (scope: 'thread') requires a threadId, but none was found in RequestContext or MessageList.
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Choose an approach based on how you want to share memory across eval items. For runnable examples, see [`examples/evals-with-memory`](https://github.com/mastra-ai/mastra/tree/main/examples/evals-with-memory).
|
|
14
14
|
|
|
15
15
|
## When to use which approach
|
|
16
16
|
|
|
17
|
-
| Goal
|
|
18
|
-
|
|
|
19
|
-
| One shared conversation across every item
|
|
20
|
-
| One independent thread per item, focused CI loop
|
|
21
|
-
|
|
|
17
|
+
| Goal | Approach |
|
|
18
|
+
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
19
|
+
| One shared conversation across every item | [`runEvals` with global `targetOptions.memory`](#shared-thread-with-runevals) |
|
|
20
|
+
| One independent thread per item, focused CI loop | [`runEvals` per item](#per-item-threads-with-runevals) |
|
|
21
|
+
| Fresh thread per item in a stored `Dataset` | [`dataset.startExperiment` with a registered agent](https://mastra.ai/docs/evals/experiments) |
|
|
22
|
+
| Explicit thread selection per item in a stored `Dataset` | [`dataset.startExperiment` with an inline task](#dataset-experiments-with-an-inline-task) |
|
|
22
23
|
|
|
23
24
|
Pre-seeding `RequestContext` with `MastraMemory` **isn't** a supported way to drive memory into an agent. Thread resolution reads `args.memory.thread`, `RequestContext.MastraMemory` is populated by `prepare-memory-step` after the agent has already resolved its thread.
|
|
24
25
|
|
|
@@ -231,7 +231,7 @@ When this `researchAgent` is delegated to from a supervisor that has no backgrou
|
|
|
231
231
|
|
|
232
232
|
Mastra supports one nested background-tool level inside a delegated run: a root agent can delegate to a subagent, and that subagent can dispatch an eligible ordinary tool in the background. A second delegated-agent edge runs in the foreground and doesn't receive nested background guidance. This limit is execution-scoped and doesn't mutate the shared subagent configuration.
|
|
233
233
|
|
|
234
|
-
Which layer to use depends on where consistency matters: subagent-level configuration travels with the agent,
|
|
234
|
+
Which layer to use depends on where consistency matters: subagent-level configuration travels with the agent, which keeps its background behavior the same under every supervisor, whereas the supervisor-side opt-in above centralizes that tuning in one place. This boundary stops at a single nested delegation level and has no workflow integration.
|
|
235
235
|
|
|
236
236
|
## Suspending and resuming
|
|
237
237
|
|
|
@@ -268,7 +268,7 @@ export const reviewTool = createTool({
|
|
|
268
268
|
})
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
The first invocation of `execute` sees `resumeData === undefined` and calls `suspend`. After the task is resumed, the runtime restarts the tool with `resumeData` populated. The `if` condition is false
|
|
271
|
+
The first invocation of `execute` sees `resumeData === undefined` and calls `suspend`. After the task is resumed, the runtime restarts the tool with `resumeData` populated. The `if` condition is false. The tool returns its real result.
|
|
272
272
|
|
|
273
273
|
To resume the task once an approval arrives:
|
|
274
274
|
|
|
@@ -67,11 +67,26 @@ A goal step runs inside the agentic execution loop, right after `isTaskComplete`
|
|
|
67
67
|
|
|
68
68
|
The step is a no-op for background-task, mid-tool-loop, and working-memory-only iterations, the same gating as `isTaskComplete`.
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
Each evaluation emits a typed `goal` stream chunk (`GoalEvaluationPayload`: `objective`, `iteration`, `maxRuns`, `passed`, `status`, `results`, `reason`, `duration`, `timedOut`, `maxRunsReached`, `suppressFeedback`) so a UI can show goal progress mid-run.
|
|
71
|
+
|
|
72
|
+
**The judge model is the activation switch.** If no judge resolves, from either the per-objective override or the agent's `goal.judge`, the goal step performs no scoring or budget consumption and emits no `goal` chunk. The gate covers every scorer: Mastra checks it before selecting a scorer, so a custom `goal.scorer` still needs a judge to resolve.
|
|
73
|
+
|
|
74
|
+
Effective settings resolve as per-objective record value, then agent `goal` config, then a built-in default (`maxRuns` `50` and the default judge prompt).
|
|
75
|
+
|
|
76
|
+
### Judge and scorer
|
|
77
|
+
|
|
78
|
+
`goal.judge` and `goal.scorer` work at different levels. `goal.scorer` is the evaluation pipeline that produces the score the loop gates on. `goal.judge` is the model the default pipeline calls to reach that score.
|
|
79
|
+
|
|
80
|
+
Omit `scorer` and Mastra builds a default LLM-as-judge scorer, which returns `1` when the objective is achieved and `0` otherwise. Configure it with these settings:
|
|
71
81
|
|
|
72
|
-
|
|
82
|
+
- `goal.judge`: The model that decides whether the objective is met.
|
|
83
|
+
- `goal.prompt`: Extra instructions for the judge. Defaults to the built-in goal judge prompt.
|
|
84
|
+
- `goal.tools`: Read-only verification tools the judge can call before deciding, so it can confirm the work instead of grading the agent's text alone.
|
|
85
|
+
- `goal.maxSteps`: Step budget for the judge's own agentic loop. Defaults to `5`.
|
|
73
86
|
|
|
74
|
-
|
|
87
|
+
Pass `goal.scorer` to replace the pipeline with your own [scorer](https://mastra.ai/reference/evals/create-scorer), either a scorer instance or a registered scorer id. The custom scorer brings its own judging, so `goal.prompt`, `goal.tools`, and `goal.maxSteps` no longer apply, and Mastra stops resolving the judge model for judging. A `goal.judge` resolver function still runs, and its return value is discarded.
|
|
88
|
+
|
|
89
|
+
Configure the default scorer with `judge`, `maxRuns`, and `prompt`:
|
|
75
90
|
|
|
76
91
|
```typescript
|
|
77
92
|
const worker = new Agent({
|
|
@@ -91,7 +106,15 @@ const worker = new Agent({
|
|
|
91
106
|
})
|
|
92
107
|
```
|
|
93
108
|
|
|
94
|
-
|
|
109
|
+
To hand the decision to your own scorer, pass it as `scorer` and keep `judge` set, because the activation gate still applies:
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
goal: {
|
|
113
|
+
judge: 'openai/gpt-5-mini',
|
|
114
|
+
// Replaces the built-in judge pipeline. `prompt`, `tools`, and `maxSteps` no longer apply.
|
|
115
|
+
scorer: 'tests-pass',
|
|
116
|
+
}
|
|
117
|
+
```
|
|
95
118
|
|
|
96
119
|
## Managing the objective
|
|
97
120
|
|
|
@@ -128,7 +128,7 @@ export const agent = new Agent({
|
|
|
128
128
|
|
|
129
129
|
Mastra inserts a temporal gap marker when the gap is at least 10 minutes. The marker is stored in memory and also emitted as a transient reminder event, so clients can render it as a lightweight timeline hint.
|
|
130
130
|
|
|
131
|
-
The observer also sees these markers when it processes the thread
|
|
131
|
+
The observer also sees these markers when it processes the thread. The observations it writes can anchor memories to when they happened (for example, "User asked about deployment after a 2-day gap").
|
|
132
132
|
|
|
133
133
|
See [the API reference](https://mastra.ai/reference/memory/observational-memory) for the full configuration shape.
|
|
134
134
|
|
|
@@ -223,7 +223,7 @@ A provider outage usually takes out both stages, so set the policy on both if yo
|
|
|
223
223
|
|
|
224
224
|
This policy applies only to Observer and Reflector model and provider failures in synchronous, resource-scoped, and buffered observation. Persistence, indexing, transform, locking, invariant, and explicit abort failures remain fatal. It doesn't prevent the underlying provider or network error, change `blockAfter`, or change attachment handling.
|
|
225
225
|
|
|
226
|
-
> **Warning:** `'continue'` has no backstop for a sustained outage. Unobserved messages stay pending and keep accruing in the main agent's context
|
|
226
|
+
> **Warning:** `'continue'` has no backstop for a sustained outage. Unobserved messages stay pending and keep accruing in the main agent's context. A long outage moves the failure from the memory layer to the model's context limit.
|
|
227
227
|
|
|
228
228
|
See [the API reference](https://mastra.ai/reference/memory/observational-memory) for the full configuration shape.
|
|
229
229
|
|
|
@@ -231,7 +231,7 @@ See [the API reference](https://mastra.ai/reference/memory/observational-memory)
|
|
|
231
231
|
|
|
232
232
|
- **Prompt caching**: OM's context is stable and observations append over time rather than being retrieved at runtime each turn. This keeps the prompt prefix cacheable, which reduces costs.
|
|
233
233
|
- **Compression**: Raw message history and tool results get compressed into a dense observation log. Smaller context means faster responses and longer coherent conversations.
|
|
234
|
-
- **Zero context rot**: The agent sees relevant information instead of noisy tool calls and irrelevant tokens,
|
|
234
|
+
- **Zero context rot**: The agent sees relevant information instead of noisy tool calls and irrelevant tokens, which keeps the agent on task over long sessions.
|
|
235
235
|
|
|
236
236
|
## How it works
|
|
237
237
|
|
|
@@ -202,7 +202,7 @@ Each delegation creates a fresh `threadId` and a deterministic `resourceId` for
|
|
|
202
202
|
|
|
203
203
|
> **Note:** Title generation (`generateTitle`) is a top-level thread concern and **isn't** applied to inherited subagent threads. Because each delegation creates an ephemeral thread that no one sees, running title generation for it would waste an LLM call per delegation. To generate titles for a subagent's own threads, give that subagent its own memory configuration.
|
|
204
204
|
|
|
205
|
-
The supervisor forwards its conversation context to the subagent so it has enough background to complete the task. Only the delegation prompt and the subagent's response are saved
|
|
205
|
+
The supervisor forwards its conversation context to the subagent so it has enough background to complete the task. Only the delegation prompt and the subagent's response are saved. The full parent conversation isn't stored. You can control which messages reach the subagent with the [`messageFilter`](https://mastra.ai/docs/subagents) callback.
|
|
206
206
|
|
|
207
207
|
> **Note:** Subagent resource IDs are always suffixed with the agent name (`{parentResourceId}-{agentName}`). Different subagents under the same supervisor never share a resource ID through delegation.
|
|
208
208
|
|
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-CMESxrGy.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.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as SUMMARIZE_THREAD_DEFAULTS, G as StaleKnowledgeSemanticIndexError, Q as Extractor, S as deepMergeWorkingMemory, U as Subconscious, W as KnowledgeSemanticIndexCoordinator, a as extractWorkingMemoryContent, b as WorkingMemoryStateProcessor, c as getObservationsAsOf, i as WorkingMemory, n as MessageHistory, o as extractWorkingMemoryTags, q as ModelByInputTokens, r as SemanticRecall, s as removeWorkingMemoryTags, t as Memory, v as WORKING_MEMORY_STATE_ID, w as summarizeConversation, x as WorkingMemoryExtractor, y as WORKING_MEMORY_STATE_PROCESSOR_ID } from "./src-
|
|
1
|
+
import { C as SUMMARIZE_THREAD_DEFAULTS, G as StaleKnowledgeSemanticIndexError, Q as Extractor, S as deepMergeWorkingMemory, U as Subconscious, W as KnowledgeSemanticIndexCoordinator, a as extractWorkingMemoryContent, b as WorkingMemoryStateProcessor, c as getObservationsAsOf, i as WorkingMemory, n as MessageHistory, o as extractWorkingMemoryTags, q as ModelByInputTokens, r as SemanticRecall, s as removeWorkingMemoryTags, t as Memory, v as WORKING_MEMORY_STATE_ID, w as summarizeConversation, x as WorkingMemoryExtractor, y as WORKING_MEMORY_STATE_PROCESSOR_ID } from "./src-BdfOygyn.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-CMESxrGy.cjs");
|
|
3
3
|
exports.Extractor = require_src.Extractor;
|
|
4
4
|
exports.KnowledgeSemanticIndexCoordinator = require_src.KnowledgeSemanticIndexCoordinator;
|
|
5
5
|
exports.ModelByInputTokens = require_src.ModelByInputTokens;
|
package/dist/processors/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as formatMessagesForObserver, B as OBSERVATION_CONTEXT_PROMPT_THREAD, D as buildObserverPrompt, E as OBSERVER_SYSTEM_PROMPT, F as parseAnchorId, G as StaleKnowledgeSemanticIndexError, H as getObservationContextPrompt, I as stripEphemeralAnchorIds, J as SUBCONSCIOUS_ACTIVITY_STATE_ID, K as SubconsciousRemindExtractor, L as OBSERVATIONAL_MEMORY_DEFAULTS, M as optimizeObservationsForContext, N as parseObserverOutput, O as buildObserverSystemPrompt, P as injectAnchorIds, Q as Extractor, R as OBSERVATION_CONTEXT_INSTRUCTIONS, T as TokenCounter, U as Subconscious, V as OBSERVATION_CONTINUATION_HINT, W as KnowledgeSemanticIndexCoordinator, X as publishSubconsciousActivity, Y as buildSubconsciousActivitySnapshot, Z 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 ModelByInputTokens, u as ObservationalMemory, w as summarizeConversation, x as WorkingMemoryExtractor, z as OBSERVATION_CONTEXT_PROMPT } from "../src-
|
|
1
|
+
import { A as formatMessagesForObserver, B as OBSERVATION_CONTEXT_PROMPT_THREAD, D as buildObserverPrompt, E as OBSERVER_SYSTEM_PROMPT, F as parseAnchorId, G as StaleKnowledgeSemanticIndexError, H as getObservationContextPrompt, I as stripEphemeralAnchorIds, J as SUBCONSCIOUS_ACTIVITY_STATE_ID, K as SubconsciousRemindExtractor, L as OBSERVATIONAL_MEMORY_DEFAULTS, M as optimizeObservationsForContext, N as parseObserverOutput, O as buildObserverSystemPrompt, P as injectAnchorIds, Q as Extractor, R as OBSERVATION_CONTEXT_INSTRUCTIONS, T as TokenCounter, U as Subconscious, V as OBSERVATION_CONTINUATION_HINT, W as KnowledgeSemanticIndexCoordinator, X as publishSubconsciousActivity, Y as buildSubconsciousActivitySnapshot, Z 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 ModelByInputTokens, u as ObservationalMemory, w as summarizeConversation, x as WorkingMemoryExtractor, z as OBSERVATION_CONTEXT_PROMPT } from "../src-BdfOygyn.js";
|
|
2
2
|
export { Extractor, KnowledgeSemanticIndexCoordinator, ModelByInputTokens, OBSERVATIONAL_MEMORY_DEFAULTS, OBSERVATION_CONTEXT_INSTRUCTIONS, OBSERVATION_CONTEXT_PROMPT, OBSERVATION_CONTEXT_PROMPT_THREAD, OBSERVATION_CONTINUATION_HINT, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, SUBCONSCIOUS_ACTIVITY_STATE_ID, StaleKnowledgeSemanticIndexError, Subconscious, SubconsciousRemindExtractor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, buildSubconsciousActivitySnapshot, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationContextPrompt, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, publishSubconsciousActivity, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, renderSubconsciousActivity, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/error.ts"],"names":[],"mappings":"AAQA,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAqBjE;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAEjE,qBAAa,qBAAsB,SAAQ,KAAK;IAE5C,QAAQ,CAAC,WAAW,EAAE,aAAa;gBAA1B,WAAW,EAAE,aAAa,EACnC,KAAK,EAAE,OAAO;CAKjB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAMtF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe;;;EAKlF;AAED,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/processors/observational-memory/error.ts"],"names":[],"mappings":"AAQA,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAqBjE;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;AACnD,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAEjE,qBAAa,qBAAsB,SAAQ,KAAK;IAE5C,QAAQ,CAAC,WAAW,EAAE,aAAa;gBAA1B,WAAW,EAAE,aAAa,EACnC,KAAK,EAAE,OAAO;CAKjB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAMtF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe;;;EAKlF;AAED,uGAAuG;AACvG,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiDpD"}
|
|
@@ -3712,7 +3712,7 @@ function trimStartOfStream() {
|
|
|
3712
3712
|
};
|
|
3713
3713
|
}
|
|
3714
3714
|
//#endregion
|
|
3715
|
-
//#region ../_vendored/ai_v5/dist/dist-
|
|
3715
|
+
//#region ../_vendored/ai_v5/dist/dist-KmM6rhg_.js
|
|
3716
3716
|
var marker$2$4 = "vercel.ai.error";
|
|
3717
3717
|
var symbol$2$4 = Symbol.for(marker$2$4);
|
|
3718
3718
|
var _a$2$4;
|
|
@@ -8999,7 +8999,7 @@ var object$1 = ({ schema: inputSchema }) => {
|
|
|
8999
8999
|
};
|
|
9000
9000
|
};
|
|
9001
9001
|
//#endregion
|
|
9002
|
-
//#region ../_vendored/ai_v6/dist/dist
|
|
9002
|
+
//#region ../_vendored/ai_v6/dist/dist-BBy3PDi4.js
|
|
9003
9003
|
var marker$2 = "vercel.ai.error";
|
|
9004
9004
|
var symbol$2 = Symbol.for(marker$2);
|
|
9005
9005
|
var _a$2;
|
|
@@ -11544,7 +11544,7 @@ var _b14;
|
|
|
11544
11544
|
}
|
|
11545
11545
|
});
|
|
11546
11546
|
//#endregion
|
|
11547
|
-
//#region ../_vendored/ai_v6/dist/dist-
|
|
11547
|
+
//#region ../_vendored/ai_v6/dist/dist-CM5SoUT8.js
|
|
11548
11548
|
function getContext() {
|
|
11549
11549
|
return { headers: {} };
|
|
11550
11550
|
}
|
|
@@ -18932,6 +18932,7 @@ function formatOmError(error) {
|
|
|
18932
18932
|
}
|
|
18933
18933
|
if (visited.has(value)) return;
|
|
18934
18934
|
visited.add(value);
|
|
18935
|
+
if (typeof value.id === "string" && typeof value.domain === "string" && typeof value.category === "string") add(value.id);
|
|
18935
18936
|
add(value.message);
|
|
18936
18937
|
if (typeof value.statusCode === "number") add(`HTTP ${value.statusCode}`);
|
|
18937
18938
|
if (typeof value.responseBody === "string") try {
|
|
@@ -34458,4 +34459,4 @@ Notes:
|
|
|
34458
34459
|
//#endregion
|
|
34459
34460
|
export { formatMessagesForObserver as A, OBSERVATION_CONTEXT_PROMPT_THREAD as B, SUMMARIZE_THREAD_DEFAULTS as C, buildObserverPrompt as D, OBSERVER_SYSTEM_PROMPT as E, parseAnchorId as F, StaleKnowledgeSemanticIndexError as G, getObservationContextPrompt as H, stripEphemeralAnchorIds as I, SUBCONSCIOUS_ACTIVITY_STATE_ID as J, SubconsciousRemindExtractor as K, OBSERVATIONAL_MEMORY_DEFAULTS as L, optimizeObservationsForContext as M, parseObserverOutput as N, buildObserverSystemPrompt as O, injectAnchorIds as P, Extractor as Q, OBSERVATION_CONTEXT_INSTRUCTIONS as R, deepMergeWorkingMemory as S, TokenCounter as T, Subconscious as U, OBSERVATION_CONTINUATION_HINT as V, KnowledgeSemanticIndexCoordinator as W, publishSubconsciousActivity as X, buildSubconsciousActivitySnapshot as Y, renderSubconsciousActivity as Z, wrapInObservationGroup as _, extractWorkingMemoryContent as a, WorkingMemoryStateProcessor as b, getObservationsAsOf as c, combineObservationGroupRanges as d, deriveObservationGroupProvenance as f, stripObservationGroups as g, renderObservationGroupsForReflection as h, WorkingMemory as i, hasCurrentTaskSection as j, extractCurrentTask as k, ObservationalMemoryProcessor as l, reconcileObservationGroupsFromReflection as m, MessageHistory$1 as n, extractWorkingMemoryTags as o, parseObservationGroups as p, ModelByInputTokens as q, SemanticRecall as r, removeWorkingMemoryTags as s, Memory as t, ObservationalMemory as u, WORKING_MEMORY_STATE_ID as v, summarizeConversation as w, WorkingMemoryExtractor as x, WORKING_MEMORY_STATE_PROCESSOR_ID as y, OBSERVATION_CONTEXT_PROMPT as z };
|
|
34460
34461
|
|
|
34461
|
-
//# sourceMappingURL=src-
|
|
34462
|
+
//# sourceMappingURL=src-BdfOygyn.js.map
|