Skip to content
Prompty

ResumeContext

Input that drives resuming a turn from a durable checkpoint.

A host supplies this to restart an interrupted turn without duplicating a committed model or tool effect.

---
title: ResumeContext
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ResumeContext {
        +EngineCheckpoint checkpoint
        +int32 maxIterations
        +int32 maxModelAttempts
        +int64 lastJournalSequence
        +dictionary metadata
    }
    class EngineCheckpoint {
        +string id
        +string sessionId
        +string turnId
        +string runId
        +string parentRunId
        +int32 delegationDepth
        +int32 iteration
        +int64 lastSequence
        +Message[] messages
        +int32 stablePrefixMessages
        +unknown inputs
        +string activeInvocationId
        +ModelToolRequest[] pendingToolRequests
        +ModelToolResult[] completedToolResults
        +int32 completedModelIterations
        +boolean reconciliationRequired
        +ModelReconciliationState modelReconciliation
        +unknown pendingOutput
        +boolean finalOutputReady
        +ModelInvocationResponse pendingModelResponse
        +boolean resumeSameIteration
        +boolean policyAppliedForIteration
        +InvocationContextState contextState
        +dictionary metadata
    }
    ResumeContext *-- EngineCheckpoint
lastJournalSequence: 12
Name Type Description
checkpoint EngineCheckpoint Checkpoint to resume from
maxIterations int32 Maximum model loop iterations permitted for the resumed run
maxModelAttempts int32 Maximum model attempts permitted per invocation in the resumed run
lastJournalSequence int64 Last durably persisted journal sequence when the journal tail is ahead of the checkpoint; the resumed run continues numbering after this value. Zero resumes from the checkpoint’s own lastSequence.
metadata dictionary Opaque host-specific resume metadata

The following types are composed within ResumeContext: