{
"$defs": {
"CheckpointSummary": {
"additionalProperties": false,
"properties": {
"cycleIndex": {
"format": "uint64",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"key": {
"type": "string"
},
"resumeAttempt": {
"format": "uint64",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"status": {
"enum": [
"pending",
"running",
"wait_user",
"completed",
"failed",
"max_cycles",
"reconciliation_required"
],
"type": "string"
},
"terminalAcknowledged": {
"type": "boolean"
}
},
"required": [
"key",
"resumeAttempt",
"cycleIndex",
"status",
"terminalAcknowledged"
],
"type": "object"
},
"InterruptionSummary": {
"additionalProperties": false,
"properties": {
"cycleIndex": {
"format": "uint64",
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"idempotencySupport": {
"enum": [
"supported",
"unsupported",
"unknown"
],
"type": "string"
},
"operationId": {
"type": "string"
},
"operationKind": {
"enum": [
"model",
"tool"
],
"type": "string"
},
"reason": {
"type": "string"
},
"risk": {
"type": "string"
}
},
"required": [
"reason",
"operationId",
"operationKind",
"cycleIndex",
"risk",
"idempotencySupport"
],
"type": "object"
},
"TurnStatus": {
"enum": [
"queued",
"running",
"completed",
"failed",
"interrupted"
],
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"checkpoint": {
"$ref": "#/$defs/CheckpointSummary"
},
"completionReason": {
"type": "string"
},
"completionToolName": {
"type": "string"
},
"error": {
"type": "string"
},
"finalOutput": {
"type": "string"
},
"interruption": {
"$ref": "#/$defs/InterruptionSummary"
},
"partialOutput": {
"type": "string"
},
"runId": {
"type": "string"
},
"status": {
"$ref": "#/$defs/TurnStatus"
},
"threadId": {
"type": "string"
},
"turnId": {
"type": "string"
}
},
"required": [
"threadId",
"turnId",
"runId",
"status"
],
"title": "TurnResumeResponse",
"type": "object"
}