Variable: AskGenieDoneEventSchema
constAskGenieDoneEventSchema:ZodObject<{answer:ZodOptional<ZodString>;conversationId:ZodOptional<ZodString>;messageId:ZodOptional<ZodString>;spaceId:ZodString;statementIds:ZodArray<ZodString>;status:ZodCustom<"ASKING_AI"|"CANCELLED"|"COMPLETED"|"EXECUTING_QUERY"|"FAILED"|"FETCHING_METADATA"|"FILTERING_CONTEXT"|"PENDING_WAREHOUSE"|"QUERY_RESULT_EXPIRED"|"SUBMITTED","ASKING_AI"|"CANCELLED"|"COMPLETED"|"EXECUTING_QUERY"|"FAILED"|"FETCHING_METADATA"|"FILTERING_CONTEXT"|"PENDING_WAREHOUSE"|"QUERY_RESULT_EXPIRED"|"SUBMITTED">;type:ZodLiteral<"ask_genie_done">; },$strip>
Mastra-only lifecycle event: one ask_genie invocation
finished. Carries the hydrated statementIds (rows are fetched
via getStatement separately) and Genie’s final prose answer
so the UI can move from “thinking” to “answered” without
waiting for the Genie agent’s whole reasoning loop to end.
AskGenieDoneEvent fields
Section titled “AskGenieDoneEvent fields”answer(optional): Genie’s natural-language answer for the turn.statementIds: Statement ids for non-empty result sets produced by this turn.status: Terminal Genie wire status mirrored from the source result event.