Skip to content
Developer Preview

WorkflowChild

One workflow child’s folded state, keyed by (childId, attempt).

  • attempt
  • childId
  • durationMs
  • label
  • phase
  • resultRef
  • status
  • terminal
  • usage
Source

schema/msp/experimental/msp.schema.json#/types/WorkflowChild

{
"description": "One workflow child's folded state, keyed by `(childId, attempt)`.",
"properties": {
"attempt": {
"description": "The attempt number.",
"type": "integer"
},
"childId": {
"description": "The child's id within the run.",
"type": "string"
},
"durationMs": {
"description": "The child's observed duration, when recorded.",
"type": "integer"
},
"label": {
"description": "The child's display label, when recorded.",
"type": "string"
},
"phase": {
"description": "The child's phase, when recorded.",
"type": "string"
},
"resultRef": {
"description": "The child's recorded result reference, verbatim, when present — an\nopaque string, matching the durable owner.",
"type": "string"
},
"status": {
"description": "camelCased `WorkflowChildLifecycleStatus`, verbatim (durable runtime\nvocabulary).",
"type": "string"
},
"terminal": {
"$ref": "#/$defs/TurnTerminal",
"description": "The child's terminal, turn vocabulary."
},
"usage": {
"$ref": "#/$defs/TokenUsage",
"description": "The child's observed usage, when recorded."
}
},
"required": [
"attempt",
"childId",
"status"
],
"type": "object"
}