@dbx-tools/appkit-mastra 0.1.25 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -303
- package/dist/src/agents.d.ts +10 -0
- package/dist/src/agents.js +15 -2
- package/dist/src/chart.d.ts +131 -79
- package/dist/src/chart.js +386 -279
- package/dist/src/config.d.ts +19 -16
- package/dist/src/genie.d.ts +90 -106
- package/dist/src/genie.js +523 -642
- package/dist/src/intercept.d.ts +48 -0
- package/dist/src/intercept.js +167 -0
- package/dist/src/plugin.d.ts +12 -0
- package/dist/src/plugin.js +185 -1
- package/dist/src/processors/strip-stale-charts.d.ts +16 -13
- package/dist/src/processors/strip-stale-charts.js +16 -13
- package/dist/src/statement.d.ts +73 -0
- package/dist/src/statement.js +118 -0
- package/dist/src/tools/email.js +27 -28
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/agents.ts +16 -2
- package/src/chart.ts +499 -319
- package/src/config.ts +19 -16
- package/src/genie.ts +560 -768
- package/src/intercept.ts +206 -0
- package/src/plugin.ts +210 -2
- package/src/processors/strip-stale-charts.ts +16 -13
- package/src/statement.ts +127 -0
- package/src/tools/email.ts +27 -28
package/src/config.ts
CHANGED
|
@@ -216,7 +216,7 @@ export interface MastraPluginConfig extends BasePluginConfig {
|
|
|
216
216
|
* processor that strips `chartId` fields from prior assistant
|
|
217
217
|
* tool-invocation results before they reach the model. This
|
|
218
218
|
* prevents the model from reusing turn-scoped chartIds it sees
|
|
219
|
-
* in memory recall (which would leave `[
|
|
219
|
+
* in memory recall (which would leave `[chart:<id>]` markers
|
|
220
220
|
* pointing at writer events that no longer exist).
|
|
221
221
|
*
|
|
222
222
|
* Set to `false` to opt out - useful if a non-default agent
|
|
@@ -291,22 +291,25 @@ export interface MastraPluginConfig extends BasePluginConfig {
|
|
|
291
291
|
*/
|
|
292
292
|
genieSpaceCacheTtlMs?: number;
|
|
293
293
|
/**
|
|
294
|
-
* Maximum LLM steps
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
*
|
|
294
|
+
* Maximum LLM steps each agent gets per turn. One step = one
|
|
295
|
+
* round-trip to the underlying model (a tool call consumes a
|
|
296
|
+
* step, the final-text reply consumes one too). Applies to
|
|
297
|
+
* every agent registered through {@link MastraPluginConfig.agents}
|
|
298
|
+
* - per-agent overrides aren't surfaced yet because the same
|
|
299
|
+
* ceiling has been sufficient across every workload we've run.
|
|
298
300
|
*
|
|
299
|
-
* Defaults to
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* Mastra's own `agent.generate` default of 5 would
|
|
304
|
-
*
|
|
305
|
-
* the ceiling here is what lets the
|
|
301
|
+
* Defaults to {@link DEFAULT_AGENT_MAX_STEPS} (25), sized to fit
|
|
302
|
+
* a decomposed Genie turn (grounding + several `ask_genie` calls
|
|
303
|
+
* + `prepare_chart` per dataset + the final-text reply) with
|
|
304
|
+
* headroom for the model to chain a couple of follow-ups before
|
|
305
|
+
* answering. Mastra's own `agent.generate` default of 5 would
|
|
306
|
+
* cut multi-step orchestration off after 2-3 tool calls, so
|
|
307
|
+
* explicitly raising the ceiling here is what lets the
|
|
308
|
+
* agent-mode loop play out.
|
|
306
309
|
*
|
|
307
|
-
* Lower
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
+
* Lower when an unusually slow or expensive model makes long
|
|
311
|
+
* turns unaffordable; raise for exploratory workloads that need
|
|
312
|
+
* to drill deep into a dataset within a single turn.
|
|
310
313
|
*/
|
|
311
|
-
|
|
314
|
+
agentMaxSteps?: number;
|
|
312
315
|
}
|