Skip to content

Variable: StoredActiveRunSchema

const StoredActiveRunSchema: ZodObject<{ assistantId: ZodString; runId: ZodString; startedAt: ZodNumber; threadId: ZodString; userMessage: ZodObject<{ id: ZodString; parts: ZodArray<ZodUnknown>; role: ZodLiteral<"user">; }, $loose>; }, $strict>

Reload-recoverable Mastra background run metadata.

  • threadId: Mastra thread receiving the background turn.
  • runId: Mastra background run identifier.
  • assistantId: Client assistant message identifier.
  • userMessage: Submitted user message restored before stream replay.
  • startedAt: Client epoch time when the run started.