Variable: SummaryEventSchema
constSummaryEventSchema:ZodObject<{dataItems:ZodNumber;items:ZodNumber;spaceId:ZodString;textItems:ZodNumber;type:ZodLiteral<"summary">; },$strip>
Mastra-only lifecycle event: the inner Genie agent’s
structured-output coercion has landed. Fires once per Genie
tool invocation, AFTER agent.generate(...) completes (i.e.
the inner loop + Mastra’s structuring pass have both
finished) and BEFORE the wrapper hydrates each data item
with a chart. Signals to the host UI that the agent has
stopped reasoning and is moving into chart generation.
The structuring pass itself is opaque (it runs inside
Mastra’s agent.generate(...) together with the tool loop)
so this is the earliest hook we can offer; we can’t fire a
“summary started” event the way we fire started.