@mastra/core 1.2.0-alpha.0 → 1.2.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/CHANGELOG.md +314 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +1 -1
- package/dist/agent/agent.d.ts +17 -2
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/merge/MessageMerger.d.ts +5 -0
- package/dist/agent/message-list/merge/MessageMerger.d.ts.map +1 -1
- package/dist/agent/message-list/message-list.d.ts +15 -0
- package/dist/agent/message-list/message-list.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +9 -8
- package/dist/agent/workflows/prepare-stream/index.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +4 -0
- package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +9 -7
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts.map +1 -1
- package/dist/agent/workflows/prepare-stream/schema.d.ts +24 -14
- package/dist/agent/workflows/prepare-stream/schema.d.ts.map +1 -1
- package/dist/{chunk-XVHK5IAO.cjs → chunk-3LRUJTH3.cjs} +50 -333
- package/dist/chunk-3LRUJTH3.cjs.map +1 -0
- package/dist/{chunk-2CVY7S66.js → chunk-4XLGMCCQ.js} +18 -21
- package/dist/chunk-4XLGMCCQ.js.map +1 -0
- package/dist/{chunk-HIP5W3LZ.js → chunk-57O4TPB3.js} +60 -4
- package/dist/chunk-57O4TPB3.js.map +1 -0
- package/dist/{chunk-FAJYC6PA.js → chunk-5HDIPOLV.js} +363 -104
- package/dist/chunk-5HDIPOLV.js.map +1 -0
- package/dist/{chunk-OAOMKZXU.cjs → chunk-AP3Z4EAP.cjs} +60 -56
- package/dist/chunk-AP3Z4EAP.cjs.map +1 -0
- package/dist/{chunk-I6PWV32C.cjs → chunk-AQHO4OC2.cjs} +517 -61
- package/dist/chunk-AQHO4OC2.cjs.map +1 -0
- package/dist/{chunk-W57QS6F6.cjs → chunk-ARQG4ZSD.cjs} +430 -168
- package/dist/chunk-ARQG4ZSD.cjs.map +1 -0
- package/dist/{chunk-AC63Y6KP.js → chunk-BP2TSCBW.js} +3 -3
- package/dist/chunk-BP2TSCBW.js.map +1 -0
- package/dist/{chunk-NS33UC72.js → chunk-ENCTSDWC.js} +104 -11
- package/dist/chunk-ENCTSDWC.js.map +1 -0
- package/dist/{chunk-66BWIF4S.js → chunk-EY3WXGUD.js} +43 -326
- package/dist/chunk-EY3WXGUD.js.map +1 -0
- package/dist/{chunk-IUODLQMU.cjs → chunk-G5NRZOPO.cjs} +60 -4
- package/dist/chunk-G5NRZOPO.cjs.map +1 -0
- package/dist/{chunk-22EV7GMK.cjs → chunk-HMCXNOF6.cjs} +105 -10
- package/dist/chunk-HMCXNOF6.cjs.map +1 -0
- package/dist/{chunk-EYUXOOSQ.cjs → chunk-HN2MSTR6.cjs} +130 -9
- package/dist/chunk-HN2MSTR6.cjs.map +1 -0
- package/dist/{chunk-7ALOYTDY.cjs → chunk-I66TMZJ3.cjs} +15 -6
- package/dist/chunk-I66TMZJ3.cjs.map +1 -0
- package/dist/{chunk-Y2SVKUOQ.cjs → chunk-JRJJ5VQE.cjs} +44 -3
- package/dist/chunk-JRJJ5VQE.cjs.map +1 -0
- package/dist/{chunk-CILDTRXD.js → chunk-MNWW2R3U.js} +42 -4
- package/dist/chunk-MNWW2R3U.js.map +1 -0
- package/dist/{chunk-FYMM4PKR.js → chunk-NRMSZFAU.js} +12 -8
- package/dist/chunk-NRMSZFAU.js.map +1 -0
- package/dist/{chunk-SPVI7HCP.js → chunk-NYC6PYZF.js} +6 -6
- package/dist/{chunk-SPVI7HCP.js.map → chunk-NYC6PYZF.js.map} +1 -1
- package/dist/{chunk-XS2MED4Y.js → chunk-P62OJXQ4.js} +129 -8
- package/dist/chunk-P62OJXQ4.js.map +1 -0
- package/dist/{chunk-USHB3SPM.js → chunk-PPAJGWVW.js} +5 -5
- package/dist/chunk-PPAJGWVW.js.map +1 -0
- package/dist/{chunk-DWD5DB6W.js → chunk-RUMXBL6P.js} +4 -4
- package/dist/{chunk-DWD5DB6W.js.map → chunk-RUMXBL6P.js.map} +1 -1
- package/dist/{chunk-KNPIRLQQ.cjs → chunk-SS4AZHZW.cjs} +21 -24
- package/dist/chunk-SS4AZHZW.cjs.map +1 -0
- package/dist/{chunk-4DDIPGB6.js → chunk-T6PRRKMW.js} +15 -6
- package/dist/chunk-T6PRRKMW.js.map +1 -0
- package/dist/{chunk-ODNSWEMV.cjs → chunk-VBOO4F4D.cjs} +8 -8
- package/dist/chunk-VBOO4F4D.cjs.map +1 -0
- package/dist/{chunk-MCI7M6AT.cjs → chunk-YL6ETQ5I.cjs} +7 -7
- package/dist/{chunk-MCI7M6AT.cjs.map → chunk-YL6ETQ5I.cjs.map} +1 -1
- package/dist/{chunk-STNSGW7W.cjs → chunk-YLODOPYM.cjs} +3 -3
- package/dist/chunk-YLODOPYM.cjs.map +1 -0
- package/dist/{chunk-BLXWTBLL.cjs → chunk-Z2OKCLGV.cjs} +18 -18
- package/dist/{chunk-BLXWTBLL.cjs.map → chunk-Z2OKCLGV.cjs.map} +1 -1
- package/dist/{chunk-OQPAOUDS.js → chunk-ZODRDMZ7.js} +508 -52
- package/dist/chunk-ZODRDMZ7.js.map +1 -0
- package/dist/docs/README.md +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/SOURCE_MAP.json +357 -330
- package/dist/docs/agents/01-overview.md +2 -2
- package/dist/docs/configuration.mdx/01-reference.md +20 -0
- package/dist/docs/evals/01-overview.md +5 -5
- package/dist/docs/evals/04-reference.md +84 -10
- package/dist/docs/mcp/01-overview.md +2 -2
- package/dist/docs/memory/02-storage.md +10 -0
- package/dist/docs/observability/01-overview.md +1 -1
- package/dist/docs/observability/03-overview.md +3 -3
- package/dist/docs/rag/01-overview.md +1 -1
- package/dist/docs/tools-mcp/01-mcp-overview.md +2 -2
- package/dist/docs/voice/01-overview.md +1 -1
- package/dist/docs/workflows/01-overview.md +5 -5
- package/dist/docs/workspace/01-overview.md +2 -3
- package/dist/editor/index.cjs +4 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.ts +2 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +3 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor/types.d.ts +64 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/features/index.cjs +1 -1
- package/dist/features/index.cjs.map +1 -1
- package/dist/features/index.d.ts.map +1 -1
- package/dist/features/index.js +1 -1
- package/dist/features/index.js.map +1 -1
- package/dist/index.cjs +7 -2
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/llm/index.cjs +18 -18
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/embedding-router.d.ts +3 -1
- package/dist/llm/model/embedding-router.d.ts.map +1 -1
- package/dist/llm/model/model.d.ts +2 -2
- package/dist/llm/model/model.d.ts.map +1 -1
- package/dist/llm/model/model.loop.d.ts +1 -1
- package/dist/llm/model/model.loop.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +54 -2
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/loop.d.ts.map +1 -1
- package/dist/loop/network/index.d.ts +4 -4
- package/dist/loop/types.d.ts +6 -1
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +22 -22
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +15 -15
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +7 -7
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +22 -22
- package/dist/loop/workflows/schema.d.ts +30 -30
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts +30 -132
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +23 -11
- package/dist/memory/index.js +1 -1
- package/dist/memory/memory.d.ts +6 -1
- package/dist/memory/memory.d.ts.map +1 -1
- package/dist/memory/mock.d.ts.map +1 -1
- package/dist/memory/types.d.ts +282 -0
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-OQKVMEIT.cjs +12 -0
- package/dist/{models-dev-SOIECXXQ.cjs.map → models-dev-OQKVMEIT.cjs.map} +1 -1
- package/dist/models-dev-Z45JSLWD.js +3 -0
- package/dist/{models-dev-2HBSVUOS.js.map → models-dev-Z45JSLWD.js.map} +1 -1
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.d.ts +38 -1
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/message-history.d.ts +16 -0
- package/dist/processors/memory/message-history.d.ts.map +1 -1
- package/dist/processors/processors/skills.d.ts.map +1 -1
- package/dist/processors/runner.d.ts +17 -3
- package/dist/processors/runner.d.ts.map +1 -1
- package/dist/processors/step-schema.d.ts +34 -34
- package/dist/provider-registry-NR7FXV2Q.cjs +40 -0
- package/dist/{provider-registry-ML2VWWLB.cjs.map → provider-registry-NR7FXV2Q.cjs.map} +1 -1
- package/dist/provider-registry-RPOTQNHI.js +3 -0
- package/dist/{provider-registry-K5L4DHRK.js.map → provider-registry-RPOTQNHI.js.map} +1 -1
- package/dist/provider-registry.json +126 -5
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +28 -16
- package/dist/storage/constants.d.ts +13 -1
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/agents/base.d.ts.map +1 -1
- package/dist/storage/domains/agents/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +3 -1
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
- package/dist/storage/domains/memory/base.d.ts +62 -1
- package/dist/storage/domains/memory/base.d.ts.map +1 -1
- package/dist/storage/domains/memory/inmemory.d.ts +24 -2
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +50 -50
- package/dist/storage/domains/operations/inmemory.d.ts +5 -3
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +113 -101
- package/dist/storage/index.js +2 -2
- package/dist/storage/types.d.ts +203 -16
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/tools/tool-builder/builder.d.ts.map +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/vector/index.js.map +1 -1
- package/dist/vector/vector.d.ts +3 -1
- package/dist/vector/vector.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/workflow.d.ts.map +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts +2 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workflows/workflow.d.ts +2 -2
- package/dist/workflows/workflow.d.ts.map +1 -1
- package/dist/workspace/filesystem/index.d.ts +1 -0
- package/dist/workspace/filesystem/index.d.ts.map +1 -1
- package/dist/workspace/filesystem/local-filesystem.d.ts +3 -2
- package/dist/workspace/filesystem/local-filesystem.d.ts.map +1 -1
- package/dist/workspace/filesystem/mastra-filesystem.d.ts +65 -0
- package/dist/workspace/filesystem/mastra-filesystem.d.ts.map +1 -0
- package/dist/workspace/index.cjs +40 -32
- package/dist/workspace/index.d.ts +2 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/index.d.ts +1 -0
- package/dist/workspace/sandbox/index.d.ts.map +1 -1
- package/dist/workspace/sandbox/local-sandbox.d.ts +3 -2
- package/dist/workspace/sandbox/local-sandbox.d.ts.map +1 -1
- package/dist/workspace/sandbox/mastra-sandbox.d.ts +52 -0
- package/dist/workspace/sandbox/mastra-sandbox.d.ts.map +1 -0
- package/dist/workspace/tools/tools.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +21 -0
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/editor.d.ts +1 -0
- package/package.json +8 -8
- package/src/llm/model/provider-types.generated.d.ts +54 -2
- package/dist/chunk-22EV7GMK.cjs.map +0 -1
- package/dist/chunk-2CVY7S66.js.map +0 -1
- package/dist/chunk-4DDIPGB6.js.map +0 -1
- package/dist/chunk-66BWIF4S.js.map +0 -1
- package/dist/chunk-7ALOYTDY.cjs.map +0 -1
- package/dist/chunk-AC63Y6KP.js.map +0 -1
- package/dist/chunk-CILDTRXD.js.map +0 -1
- package/dist/chunk-EYUXOOSQ.cjs.map +0 -1
- package/dist/chunk-FAJYC6PA.js.map +0 -1
- package/dist/chunk-FYMM4PKR.js.map +0 -1
- package/dist/chunk-HIP5W3LZ.js.map +0 -1
- package/dist/chunk-I6PWV32C.cjs.map +0 -1
- package/dist/chunk-IUODLQMU.cjs.map +0 -1
- package/dist/chunk-KNPIRLQQ.cjs.map +0 -1
- package/dist/chunk-NS33UC72.js.map +0 -1
- package/dist/chunk-OAOMKZXU.cjs.map +0 -1
- package/dist/chunk-ODNSWEMV.cjs.map +0 -1
- package/dist/chunk-OQPAOUDS.js.map +0 -1
- package/dist/chunk-STNSGW7W.cjs.map +0 -1
- package/dist/chunk-USHB3SPM.js.map +0 -1
- package/dist/chunk-W57QS6F6.cjs.map +0 -1
- package/dist/chunk-XS2MED4Y.js.map +0 -1
- package/dist/chunk-XVHK5IAO.cjs.map +0 -1
- package/dist/chunk-Y2SVKUOQ.cjs.map +0 -1
- package/dist/models-dev-2HBSVUOS.js +0 -3
- package/dist/models-dev-SOIECXXQ.cjs +0 -12
- package/dist/provider-registry-K5L4DHRK.js +0 -3
- package/dist/provider-registry-ML2VWWLB.cjs +0 -40
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,319 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added Observational Memory — a new memory system that keeps your agent's context window small while preserving long-term memory across conversations. ([#12599](https://github.com/mastra-ai/mastra/pull/12599))
|
|
8
|
+
|
|
9
|
+
**Why:** Long conversations cause context rot and waste tokens. Observational Memory compresses conversation history into observations (5–40x compression) and periodically condenses those into reflections. Your agent stays fast and focused, even after thousands of messages.
|
|
10
|
+
|
|
11
|
+
**Usage:**
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { Memory } from '@mastra/memory';
|
|
15
|
+
import { PostgresStore } from '@mastra/pg';
|
|
16
|
+
|
|
17
|
+
const memory = new Memory({
|
|
18
|
+
storage: new PostgresStore({ connectionString: process.env.DATABASE_URL }),
|
|
19
|
+
options: {
|
|
20
|
+
observationalMemory: true,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const agent = new Agent({
|
|
25
|
+
name: 'my-agent',
|
|
26
|
+
model: openai('gpt-4o'),
|
|
27
|
+
memory,
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**What's new:**
|
|
32
|
+
- `observationalMemory: true` enables the three-tier memory system (recent messages → observations → reflections)
|
|
33
|
+
- Thread-scoped (per-conversation) and resource-scoped (shared across all threads for a user) modes
|
|
34
|
+
- Manual `observe()` API for triggering observation outside the normal agent loop
|
|
35
|
+
- New OM storage methods for pg, libsql, and mongodb adapters (conditionally enabled)
|
|
36
|
+
- `Agent.findProcessor()` method for looking up processors by ID
|
|
37
|
+
- `processorStates` for persisting processor state across loop iterations
|
|
38
|
+
- Abort signal propagation to processors
|
|
39
|
+
- `ProcessorStreamWriter` for custom stream events from processors
|
|
40
|
+
|
|
41
|
+
- Created @mastra/editor package for managing and resolving stored agent configurations ([#12631](https://github.com/mastra-ai/mastra/pull/12631))
|
|
42
|
+
|
|
43
|
+
This major addition introduces the editor package, which provides a complete solution for storing, versioning, and instantiating agent configurations from a database. The editor seamlessly integrates with Mastra's storage layer to enable dynamic agent management.
|
|
44
|
+
|
|
45
|
+
**Key Features:**
|
|
46
|
+
- **Agent Storage & Retrieval**: Store complete agent configurations including instructions, model settings, tools, workflows, nested agents, scorers, processors, and memory configuration
|
|
47
|
+
- **Version Management**: Create and manage multiple versions of agents, with support for activating specific versions
|
|
48
|
+
- **Dependency Resolution**: Automatically resolves and instantiates all agent dependencies (tools, workflows, sub-agents, etc.) from the Mastra registry
|
|
49
|
+
- **Caching**: Built-in caching for improved performance when repeatedly accessing stored agents
|
|
50
|
+
- **Type Safety**: Full TypeScript support with proper typing for stored configurations
|
|
51
|
+
|
|
52
|
+
**Usage Example:**
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { MastraEditor } from '@mastra/editor';
|
|
56
|
+
import { Mastra } from '@mastra/core';
|
|
57
|
+
|
|
58
|
+
// Initialize editor with Mastra
|
|
59
|
+
const mastra = new Mastra({
|
|
60
|
+
/* config */
|
|
61
|
+
editor: new MastraEditor(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// Store an agent configuration
|
|
65
|
+
const agentId = await mastra.storage.stores?.agents?.createAgent({
|
|
66
|
+
name: 'customer-support',
|
|
67
|
+
instructions: 'Help customers with inquiries',
|
|
68
|
+
model: { provider: 'openai', name: 'gpt-4' },
|
|
69
|
+
tools: ['search-kb', 'create-ticket'],
|
|
70
|
+
workflows: ['escalation-flow'],
|
|
71
|
+
memory: { vector: 'pinecone-db' },
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// Retrieve and use the stored agent
|
|
75
|
+
const agent = await mastra.getEditor()?.getStoredAgentById(agentId);
|
|
76
|
+
const response = await agent?.generate('How do I reset my password?');
|
|
77
|
+
|
|
78
|
+
// List all stored agents
|
|
79
|
+
const agents = await mastra.getEditor()?.listStoredAgents({ pageSize: 10 });
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Storage Improvements:**
|
|
83
|
+
- Fixed JSONB handling in LibSQL, PostgreSQL, and MongoDB adapters
|
|
84
|
+
- Improved agent resolution queries to properly merge version data
|
|
85
|
+
- Enhanced type safety for serialized configurations
|
|
86
|
+
|
|
87
|
+
- Added logger support to Workspace filesystem and sandbox providers. Providers extending MastraFilesystem or MastraSandbox now automatically receive the Mastra logger for consistent logging of file operations and command executions. ([#12606](https://github.com/mastra-ai/mastra/pull/12606))
|
|
88
|
+
|
|
89
|
+
- Added ToolSearchProcessor for dynamic tool discovery. ([#12290](https://github.com/mastra-ai/mastra/pull/12290))
|
|
90
|
+
|
|
91
|
+
Agents can now discover and load tools on demand instead of having all tools available upfront. This reduces context token usage by ~94% when working with large tool libraries.
|
|
92
|
+
|
|
93
|
+
**New API:**
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { ToolSearchProcessor } from '@mastra/core/processors';
|
|
97
|
+
import { Agent } from '@mastra/core';
|
|
98
|
+
|
|
99
|
+
// Create a processor with searchable tools
|
|
100
|
+
const toolSearch = new ToolSearchProcessor({
|
|
101
|
+
tools: {
|
|
102
|
+
createIssue: githubTools.createIssue,
|
|
103
|
+
sendEmail: emailTools.send,
|
|
104
|
+
// ... hundreds of tools
|
|
105
|
+
},
|
|
106
|
+
search: {
|
|
107
|
+
topK: 5, // Return top 5 results (default: 5)
|
|
108
|
+
minScore: 0.1, // Filter results below this score (default: 0)
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// Attach processor to agent
|
|
113
|
+
const agent = new Agent({
|
|
114
|
+
name: 'my-agent',
|
|
115
|
+
inputProcessors: [toolSearch],
|
|
116
|
+
tools: {
|
|
117
|
+
/* always-available tools */
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**How it works:**
|
|
123
|
+
|
|
124
|
+
The processor automatically provides two meta-tools to the agent:
|
|
125
|
+
- `search_tools` - Search for available tools by keyword relevance
|
|
126
|
+
- `load_tool` - Load a specific tool into the conversation
|
|
127
|
+
|
|
128
|
+
The agent discovers what it needs via search and loads tools on demand. Loaded tools are available immediately and persist within the conversation thread.
|
|
129
|
+
|
|
130
|
+
**Why:**
|
|
131
|
+
|
|
132
|
+
When agents have access to 100+ tools (from MCP servers or integrations), including all tool definitions in the context can consume significant tokens (~1,500 tokens per tool). This pattern reduces context usage by giving agents only the tools they need, when they need them.
|
|
133
|
+
|
|
134
|
+
### Patch Changes
|
|
135
|
+
|
|
136
|
+
- Update provider registry and model documentation with latest models and providers ([`e6fc281`](https://github.com/mastra-ai/mastra/commit/e6fc281896a3584e9e06465b356a44fe7faade65))
|
|
137
|
+
|
|
138
|
+
- Fixed processors returning `{ tools: {}, toolChoice: 'none' }` being ignored. Previously, when a processor returned empty tools with an explicit `toolChoice: 'none'` to prevent tool calls, the toolChoice was discarded and defaulted to 'auto'. This fix preserves the explicit 'none' value, enabling patterns like ensuring a final text response when `maxSteps` is reached. ([#12601](https://github.com/mastra-ai/mastra/pull/12601))
|
|
139
|
+
|
|
140
|
+
- Fix moonshotai/kimi-k2.5 multi-step tool calling failing with "reasoning_content is missing in assistant tool call message" ([#12530](https://github.com/mastra-ai/mastra/pull/12530))
|
|
141
|
+
- Changed moonshotai and moonshotai-cn (China version) providers to use Anthropic-compatible API endpoints instead of OpenAI-compatible
|
|
142
|
+
- moonshotai: `https://api.moonshot.ai/anthropic/v1`
|
|
143
|
+
- moonshotai-cn: `https://api.moonshot.cn/anthropic/v1`
|
|
144
|
+
- This properly handles reasoning_content for kimi-k2.5 model
|
|
145
|
+
|
|
146
|
+
- Fixed custom input processors from disabling workspace skill tools in generate() and stream(). Custom processors now replace only the processors you configured, while memory and skills remain available. Fixes #12612. ([#12676](https://github.com/mastra-ai/mastra/pull/12676))
|
|
147
|
+
|
|
148
|
+
- **Fixed** ([#12673](https://github.com/mastra-ai/mastra/pull/12673))
|
|
149
|
+
Workspace search index names now use underscores so they work with SQL-based vector stores (PgVector, LibSQL).
|
|
150
|
+
|
|
151
|
+
**Added**
|
|
152
|
+
You can now set a custom index name with `searchIndexName`.
|
|
153
|
+
|
|
154
|
+
**Why**
|
|
155
|
+
Some SQL vector stores reject hyphens in index names.
|
|
156
|
+
|
|
157
|
+
**Example**
|
|
158
|
+
|
|
159
|
+
```ts
|
|
160
|
+
// Before - would fail with PgVector
|
|
161
|
+
new Workspace({ id: 'my-workspace', vectorStore, embedder });
|
|
162
|
+
|
|
163
|
+
// After - works with all vector stores
|
|
164
|
+
new Workspace({ id: 'my-workspace', vectorStore, embedder });
|
|
165
|
+
|
|
166
|
+
// Or use a custom index name
|
|
167
|
+
new Workspace({ vectorStore, embedder, searchIndexName: 'my_workspace_vectors' });
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Fixes #12656
|
|
171
|
+
|
|
172
|
+
- Catch up evented workflows on parity with default execution engine ([#12555](https://github.com/mastra-ai/mastra/pull/12555))
|
|
173
|
+
|
|
174
|
+
- Expose token usage from embedding operations ([#12556](https://github.com/mastra-ai/mastra/pull/12556))
|
|
175
|
+
- `saveMessages` now returns `usage: { tokens: number }` with aggregated token count from all embeddings
|
|
176
|
+
- `recall` now returns `usage: { tokens: number }` from the vector search query embedding
|
|
177
|
+
- Updated abstract method signatures in `MastraMemory` to include optional `usage` in return types
|
|
178
|
+
|
|
179
|
+
This allows users to track embedding token usage when using the Memory class.
|
|
180
|
+
|
|
181
|
+
- Fixed a security issue where sensitive observability credentials (such as Langfuse API keys) could be exposed in tool execution error logs. The tracingContext is now properly excluded from logged data. ([#12669](https://github.com/mastra-ai/mastra/pull/12669))
|
|
182
|
+
|
|
183
|
+
- Fixed issue where some models incorrectly call skill names directly as tools instead of using skill-activate. Added clearer system instructions that explicitly state skills are NOT tools and must be activated via skill-activate with the skill name as the "name" parameter. Fixes #12654. ([#12677](https://github.com/mastra-ai/mastra/pull/12677))
|
|
184
|
+
|
|
185
|
+
- Improved workspace filesystem error handling: return 404 for not-found errors instead of 500, show user-friendly error messages in UI, and add MastraClientError class with status/body properties for better error handling ([#12533](https://github.com/mastra-ai/mastra/pull/12533))
|
|
186
|
+
|
|
187
|
+
- Improved workspace tool descriptions with clearer usage guidance for read_file, edit_file, and execute_command tools. ([#12640](https://github.com/mastra-ai/mastra/pull/12640))
|
|
188
|
+
|
|
189
|
+
- Fixed JSON parsing in agent network to handle malformed LLM output. Uses parsePartialJson from AI SDK to recover truncated JSON, missing braces, and unescaped control characters instead of failing immediately. This reduces unnecessary retry round-trips when the routing agent generates slightly malformed JSON for tool/workflow prompts. Fixes #12519. ([#12526](https://github.com/mastra-ai/mastra/pull/12526))
|
|
190
|
+
|
|
191
|
+
- Updated dependencies [[`abae238`](https://github.com/mastra-ai/mastra/commit/abae238c755ebaf867bbfa1a3a219ef003a1021a)]:
|
|
192
|
+
- @mastra/schema-compat@1.1.0
|
|
193
|
+
|
|
194
|
+
## 1.2.0-alpha.1
|
|
195
|
+
|
|
196
|
+
### Minor Changes
|
|
197
|
+
|
|
198
|
+
- Added Observational Memory — a new memory system that keeps your agent's context window small while preserving long-term memory across conversations. ([#12599](https://github.com/mastra-ai/mastra/pull/12599))
|
|
199
|
+
|
|
200
|
+
**Why:** Long conversations cause context rot and waste tokens. Observational Memory compresses conversation history into observations (5–40x compression) and periodically condenses those into reflections. Your agent stays fast and focused, even after thousands of messages.
|
|
201
|
+
|
|
202
|
+
**Usage:**
|
|
203
|
+
|
|
204
|
+
```ts
|
|
205
|
+
import { Memory } from '@mastra/memory';
|
|
206
|
+
import { PostgresStore } from '@mastra/pg';
|
|
207
|
+
|
|
208
|
+
const memory = new Memory({
|
|
209
|
+
storage: new PostgresStore({ connectionString: process.env.DATABASE_URL }),
|
|
210
|
+
options: {
|
|
211
|
+
observationalMemory: true,
|
|
212
|
+
},
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
const agent = new Agent({
|
|
216
|
+
name: 'my-agent',
|
|
217
|
+
model: openai('gpt-4o'),
|
|
218
|
+
memory,
|
|
219
|
+
});
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**What's new:**
|
|
223
|
+
- `observationalMemory: true` enables the three-tier memory system (recent messages → observations → reflections)
|
|
224
|
+
- Thread-scoped (per-conversation) and resource-scoped (shared across all threads for a user) modes
|
|
225
|
+
- Manual `observe()` API for triggering observation outside the normal agent loop
|
|
226
|
+
- New OM storage methods for pg, libsql, and mongodb adapters (conditionally enabled)
|
|
227
|
+
- `Agent.findProcessor()` method for looking up processors by ID
|
|
228
|
+
- `processorStates` for persisting processor state across loop iterations
|
|
229
|
+
- Abort signal propagation to processors
|
|
230
|
+
- `ProcessorStreamWriter` for custom stream events from processors
|
|
231
|
+
|
|
232
|
+
- Created @mastra/editor package for managing and resolving stored agent configurations ([#12631](https://github.com/mastra-ai/mastra/pull/12631))
|
|
233
|
+
|
|
234
|
+
This major addition introduces the editor package, which provides a complete solution for storing, versioning, and instantiating agent configurations from a database. The editor seamlessly integrates with Mastra's storage layer to enable dynamic agent management.
|
|
235
|
+
|
|
236
|
+
**Key Features:**
|
|
237
|
+
- **Agent Storage & Retrieval**: Store complete agent configurations including instructions, model settings, tools, workflows, nested agents, scorers, processors, and memory configuration
|
|
238
|
+
- **Version Management**: Create and manage multiple versions of agents, with support for activating specific versions
|
|
239
|
+
- **Dependency Resolution**: Automatically resolves and instantiates all agent dependencies (tools, workflows, sub-agents, etc.) from the Mastra registry
|
|
240
|
+
- **Caching**: Built-in caching for improved performance when repeatedly accessing stored agents
|
|
241
|
+
- **Type Safety**: Full TypeScript support with proper typing for stored configurations
|
|
242
|
+
|
|
243
|
+
**Usage Example:**
|
|
244
|
+
|
|
245
|
+
```typescript
|
|
246
|
+
import { MastraEditor } from '@mastra/editor';
|
|
247
|
+
import { Mastra } from '@mastra/core';
|
|
248
|
+
|
|
249
|
+
// Initialize editor with Mastra
|
|
250
|
+
const mastra = new Mastra({
|
|
251
|
+
/* config */
|
|
252
|
+
editor: new MastraEditor(),
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
// Store an agent configuration
|
|
256
|
+
const agentId = await mastra.storage.stores?.agents?.createAgent({
|
|
257
|
+
name: 'customer-support',
|
|
258
|
+
instructions: 'Help customers with inquiries',
|
|
259
|
+
model: { provider: 'openai', name: 'gpt-4' },
|
|
260
|
+
tools: ['search-kb', 'create-ticket'],
|
|
261
|
+
workflows: ['escalation-flow'],
|
|
262
|
+
memory: { vector: 'pinecone-db' },
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
// Retrieve and use the stored agent
|
|
266
|
+
const agent = await mastra.getEditor()?.getStoredAgentById(agentId);
|
|
267
|
+
const response = await agent?.generate('How do I reset my password?');
|
|
268
|
+
|
|
269
|
+
// List all stored agents
|
|
270
|
+
const agents = await mastra.getEditor()?.listStoredAgents({ pageSize: 10 });
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
**Storage Improvements:**
|
|
274
|
+
- Fixed JSONB handling in LibSQL, PostgreSQL, and MongoDB adapters
|
|
275
|
+
- Improved agent resolution queries to properly merge version data
|
|
276
|
+
- Enhanced type safety for serialized configurations
|
|
277
|
+
|
|
278
|
+
- Added logger support to Workspace filesystem and sandbox providers. Providers extending MastraFilesystem or MastraSandbox now automatically receive the Mastra logger for consistent logging of file operations and command executions. ([#12606](https://github.com/mastra-ai/mastra/pull/12606))
|
|
279
|
+
|
|
280
|
+
### Patch Changes
|
|
281
|
+
|
|
282
|
+
- Fixed custom input processors from disabling workspace skill tools in generate() and stream(). Custom processors now replace only the processors you configured, while memory and skills remain available. Fixes #12612. ([#12676](https://github.com/mastra-ai/mastra/pull/12676))
|
|
283
|
+
|
|
284
|
+
- **Fixed** ([#12673](https://github.com/mastra-ai/mastra/pull/12673))
|
|
285
|
+
Workspace search index names now use underscores so they work with SQL-based vector stores (PgVector, LibSQL).
|
|
286
|
+
|
|
287
|
+
**Added**
|
|
288
|
+
You can now set a custom index name with `searchIndexName`.
|
|
289
|
+
|
|
290
|
+
**Why**
|
|
291
|
+
Some SQL vector stores reject hyphens in index names.
|
|
292
|
+
|
|
293
|
+
**Example**
|
|
294
|
+
|
|
295
|
+
```ts
|
|
296
|
+
// Before - would fail with PgVector
|
|
297
|
+
new Workspace({ id: 'my-workspace', vectorStore, embedder });
|
|
298
|
+
|
|
299
|
+
// After - works with all vector stores
|
|
300
|
+
new Workspace({ id: 'my-workspace', vectorStore, embedder });
|
|
301
|
+
|
|
302
|
+
// Or use a custom index name
|
|
303
|
+
new Workspace({ vectorStore, embedder, searchIndexName: 'my_workspace_vectors' });
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
Fixes #12656
|
|
307
|
+
|
|
308
|
+
- Fixed a security issue where sensitive observability credentials (such as Langfuse API keys) could be exposed in tool execution error logs. The tracingContext is now properly excluded from logged data. ([#12669](https://github.com/mastra-ai/mastra/pull/12669))
|
|
309
|
+
|
|
310
|
+
- Fixed issue where some models incorrectly call skill names directly as tools instead of using skill-activate. Added clearer system instructions that explicitly state skills are NOT tools and must be activated via skill-activate with the skill name as the "name" parameter. Fixes #12654. ([#12677](https://github.com/mastra-ai/mastra/pull/12677))
|
|
311
|
+
|
|
312
|
+
- Improved workspace tool descriptions with clearer usage guidance for read_file, edit_file, and execute_command tools. ([#12640](https://github.com/mastra-ai/mastra/pull/12640))
|
|
313
|
+
|
|
314
|
+
- Updated dependencies [[`abae238`](https://github.com/mastra-ai/mastra/commit/abae238c755ebaf867bbfa1a3a219ef003a1021a)]:
|
|
315
|
+
- @mastra/schema-compat@1.1.0-alpha.0
|
|
316
|
+
|
|
3
317
|
## 1.2.0-alpha.0
|
|
4
318
|
|
|
5
319
|
### Minor Changes
|
|
@@ -2205,7 +2205,7 @@ declare interface GatewayLanguageModelEntry {
|
|
|
2205
2205
|
|
|
2206
2206
|
declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
|
|
2207
2207
|
|
|
2208
|
-
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-
|
|
2208
|
+
export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3-opus' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.5-sonnet' | 'anthropic/claude-3.5-sonnet-20240620' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'arcee-ai/trinity-mini' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2-exp' | 'deepseek/deepseek-v3.2-exp-thinking' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-image-preview' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemini-3-pro-preview' | 'google/gemini-3-pro-image' | 'inception/mercury-coder-small' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'mistral/codestral' | 'mistral/devstral-small' | 'mistral/magistral-medium' | 'mistral/magistral-medium-2506' | 'mistral/magistral-small' | 'mistral/magistral-small-2506' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large' | 'mistral/mistral-medium' | 'mistral/mistral-small' | 'mistral/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning' | 'perplexity/sonar-reasoning-pro' | 'prime-intellect/intellect-3' | 'stealth/sonoma-dusk-alpha' | 'stealth/sonoma-sky-alpha' | 'vercel/v0-1.0-md' | 'vercel/v0-1.5-md' | 'xai/grok-2' | 'xai/grok-2-vision' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-code-fast-1' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | (string & {});
|
|
2209
2209
|
|
|
2210
2210
|
declare interface GatewayProvider extends ProviderV2 {
|
|
2211
2211
|
(modelId: GatewayModelId): LanguageModelV2;
|
package/dist/agent/agent.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { MastraLanguageModel, MastraLegacyLanguageModel, MastraModelConfig
|
|
|
12
12
|
import type { Mastra } from '../mastra/index.js';
|
|
13
13
|
import type { MastraMemory } from '../memory/memory.js';
|
|
14
14
|
import type { TracingContext, TracingProperties } from '../observability/index.js';
|
|
15
|
-
import type { InputProcessorOrWorkflow, OutputProcessorOrWorkflow, ProcessorWorkflow } from '../processors/index.js';
|
|
15
|
+
import type { InputProcessorOrWorkflow, OutputProcessorOrWorkflow, ProcessorWorkflow, Processor } from '../processors/index.js';
|
|
16
16
|
import { RequestContext } from '../request-context/index.js';
|
|
17
17
|
import type { MastraAgentNetworkStream } from '../stream/index.js';
|
|
18
18
|
import type { FullOutput, MastraModelOutput } from '../stream/base/output.js';
|
|
@@ -55,6 +55,7 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
55
55
|
#private;
|
|
56
56
|
id: TAgentId;
|
|
57
57
|
name: string;
|
|
58
|
+
source?: 'code' | 'stored';
|
|
58
59
|
model: DynamicArgument<MastraModelConfig> | ModelFallbacks;
|
|
59
60
|
maxRetries?: number;
|
|
60
61
|
private _agentNetworkAppend;
|
|
@@ -78,7 +79,7 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
78
79
|
* ```
|
|
79
80
|
*/
|
|
80
81
|
constructor(config: AgentConfig<TAgentId, TTools, TOutput, TRequestContext>);
|
|
81
|
-
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, undefined, unknown>>, Record<string, Workflow<any, any, any, any, any, any, any, unknown>>, Record<string, import("
|
|
82
|
+
getMastraInstance(): Mastra<Record<string, Agent<any, ToolsInput, undefined, unknown>>, Record<string, Workflow<any, any, any, any, any, any, any, unknown>>, Record<string, import("..").MastraVectorProvider<any>>, Record<string, import("../tts").MastraTTS>, import("..").Logger, Record<string, import("../mcp").MCPServerBase<any>>, Record<string, MastraScorer<any, any, any, any>>, Record<string, import("..").ToolAction<any, any, any, any, any, any, unknown>>, Record<string, Processor<any, unknown>>, Record<string, MastraMemory>> | undefined;
|
|
82
83
|
/**
|
|
83
84
|
* Gets the skills processors to add to input processors when workspace has skills.
|
|
84
85
|
* @internal
|
|
@@ -129,6 +130,20 @@ export declare class Agent<TAgentId extends string = string, TTools extends Tool
|
|
|
129
130
|
* Returns the output processors for this agent, resolving function-based processors if necessary.
|
|
130
131
|
*/
|
|
131
132
|
listOutputProcessors(requestContext?: RequestContext): Promise<OutputProcessorOrWorkflow[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Resolves a processor by its ID from both input and output processors.
|
|
135
|
+
* This method resolves dynamic processor functions and includes memory-derived processors.
|
|
136
|
+
* Returns the processor if found, null otherwise.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```typescript
|
|
140
|
+
* const omProcessor = await agent.resolveProcessorById('observational-memory');
|
|
141
|
+
* if (omProcessor) {
|
|
142
|
+
* // Observational memory is configured
|
|
143
|
+
* }
|
|
144
|
+
* ```
|
|
145
|
+
*/
|
|
146
|
+
resolveProcessorById<TId extends string = string>(processorId: TId, requestContext?: RequestContext): Promise<Processor<TId> | null>;
|
|
132
147
|
/**
|
|
133
148
|
* Returns only the user-configured input processors, excluding memory-derived processors.
|
|
134
149
|
* Useful for scenarios where memory processors should not be applied (e.g., network routing agents).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent/agent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAY,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAe,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,KAAK,EAGV,aAAa,EACb,YAAY,EAEb,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EACV,mBAAmB,EAEnB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIlH,OAAO,EAAE,cAAc,E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KACxC;IAgBD;;;OAGG;IACG,wBAAwB,CAC5B,cAAc,EAAE,cAAc,EAC9B,YAAY,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,GACrC,OAAO,CAAC,MAAM,CAAC;CAqBnB"}
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkARQG4ZSD_cjs = require('../chunk-ARQG4ZSD.cjs');
|
|
4
|
+
var chunkG5NRZOPO_cjs = require('../chunk-G5NRZOPO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkARQG4ZSD_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "TripWire", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkARQG4ZSD_cjs.TripWire; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "isSupportedLanguageModel", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkARQG4ZSD_cjs.isSupportedLanguageModel; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "resolveThreadIdFromArgs", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkARQG4ZSD_cjs.resolveThreadIdFromArgs; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "supportedLanguageModelSpecifications", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkARQG4ZSD_cjs.supportedLanguageModelSpecifications; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "tryGenerateWithJsonFallback", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkARQG4ZSD_cjs.tryGenerateWithJsonFallback; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "tryStreamWithJsonFallback", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkARQG4ZSD_cjs.tryStreamWithJsonFallback; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "MessageList", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkG5NRZOPO_cjs.MessageList; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "TypeDetector", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkG5NRZOPO_cjs.TypeDetector; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "aiV5ModelMessageToV2PromptMessage", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkG5NRZOPO_cjs.aiV5ModelMessageToV2PromptMessage; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "convertMessages", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkG5NRZOPO_cjs.convertMessages; }
|
|
51
51
|
});
|
|
52
52
|
//# sourceMappingURL=index.cjs.map
|
|
53
53
|
//# sourceMappingURL=index.cjs.map
|
package/dist/agent/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-
|
|
2
|
-
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-
|
|
1
|
+
export { Agent, TripWire, isSupportedLanguageModel, resolveThreadIdFromArgs, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback } from '../chunk-5HDIPOLV.js';
|
|
2
|
+
export { MessageList, TypeDetector, aiV5ModelMessageToV2PromptMessage, convertMessages } from '../chunk-57O4TPB3.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG5NRZOPO_cjs = require('../../chunk-G5NRZOPO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "AIV4Adapter", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkG5NRZOPO_cjs.AIV4Adapter; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "AIV5Adapter", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkG5NRZOPO_cjs.AIV5Adapter; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CacheKeyGenerator", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkG5NRZOPO_cjs.CacheKeyGenerator; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "MessageList", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkG5NRZOPO_cjs.MessageList; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "MessageMerger", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkG5NRZOPO_cjs.MessageMerger; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "MessageStateManager", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkG5NRZOPO_cjs.MessageStateManager; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "TypeDetector", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkG5NRZOPO_cjs.TypeDetector; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "aiV4CoreMessageToV1PromptMessage", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkG5NRZOPO_cjs.aiV4CoreMessageToV1PromptMessage; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "aiV5ModelMessageToV2PromptMessage", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkG5NRZOPO_cjs.aiV5ModelMessageToV2PromptMessage; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "convertMessages", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkG5NRZOPO_cjs.convertMessages; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "coreContentToString", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkG5NRZOPO_cjs.coreContentToString; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ensureAnthropicCompatibleMessages", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkG5NRZOPO_cjs.ensureAnthropicCompatibleMessages; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ensureGeminiCompatibleMessages", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkG5NRZOPO_cjs.ensureGeminiCompatibleMessages; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "findToolCallArgs", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkG5NRZOPO_cjs.findToolCallArgs; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "getOpenAIReasoningItemId", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkG5NRZOPO_cjs.getOpenAIReasoningItemId; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "hasOpenAIReasoningItemId", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkG5NRZOPO_cjs.hasOpenAIReasoningItemId; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "messagesAreEqual", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkG5NRZOPO_cjs.messagesAreEqual; }
|
|
74
74
|
});
|
|
75
75
|
//# sourceMappingURL=index.cjs.map
|
|
76
76
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AIV4Adapter, AIV5Adapter, CacheKeyGenerator, MessageList, MessageMerger, MessageStateManager, TypeDetector, aiV4CoreMessageToV1PromptMessage, aiV5ModelMessageToV2PromptMessage, convertMessages, coreContentToString, ensureAnthropicCompatibleMessages, ensureGeminiCompatibleMessages, findToolCallArgs, getOpenAIReasoningItemId, hasOpenAIReasoningItemId, messagesAreEqual } from '../../chunk-
|
|
1
|
+
export { AIV4Adapter, AIV5Adapter, CacheKeyGenerator, MessageList, MessageMerger, MessageStateManager, TypeDetector, aiV4CoreMessageToV1PromptMessage, aiV5ModelMessageToV2PromptMessage, convertMessages, coreContentToString, ensureAnthropicCompatibleMessages, ensureGeminiCompatibleMessages, findToolCallArgs, getOpenAIReasoningItemId, hasOpenAIReasoningItemId, messagesAreEqual } from '../../chunk-57O4TPB3.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|