Skip to content

src/processors

Mastra stream processors wired onto the plugin’s agents.

The input processor (stripStaleChartsProcessor) scrubs turn-scoped chartId fields out of prior tool results replayed from Memory, so the model cannot copy a stale id into the new turn’s [chart:<id>] markers.