Skip to content

Type Alias: StoredActiveRun

StoredActiveRun = Omit<z.infer<typeof StoredActiveRunSchema>, "userMessage"> & object

Reload-recoverable metadata for one active Mastra background run.

userMessage: UIMessage

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.