Skip to content

Variable: MastraGenieErrorEventSchema

const MastraGenieErrorEventSchema: ZodObject<{ conversationId: ZodOptional<ZodString>; error: ZodString; messageId: ZodOptional<ZodString>; spaceId: ZodOptional<ZodString>; type: ZodLiteral<"error">; }, $strip>

Mastra-only error event: terminal Genie agent / transport error. Genie’s own FAILED / CANCELLED come through the wire’s result event - this variant is for failures the wire can’t represent (network, Genie agent crash, planner error, etc.) plus a UI-friendly mirror of result when the status is non-COMPLETED.