@mastra/memory 1.37.0-alpha.2 → 1.37.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.
@@ -3,7 +3,7 @@ name: mastra-memory
3
3
  description: Documentation for @mastra/memory. Use when working with @mastra/memory APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/memory"
6
- version: "1.37.0-alpha.2"
6
+ version: "1.37.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.37.0-alpha.2",
2
+ "version": "1.37.0",
3
3
  "package": "@mastra/memory",
4
4
  "exports": {},
5
5
  "modules": {
@@ -73,6 +73,7 @@ Called before the parent agent delegates to a subagent. Return an object to cont
73
73
  - `proceed: false`: Reject the delegation with a `rejectionReason`
74
74
  - `modifiedPrompt`: Rewrite the prompt sent to the subagent
75
75
  - `modifiedMaxSteps`: Limit the subagent's iteration count
76
+ - `threadMetadata`: Attach metadata (for example a `tenantId`) to the subagent's thread when it's created, so you can filter threads with `memory.listThreads({ filter: { metadata } })`
76
77
 
77
78
  ```typescript
78
79
  const stream = await parentAgent.stream('Research AI trends', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/memory",
3
- "version": "1.37.0-alpha.2",
3
+ "version": "1.37.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -69,12 +69,12 @@
69
69
  "typescript": "^6.0.3",
70
70
  "typescript-eslint": "^8.57.0",
71
71
  "vitest": "4.1.11",
72
- "@internal/ai-sdk-v4": "0.0.88",
73
- "@internal/ai-sdk-v5": "0.0.88",
74
- "@internal/ai-v6": "0.0.88",
75
- "@internal/lint": "0.0.141",
76
- "@internal/types-builder": "0.0.116",
77
- "@mastra/core": "1.76.0-alpha.4"
72
+ "@internal/ai-sdk-v4": "0.0.89",
73
+ "@internal/ai-v6": "0.0.89",
74
+ "@internal/lint": "0.0.142",
75
+ "@internal/ai-sdk-v5": "0.0.89",
76
+ "@internal/types-builder": "0.0.117",
77
+ "@mastra/core": "1.76.0"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@mastra/core": ">=1.4.1-0 <2.0.0-0"