@mastra/core 1.16.0-alpha.3 → 1.16.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/message-list.d.ts +13 -0
- package/dist/agent/message-list/message-list.d.ts.map +1 -1
- package/dist/{chunk-4EZX3JLF.cjs → chunk-43LAX4OC.cjs} +9 -9
- package/dist/{chunk-4EZX3JLF.cjs.map → chunk-43LAX4OC.cjs.map} +1 -1
- package/dist/{chunk-WZQ2AJZV.js → chunk-7BMRL7A7.js} +8 -8
- package/dist/{chunk-WZQ2AJZV.js.map → chunk-7BMRL7A7.js.map} +1 -1
- package/dist/{chunk-26OOSNWN.js → chunk-7BZCZH6B.js} +3 -3
- package/dist/{chunk-26OOSNWN.js.map → chunk-7BZCZH6B.js.map} +1 -1
- package/dist/{chunk-WZ2EJZ7R.cjs → chunk-7L2ICIDI.cjs} +6 -6
- package/dist/{chunk-WZ2EJZ7R.cjs.map → chunk-7L2ICIDI.cjs.map} +1 -1
- package/dist/{chunk-VQMIFPSC.cjs → chunk-ALCZ3AX7.cjs} +87 -84
- package/dist/chunk-ALCZ3AX7.cjs.map +1 -0
- package/dist/{chunk-O6O5MD7Q.cjs → chunk-ANLO4VM2.cjs} +36 -2
- package/dist/chunk-ANLO4VM2.cjs.map +1 -0
- package/dist/{chunk-76GUV7TZ.js → chunk-BLBX5SP3.js} +4 -4
- package/dist/{chunk-76GUV7TZ.js.map → chunk-BLBX5SP3.js.map} +1 -1
- package/dist/{chunk-V7KMU6NL.cjs → chunk-EEOZARYV.cjs} +7 -7
- package/dist/{chunk-V7KMU6NL.cjs.map → chunk-EEOZARYV.cjs.map} +1 -1
- package/dist/{chunk-GZWOMZ7C.js → chunk-GC3I45ZY.js} +3 -3
- package/dist/{chunk-GZWOMZ7C.js.map → chunk-GC3I45ZY.js.map} +1 -1
- package/dist/{chunk-MLCFE6MR.js → chunk-GRMC2OYN.js} +19 -3
- package/dist/chunk-GRMC2OYN.js.map +1 -0
- package/dist/{chunk-IS7VFXXN.js → chunk-HA53QKBU.js} +8 -8
- package/dist/{chunk-IS7VFXXN.js.map → chunk-HA53QKBU.js.map} +1 -1
- package/dist/{chunk-AVOGYFGK.cjs → chunk-HXFCAKO3.cjs} +83 -83
- package/dist/{chunk-AVOGYFGK.cjs.map → chunk-HXFCAKO3.cjs.map} +1 -1
- package/dist/{chunk-2NDTZII6.cjs → chunk-IK6ZBEOH.cjs} +15 -15
- package/dist/{chunk-2NDTZII6.cjs.map → chunk-IK6ZBEOH.cjs.map} +1 -1
- package/dist/{chunk-WEKILIGZ.js → chunk-J3NJXIJ4.js} +3 -3
- package/dist/{chunk-WEKILIGZ.js.map → chunk-J3NJXIJ4.js.map} +1 -1
- package/dist/{chunk-XME4PQE7.cjs → chunk-K4NN2KQQ.cjs} +19 -3
- package/dist/chunk-K4NN2KQQ.cjs.map +1 -0
- package/dist/{chunk-TKGXEXRR.js → chunk-KXRAP65E.js} +13 -10
- package/dist/chunk-KXRAP65E.js.map +1 -0
- package/dist/{chunk-A25ZFPG7.js → chunk-OMQ7OGTD.js} +7 -7
- package/dist/{chunk-A25ZFPG7.js.map → chunk-OMQ7OGTD.js.map} +1 -1
- package/dist/{chunk-Q7B3NPO3.cjs → chunk-OUMEFQRG.cjs} +3 -3
- package/dist/{chunk-Q7B3NPO3.cjs.map → chunk-OUMEFQRG.cjs.map} +1 -1
- package/dist/{chunk-TQO7BSJX.js → chunk-OUYKDP7F.js} +3 -3
- package/dist/{chunk-TQO7BSJX.js.map → chunk-OUYKDP7F.js.map} +1 -1
- package/dist/{chunk-RKGUSDHX.cjs → chunk-P5L3FDO5.cjs} +58 -58
- package/dist/{chunk-RKGUSDHX.cjs.map → chunk-P5L3FDO5.cjs.map} +1 -1
- package/dist/{chunk-MQ2YFSTS.cjs → chunk-PPDMILXE.cjs} +185 -185
- package/dist/{chunk-MQ2YFSTS.cjs.map → chunk-PPDMILXE.cjs.map} +1 -1
- package/dist/{chunk-BF2JWKWL.cjs → chunk-QR67PGEX.cjs} +5 -5
- package/dist/{chunk-BF2JWKWL.cjs.map → chunk-QR67PGEX.cjs.map} +1 -1
- package/dist/{chunk-XYT5D2T7.cjs → chunk-R67VVUDR.cjs} +13 -13
- package/dist/{chunk-XYT5D2T7.cjs.map → chunk-R67VVUDR.cjs.map} +1 -1
- package/dist/{chunk-YVFTL5BS.cjs → chunk-RQBBPR64.cjs} +16 -16
- package/dist/{chunk-YVFTL5BS.cjs.map → chunk-RQBBPR64.cjs.map} +1 -1
- package/dist/{chunk-2CEWKM43.js → chunk-RTRZMBMW.js} +3 -3
- package/dist/{chunk-2CEWKM43.js.map → chunk-RTRZMBMW.js.map} +1 -1
- package/dist/{chunk-YPJ5V2S5.js → chunk-SLZ3WO42.js} +36 -2
- package/dist/chunk-SLZ3WO42.js.map +1 -0
- package/dist/{chunk-STU7CG7E.js → chunk-V4WRIZUB.js} +5 -5
- package/dist/{chunk-STU7CG7E.js.map → chunk-V4WRIZUB.js.map} +1 -1
- package/dist/{chunk-JBAMLTYP.js → chunk-VDL5NSEM.js} +4 -4
- package/dist/{chunk-JBAMLTYP.js.map → chunk-VDL5NSEM.js.map} +1 -1
- package/dist/{chunk-JO36CQSY.js → chunk-WT6PBYLT.js} +12 -12
- package/dist/chunk-WT6PBYLT.js.map +1 -0
- package/dist/{chunk-7LMIK23W.js → chunk-XKOCRXCP.js} +3 -3
- package/dist/{chunk-7LMIK23W.js.map → chunk-XKOCRXCP.js.map} +1 -1
- package/dist/{chunk-YSPKTAYB.cjs → chunk-XW4B2RAG.cjs} +24 -24
- package/dist/{chunk-YSPKTAYB.cjs.map → chunk-XW4B2RAG.cjs.map} +1 -1
- package/dist/{chunk-4LDSJHWQ.cjs → chunk-YW7C25S4.cjs} +7 -7
- package/dist/{chunk-4LDSJHWQ.cjs.map → chunk-YW7C25S4.cjs.map} +1 -1
- package/dist/{chunk-BXDWBXQW.cjs → chunk-Z2ZO3S34.cjs} +13 -13
- package/dist/chunk-Z2ZO3S34.cjs.map +1 -0
- package/dist/{chunk-TUSCHVH3.js → chunk-ZJMETLCP.js} +4 -4
- package/dist/{chunk-TUSCHVH3.js.map → chunk-ZJMETLCP.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +239 -239
- package/dist/docs/references/docs-memory-observational-memory.md +36 -0
- package/dist/docs/references/reference-memory-observational-memory.md +42 -3
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +17 -17
- package/dist/harness/index.js +7 -7
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/integration/index.cjs +2 -2
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +3 -3
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-FQZJVFA3.cjs +12 -0
- package/dist/{models-dev-2FOUJALF.cjs.map → models-dev-FQZJVFA3.cjs.map} +1 -1
- package/dist/models-dev-IXIFPHTL.js +3 -0
- package/dist/{models-dev-A55UVGDD.js.map → models-dev-IXIFPHTL.js.map} +1 -1
- package/dist/netlify-ZDPSLMHL.js +3 -0
- package/dist/{netlify-MF3L2BRE.js.map → netlify-ZDPSLMHL.js.map} +1 -1
- package/dist/netlify-ZP6W4FNX.cjs +12 -0
- package/dist/{netlify-I3P5QPXG.cjs.map → netlify-ZP6W4FNX.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-GQASCCYW.cjs +40 -0
- package/dist/{provider-registry-QB6DEJ7U.cjs.map → provider-registry-GQASCCYW.cjs.map} +1 -1
- package/dist/provider-registry-JPXSL43R.js +3 -0
- package/dist/{provider-registry-J76YNM72.js.map → provider-registry-JPXSL43R.js.map} +1 -1
- package/dist/provider-registry.json +8 -8
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +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/index.cjs +7 -7
- package/dist/tools/index.js +1 -1
- package/dist/tools/is-vercel-tool.cjs +2 -2
- package/dist/tools/is-vercel-tool.js +1 -1
- package/dist/tools/validation.d.ts.map +1 -1
- package/dist/utils.cjs +23 -23
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.js +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +3 -3
- package/dist/chunk-BXDWBXQW.cjs.map +0 -1
- package/dist/chunk-JO36CQSY.js.map +0 -1
- package/dist/chunk-MLCFE6MR.js.map +0 -1
- package/dist/chunk-O6O5MD7Q.cjs.map +0 -1
- package/dist/chunk-TKGXEXRR.js.map +0 -1
- package/dist/chunk-VQMIFPSC.cjs.map +0 -1
- package/dist/chunk-XME4PQE7.cjs.map +0 -1
- package/dist/chunk-YPJ5V2S5.js.map +0 -1
- package/dist/models-dev-2FOUJALF.cjs +0 -12
- package/dist/models-dev-A55UVGDD.js +0 -3
- package/dist/netlify-I3P5QPXG.cjs +0 -12
- package/dist/netlify-MF3L2BRE.js +0 -3
- package/dist/provider-registry-J76YNM72.js +0 -3
- package/dist/provider-registry-QB6DEJ7U.cjs +0 -40
|
@@ -137,6 +137,42 @@ const memory = new Memory({
|
|
|
137
137
|
|
|
138
138
|
See [model configuration](https://mastra.ai/reference/memory/observational-memory) for using different models per agent.
|
|
139
139
|
|
|
140
|
+
### Token-tiered model selection
|
|
141
|
+
|
|
142
|
+
You can use `ModelByInputTokens` to specify different Observer or Reflector models based on input token count. OM selects the matching model tier at runtime from the configured `upTo` thresholds.
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
import { Memory, ModelByInputTokens } from '@mastra/memory'
|
|
146
|
+
|
|
147
|
+
const memory = new Memory({
|
|
148
|
+
options: {
|
|
149
|
+
observationalMemory: {
|
|
150
|
+
observation: {
|
|
151
|
+
model: new ModelByInputTokens({
|
|
152
|
+
upTo: {
|
|
153
|
+
10_000: 'google/gemini-2.5-flash', // Fast and cheap for small inputs
|
|
154
|
+
40_000: 'openai/gpt-4o', // Stronger for medium inputs
|
|
155
|
+
1_000_000: 'openai/gpt-4.5', // Most capable for very large inputs
|
|
156
|
+
},
|
|
157
|
+
}),
|
|
158
|
+
},
|
|
159
|
+
reflection: {
|
|
160
|
+
model: new ModelByInputTokens({
|
|
161
|
+
upTo: {
|
|
162
|
+
20_000: 'google/gemini-2.5-flash',
|
|
163
|
+
80_000: 'openai/gpt-4o',
|
|
164
|
+
},
|
|
165
|
+
}),
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
})
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
The `upTo` keys are inclusive upper bounds. OM computes the actual input token count for the Observer or Reflector call, resolves the matching tier directly, and uses that concrete model for the run.
|
|
173
|
+
|
|
174
|
+
If the input exceeds the largest configured threshold, an error is thrown — ensure your thresholds cover the full range of possible input sizes, or use a model with a sufficiently large context window at the highest tier.
|
|
175
|
+
|
|
140
176
|
## Scopes
|
|
141
177
|
|
|
142
178
|
### Thread scope (default)
|
|
@@ -32,7 +32,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
32
32
|
|
|
33
33
|
**enabled** (`boolean`): Enable or disable Observational Memory. When omitted from a config object, defaults to \`true\`. Only \`enabled: false\` explicitly disables it. (Default: `true`)
|
|
34
34
|
|
|
35
|
-
**model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set. When using \`observationalMemory: true\`, defaults to \`google/gemini-2.5-flash\`. When passing a config object, this or \`observation.model\`/\`reflection.model\` must be set. Use \`"default"\` to explicitly use the default model (\`google/gemini-2.5-flash\`). (Default: `'google/gemini-2.5-flash' (when using observationalMemory: true)`)
|
|
35
|
+
**model** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set. When using \`observationalMemory: true\`, defaults to \`google/gemini-2.5-flash\`. When passing a config object, this or \`observation.model\`/\`reflection.model\` must be set. Use \`"default"\` to explicitly use the default model (\`google/gemini-2.5-flash\`). (Default: `'google/gemini-2.5-flash' (when using observationalMemory: true)`)
|
|
36
36
|
|
|
37
37
|
**scope** (`'resource' | 'thread'`): Memory scope for observations. \`'thread'\` keeps observations per-thread. \`'resource'\` (experimental) shares observations across all threads for a resource, enabling cross-conversation memory. (Default: `'thread'`)
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
42
42
|
|
|
43
43
|
**observation** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
|
|
44
44
|
|
|
45
|
-
**observation.model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`reflection.model\`.
|
|
45
|
+
**observation.model** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`reflection.model\`.
|
|
46
46
|
|
|
47
47
|
**observation.instruction** (`string`): Custom instruction appended to the Observer's system prompt. Use this to customize what the Observer focuses on, such as domain-specific preferences or priorities.
|
|
48
48
|
|
|
@@ -68,7 +68,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
68
68
|
|
|
69
69
|
**reflection** (`ObservationalMemoryReflectionConfig`): Configuration for the reflection step. Controls when the Reflector agent runs and how it behaves.
|
|
70
70
|
|
|
71
|
-
**reflection.model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`observation.model\`.
|
|
71
|
+
**reflection.model** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided. If neither this nor the top-level \`model\` is set, falls back to \`observation.model\`.
|
|
72
72
|
|
|
73
73
|
**reflection.instruction** (`string`): Custom instruction appended to the Reflector's system prompt. Use this to customize how the Reflector consolidates observations, such as prioritizing certain types of information.
|
|
74
74
|
|
|
@@ -612,6 +612,45 @@ When `retrieval: true` is set with `scope: 'thread'`, OM registers a `recall` to
|
|
|
612
612
|
|
|
613
613
|
**tokenOffset** (`number`): Approximate number of tokens that were trimmed when \`truncated\` is true.
|
|
614
614
|
|
|
615
|
+
### ModelByInputTokens
|
|
616
|
+
|
|
617
|
+
`ModelByInputTokens` selects a model based on the input token count. It chooses the model for the smallest threshold that covers the actual input size.
|
|
618
|
+
|
|
619
|
+
#### Constructor
|
|
620
|
+
|
|
621
|
+
```typescript
|
|
622
|
+
new ModelByInputTokens(config)
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
Where `config` is an object with `upTo` keys that map token thresholds (numbers) to model targets.
|
|
626
|
+
|
|
627
|
+
#### Example
|
|
628
|
+
|
|
629
|
+
```typescript
|
|
630
|
+
import { ModelByInputTokens } from '@mastra/memory'
|
|
631
|
+
|
|
632
|
+
const selector = new ModelByInputTokens({
|
|
633
|
+
upTo: {
|
|
634
|
+
10_000: 'google/gemini-2.5-flash', // Fast for small inputs
|
|
635
|
+
40_000: 'openai/gpt-4o', // Stronger for medium inputs
|
|
636
|
+
1_000_000: 'openai/gpt-4.5', // Most capable for large inputs
|
|
637
|
+
},
|
|
638
|
+
})
|
|
639
|
+
```
|
|
640
|
+
|
|
641
|
+
#### Behavior
|
|
642
|
+
|
|
643
|
+
- Thresholds are sorted internally, so the order in the config object does not matter.
|
|
644
|
+
- `inputTokens ≤ smallest threshold` → uses that threshold's model
|
|
645
|
+
- `inputTokens > largest threshold` → `resolve()` throws an error. If this happens during an OM Observer or Reflector run, OM aborts via TripWire, so callers receive an empty `text` result or streamed `tripwire` instead of a normal assistant response.
|
|
646
|
+
- OM computes the input token count for the Observer or Reflector call and resolves the matching model tier directly
|
|
647
|
+
|
|
648
|
+
#### Methods
|
|
649
|
+
|
|
650
|
+
**resolve** (`(inputTokens: number) => MastraModelConfig`): Returns the model for the given input token count. Throws if inputTokens exceeds the largest configured threshold. When this happens during an OM run, callers receive a TripWire/empty-text outcome instead of a normal assistant response.
|
|
651
|
+
|
|
652
|
+
**getThresholds** (`() => number[]`): Returns the configured thresholds in ascending order. Useful for introspection.
|
|
653
|
+
|
|
615
654
|
### Related
|
|
616
655
|
|
|
617
656
|
- [Observational Memory](https://mastra.ai/docs/memory/observational-memory)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQR67PGEX_cjs = require('../chunk-QR67PGEX.cjs');
|
|
4
|
+
var chunkALCZ3AX7_cjs = require('../chunk-ALCZ3AX7.cjs');
|
|
5
5
|
var chunkSQACXTWK_cjs = require('../chunk-SQACXTWK.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkQR67PGEX_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkALCZ3AX7_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkALCZ3AX7_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
22
22
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-7BZCZH6B.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-KXRAP65E.js';
|
|
3
3
|
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-SNASZNHI.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkP5L3FDO5_cjs = require('../../chunk-P5L3FDO5.cjs');
|
|
4
4
|
var chunkSQACXTWK_cjs = require('../../chunk-SQACXTWK.cjs');
|
|
5
5
|
var chunkG5HKDGNT_cjs = require('../../chunk-G5HKDGNT.cjs');
|
|
6
6
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
@@ -235,7 +235,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
238
|
-
var getTraceStep =
|
|
238
|
+
var getTraceStep = chunkP5L3FDO5_cjs.createStep({
|
|
239
239
|
id: "__process-trace-scoring",
|
|
240
240
|
inputSchema: v4.z.object({
|
|
241
241
|
targets: v4.z.array(
|
|
@@ -446,7 +446,7 @@ async function attachScoreToSpan({
|
|
|
446
446
|
} catch {
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
var scoreTracesWorkflow =
|
|
449
|
+
var scoreTracesWorkflow = chunkP5L3FDO5_cjs.createWorkflow({
|
|
450
450
|
id: "__batch-scoring-traces",
|
|
451
451
|
inputSchema: v4.z.object({
|
|
452
452
|
targets: v4.z.array(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-OMQ7OGTD.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-SNASZNHI.js';
|
|
3
3
|
import { resolveObservabilityContext } from '../../chunk-CT4YYQI3.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkIK6ZBEOH_cjs = require('../chunk-IK6ZBEOH.cjs');
|
|
4
|
+
var chunkALCZ3AX7_cjs = require('../chunk-ALCZ3AX7.cjs');
|
|
5
|
+
var chunkXW4B2RAG_cjs = require('../chunk-XW4B2RAG.cjs');
|
|
6
|
+
var chunkK4NN2KQQ_cjs = require('../chunk-K4NN2KQQ.cjs');
|
|
7
7
|
var chunkXB4FLS7A_cjs = require('../chunk-XB4FLS7A.cjs');
|
|
8
8
|
var chunk5WBEMKE2_cjs = require('../chunk-5WBEMKE2.cjs');
|
|
9
9
|
var v4 = require('zod/v4');
|
|
10
10
|
|
|
11
11
|
var questionCounter = 0;
|
|
12
12
|
var planCounter = 0;
|
|
13
|
-
var askUserTool =
|
|
13
|
+
var askUserTool = chunkK4NN2KQQ_cjs.createTool({
|
|
14
14
|
id: "ask_user",
|
|
15
15
|
description: "Ask the user a question and wait for their response. Use this when you need clarification, want to validate assumptions, or need the user to make a decision between options. Provide options for structured choices (2-4 options), or omit them for open-ended questions.",
|
|
16
16
|
inputSchema: v4.z.object({
|
|
@@ -61,7 +61,7 @@ var askUserTool = chunkXME4PQE7_cjs.createTool({
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
var submitPlanTool =
|
|
64
|
+
var submitPlanTool = chunkK4NN2KQQ_cjs.createTool({
|
|
65
65
|
id: "submit_plan",
|
|
66
66
|
description: "Submit a completed implementation plan for user review. The plan will be rendered as markdown and the user can approve, reject, or request changes. Use this when your exploration is complete and you have a concrete plan ready for review. On approval, the system automatically switches to the default mode so you can implement.",
|
|
67
67
|
inputSchema: v4.z.object({
|
|
@@ -130,7 +130,7 @@ var taskItemSchema = v4.z.object({
|
|
|
130
130
|
status: v4.z.enum(["pending", "in_progress", "completed"]).describe("Current task status"),
|
|
131
131
|
activeForm: v4.z.string().min(1).describe("Present continuous form shown during execution (e.g., 'Fixing authentication bug')")
|
|
132
132
|
});
|
|
133
|
-
var taskWriteTool =
|
|
133
|
+
var taskWriteTool = chunkK4NN2KQQ_cjs.createTool({
|
|
134
134
|
id: "task_write",
|
|
135
135
|
description: `Create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
|
|
136
136
|
|
|
@@ -179,7 +179,7 @@ Currently: ${inProgress.activeForm}`;
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
|
-
var taskCheckTool =
|
|
182
|
+
var taskCheckTool = chunkK4NN2KQQ_cjs.createTool({
|
|
183
183
|
id: "task_check",
|
|
184
184
|
description: `Check the completion status of your current task list. Use this before deciding to end work on a task to ensure all tasks are completed.
|
|
185
185
|
|
|
@@ -258,7 +258,7 @@ function createSubagentTool(opts) {
|
|
|
258
258
|
const { subagents, resolveModel, harnessTools, fallbackModelId } = opts;
|
|
259
259
|
const subagentIds = subagents.map((s) => s.id);
|
|
260
260
|
const typeDescriptions = subagents.map((s) => `- **${s.id}** (${s.name}): ${s.description}`).join("\n");
|
|
261
|
-
return
|
|
261
|
+
return chunkK4NN2KQQ_cjs.createTool({
|
|
262
262
|
id: "subagent",
|
|
263
263
|
description: `Delegate a focused task to a specialized subagent. The subagent runs independently with a constrained toolset, then returns its findings as text.
|
|
264
264
|
|
|
@@ -312,7 +312,7 @@ Use this tool when:
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
const workspace = context?.workspace;
|
|
315
|
-
const subagent = new
|
|
315
|
+
const subagent = new chunkALCZ3AX7_cjs.Agent({
|
|
316
316
|
id: `subagent-${definition.id}`,
|
|
317
317
|
name: `${definition.name} Subagent`,
|
|
318
318
|
instructions: definition.instructions,
|
|
@@ -320,7 +320,7 @@ Use this tool when:
|
|
|
320
320
|
tools: mergedTools,
|
|
321
321
|
workspace
|
|
322
322
|
});
|
|
323
|
-
const allWorkspaceToolNames = workspace ? new Set(Object.keys(
|
|
323
|
+
const allWorkspaceToolNames = workspace ? new Set(Object.keys(chunkXW4B2RAG_cjs.createWorkspaceTools(workspace))) : void 0;
|
|
324
324
|
const allowedWs = definition.allowedWorkspaceTools ? new Set(definition.allowedWorkspaceTools) : void 0;
|
|
325
325
|
const startTime = Date.now();
|
|
326
326
|
emitEvent?.({
|
|
@@ -542,7 +542,7 @@ var Harness = class {
|
|
|
542
542
|
throw new Error("Harness requires at least one agent mode");
|
|
543
543
|
}
|
|
544
544
|
this.currentModeId = defaultMode.id;
|
|
545
|
-
if (config.workspace instanceof
|
|
545
|
+
if (config.workspace instanceof chunkXW4B2RAG_cjs.Workspace) {
|
|
546
546
|
this.workspace = config.workspace;
|
|
547
547
|
} else if (typeof config.workspace === "function") {
|
|
548
548
|
this.workspaceFn = config.workspace;
|
|
@@ -561,13 +561,13 @@ var Harness = class {
|
|
|
561
561
|
*/
|
|
562
562
|
async init() {
|
|
563
563
|
if (this.config.storage) {
|
|
564
|
-
this.#internalMastra = new
|
|
564
|
+
this.#internalMastra = new chunkIK6ZBEOH_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
565
565
|
await this.#internalMastra.getStorage().init();
|
|
566
566
|
}
|
|
567
567
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
568
568
|
try {
|
|
569
569
|
if (!this.workspace) {
|
|
570
|
-
this.workspace = new
|
|
570
|
+
this.workspace = new chunkXW4B2RAG_cjs.Workspace(this.config.workspace);
|
|
571
571
|
}
|
|
572
572
|
this.emit({ type: "workspace_status_changed", status: "initializing" });
|
|
573
573
|
await this.workspace.init();
|
|
@@ -813,7 +813,7 @@ var Harness = class {
|
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
try {
|
|
816
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
816
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-GQASCCYW.cjs');
|
|
817
817
|
const registry = PROVIDER_REGISTRY;
|
|
818
818
|
const providerConfig = registry[provider];
|
|
819
819
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -833,7 +833,7 @@ var Harness = class {
|
|
|
833
833
|
*/
|
|
834
834
|
async listAvailableModels() {
|
|
835
835
|
try {
|
|
836
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
836
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-GQASCCYW.cjs');
|
|
837
837
|
if (!PROVIDER_REGISTRY) return [];
|
|
838
838
|
const registry = PROVIDER_REGISTRY;
|
|
839
839
|
const providers = Object.keys(registry);
|
|
@@ -892,7 +892,7 @@ var Harness = class {
|
|
|
892
892
|
}
|
|
893
893
|
async getProviderApiKeyEnvVar(provider) {
|
|
894
894
|
try {
|
|
895
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
895
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-GQASCCYW.cjs');
|
|
896
896
|
const registry = PROVIDER_REGISTRY;
|
|
897
897
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
898
898
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/harness/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
3
|
-
import { Workspace, createWorkspaceTools } from '../chunk-
|
|
4
|
-
import { createTool } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-HA53QKBU.js';
|
|
2
|
+
import { Agent } from '../chunk-KXRAP65E.js';
|
|
3
|
+
import { Workspace, createWorkspaceTools } from '../chunk-J3NJXIJ4.js';
|
|
4
|
+
import { createTool } from '../chunk-GRMC2OYN.js';
|
|
5
5
|
import { toStandardSchema } from '../chunk-6SRTDZ7S.js';
|
|
6
6
|
import { RequestContext } from '../chunk-JGOH7RWL.js';
|
|
7
7
|
import { z } from 'zod/v4';
|
|
@@ -811,7 +811,7 @@ var Harness = class {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
try {
|
|
814
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
814
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-JPXSL43R.js');
|
|
815
815
|
const registry = PROVIDER_REGISTRY;
|
|
816
816
|
const providerConfig = registry[provider];
|
|
817
817
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -831,7 +831,7 @@ var Harness = class {
|
|
|
831
831
|
*/
|
|
832
832
|
async listAvailableModels() {
|
|
833
833
|
try {
|
|
834
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
834
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-JPXSL43R.js');
|
|
835
835
|
if (!PROVIDER_REGISTRY) return [];
|
|
836
836
|
const registry = PROVIDER_REGISTRY;
|
|
837
837
|
const providers = Object.keys(registry);
|
|
@@ -890,7 +890,7 @@ var Harness = class {
|
|
|
890
890
|
}
|
|
891
891
|
async getProviderApiKeyEnvVar(provider) {
|
|
892
892
|
try {
|
|
893
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
893
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-JPXSL43R.js');
|
|
894
894
|
const registry = PROVIDER_REGISTRY;
|
|
895
895
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
896
896
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIK6ZBEOH_cjs = require('./chunk-IK6ZBEOH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkIK6ZBEOH_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK4NN2KQQ_cjs = require('../chunk-K4NN2KQQ.cjs');
|
|
4
4
|
var v4 = require('zod/v4');
|
|
5
5
|
|
|
6
6
|
// src/integration/integration.ts
|
|
@@ -68,7 +68,7 @@ var OpenAPIToolset = class {
|
|
|
68
68
|
const tools = Object.keys(clientMethods).reduce((acc, key) => {
|
|
69
69
|
const comment = documentations[key]?.comment;
|
|
70
70
|
const fallbackComment = `Execute ${key}`;
|
|
71
|
-
const tool =
|
|
71
|
+
const tool = chunkK4NN2KQQ_cjs.createTool({
|
|
72
72
|
id: key,
|
|
73
73
|
inputSchema: schemas[key] || v4.z.object({}),
|
|
74
74
|
description: comment || fallbackComment,
|
package/dist/llm/index.cjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkHXFCAKO3_cjs = require('../chunk-HXFCAKO3.cjs');
|
|
4
|
+
var chunkPPDMILXE_cjs = require('../chunk-PPDMILXE.cjs');
|
|
5
|
+
var chunk43LAX4OC_cjs = require('../chunk-43LAX4OC.cjs');
|
|
6
|
+
var chunkOUMEFQRG_cjs = require('../chunk-OUMEFQRG.cjs');
|
|
7
|
+
var chunkZ2ZO3S34_cjs = require('../chunk-Z2ZO3S34.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHXFCAKO3_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHXFCAKO3_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHXFCAKO3_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHXFCAKO3_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHXFCAKO3_cjs.resolveModelConfig; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkPPDMILXE_cjs.ModelsDevGateway; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk43LAX4OC_cjs.NetlifyGateway; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkOUMEFQRG_cjs.MastraModelGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZ2ZO3S34_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZ2ZO3S34_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkZ2ZO3S34_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { ModelsDevGateway } from '../chunk-
|
|
3
|
-
export { NetlifyGateway } from '../chunk-
|
|
4
|
-
export { MastraModelGateway } from '../chunk-
|
|
5
|
-
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-7BMRL7A7.js';
|
|
2
|
+
export { ModelsDevGateway } from '../chunk-RTRZMBMW.js';
|
|
3
|
+
export { NetlifyGateway } from '../chunk-GC3I45ZY.js';
|
|
4
|
+
export { MastraModelGateway } from '../chunk-OUYKDP7F.js';
|
|
5
|
+
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-WT6PBYLT.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1606,13 +1606,14 @@ export type ProviderModelsMap = {
|
|
|
1606
1606
|
];
|
|
1607
1607
|
readonly vivgrid: readonly [
|
|
1608
1608
|
'deepseek-v3.2',
|
|
1609
|
-
'gemini-3-flash-preview',
|
|
1610
|
-
'gemini-3-pro-preview',
|
|
1609
|
+
'gemini-3.1-flash-lite-preview',
|
|
1610
|
+
'gemini-3.1-pro-preview',
|
|
1611
1611
|
'glm-5',
|
|
1612
1612
|
'gpt-5-mini',
|
|
1613
1613
|
'gpt-5.1-codex',
|
|
1614
1614
|
'gpt-5.1-codex-max',
|
|
1615
1615
|
'gpt-5.2-codex',
|
|
1616
|
+
'gpt-5.4',
|
|
1616
1617
|
];
|
|
1617
1618
|
readonly 'moonshotai-cn': readonly [
|
|
1618
1619
|
'kimi-k2-0711-preview',
|
|
@@ -2224,7 +2225,6 @@ export type ProviderModelsMap = {
|
|
|
2224
2225
|
'Llama-3_1-Nemotron-Ultra-253B-v1',
|
|
2225
2226
|
'MiniMax-M2.5',
|
|
2226
2227
|
'NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4',
|
|
2227
|
-
'Qwen2.5-Coder-32B-Instruct',
|
|
2228
2228
|
'gpt-oss-120b',
|
|
2229
2229
|
];
|
|
2230
2230
|
readonly baseten: readonly [
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkALCZ3AX7_cjs = require('../chunk-ALCZ3AX7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkALCZ3AX7_cjs.createScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "formatCheckFeedback", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkALCZ3AX7_cjs.formatCheckFeedback; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "formatCompletionFeedback", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkALCZ3AX7_cjs.formatCompletionFeedback; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "formatStreamCompletionFeedback", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkALCZ3AX7_cjs.formatStreamCompletionFeedback; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "formatValidationFeedback", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkALCZ3AX7_cjs.formatValidationFeedback; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "generateFinalResult", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkALCZ3AX7_cjs.generateFinalResult; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "generateStructuredFinalResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkALCZ3AX7_cjs.generateStructuredFinalResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "loop", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkALCZ3AX7_cjs.loop; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "runChecks", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkALCZ3AX7_cjs.runChecks; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "runCompletionScorers", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkALCZ3AX7_cjs.runCompletionScorers; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "runDefaultCompletionCheck", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkALCZ3AX7_cjs.runDefaultCompletionCheck; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "runStreamCompletionScorers", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkALCZ3AX7_cjs.runStreamCompletionScorers; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "runValidation", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkALCZ3AX7_cjs.runValidation; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-
|
|
1
|
+
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-KXRAP65E.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-execution-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-execution-step.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA4B,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAkC7E,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AAojB3D,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EAC1F,MAAM,EACN,SAAS,EACT,SAAS,EAAE,eAAe,EAC1B,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,SAAS,EACT,YAAY,GACb,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"llm-execution-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-execution-step.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA4B,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAkC7E,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AAojB3D,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EAC1F,MAAM,EACN,SAAS,EACT,SAAS,EAAE,eAAe,EAC1B,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,SAAS,EACT,YAAY,GACb,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA4tB5B"}
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIK6ZBEOH_cjs = require('../chunk-IK6ZBEOH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkIK6ZBEOH_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED