Skip to content
Prompty

TurnEngineResult

The result returned by the live turn engine.

---
title: TurnEngineResult
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class TurnEngineResult {
        +TurnCommit commit
        +ModelInvocationContextSnapshot[] snapshots
        +ModelToolResult[] toolResults
        +string postCommitError
    }
    class TurnCommit {
        +string sessionId
        +string turnId
        +string status
        +unknown output
        +Message[] messages
        +int32 iterations
        +int64 lastSequence
        +InvocationContextState contextState
        +ModelReconciliationState modelReconciliation
    }
    TurnEngineResult *-- TurnCommit
    class ModelInvocationContextSnapshot {
        +string id
        +string sessionId
        +string turnId
        +string invocationId
        +int32 iteration
        +Message[] messages
        +InvocationContextDecision[] decisions
        +int32 stablePrefixMessages
        +InvocationContextState contextState
        +dictionary metadata
    }
    TurnEngineResult *-- ModelInvocationContextSnapshot
    class ModelToolResult {
        +string requestId
        +string name
        +string outcome
        +unknown output
        +string errorKind
        +dictionary metadata
    }
    TurnEngineResult *-- ModelToolResult
Name Type Description
commit TurnCommit The committed turn outcome
snapshots ModelInvocationContextSnapshot[] Immutable context snapshots produced during the turn
toolResults ModelToolResult[] Normalized tool results produced during the turn
postCommitError string A non-fatal post-commit failure; the turn itself remains committed

The following types are composed within TurnEngineResult: