Skip to content
Prompty

RunTurnResult

Result returned by a reference turn runner implementation.

---
title: RunTurnResult
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class RunTurnResult {
        +string sessionId
        +string turnId
        +string status
        +unknown output
        +int32 iterations
        +HostToolResult[] toolResults
        +Checkpoint[] checkpoints
    }
    class HostToolResult {
        +string requestId
        +string toolCallId
        +string toolName
        +boolean success
        +unknown result
        +int32 exitCode
        +float64 durationMs
        +string errorKind
        +dictionary telemetry
    }
    RunTurnResult *-- HostToolResult
    class Checkpoint {
        +string id
        +string sessionId
        +string turnId
        +int32 checkpointNumber
        +string title
        +string overview
        +dictionary state
        +string summary
        +dictionary metadata
        +string createdAt
        +RedactionMetadata redaction
    }
    RunTurnResult *-- Checkpoint
sessionId: sess_abc123
turnId: turn_abc123
iterations: 1
Name Type Description
sessionId string Stable harness session identifier
turnId string Stable turn identifier within the session
status string Final semantic status for the deterministic turn
output unknown Provider-neutral final output returned by the injected model callback
iterations int32 Number of model loop iterations executed
toolResults HostToolResult[] Host tool results produced during the turn
checkpoints Checkpoint[] Checkpoints created during the turn

The following types are composed within RunTurnResult: