Variable: StartedEventSchema
constStartedEventSchema:ZodObject<{content:ZodString;conversationId:ZodOptional<ZodString>;messageId:ZodOptional<ZodString>;spaceId:ZodString;type:ZodLiteral<"started">; },$strip>
Mastra-only lifecycle event: the Genie tool invocation started.
Emitted immediately when the calling agent invokes the Genie
tool, before any inner agent / wire activity, so the UI can
pop a “Thinking…” pill the instant the model decides to
delegate. conversationId / messageId are absent on this
first emit (no Genie round-trip yet). Field names are
camelCase (vs the snake_case wire events) to mirror the
Genie agent’s own internal data plumbing.
StartedEvent fields
Section titled “StartedEvent fields”conversationId(optional): Existing Genie conversation id for a follow-up turn. Absent on the first turn.messageId(optional): Genie message id once the first wire message event has arrived.content: Question the Genie agent sent to Genie.