@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/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 `[[chart:<id>]]` markers
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 the Genie agent gets per turn.
295
- * Each step is one round-trip to the underlying model
296
- * (`get_space_description`, each `ask_genie` call, and the
297
- * mandatory `submit_summary` closer all consume one step).
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 16, which fits ~10 `ask_genie` calls plus
300
- * grounding plus the summary closer - matches the
301
- * decomposition pattern the Genie agent instructions prescribe
302
- * ("2-6 ask_genie calls for any non-trivial question").
303
- * Mastra's own `agent.generate` default of 5 would cut the
304
- * Genie agent off after 2-3 Genie calls, so explicitly raising
305
- * the ceiling here is what lets the agent-mode loop play out.
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 this when an unusually slow or expensive model makes
308
- * long turns unaffordable; raise it for exploratory workloads
309
- * that need to drill into a dataset.
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
- genieAgentMaxSteps?: number;
314
+ agentMaxSteps?: number;
312
315
  }