{
  "type": "object",
  "properties": {
    "done": {
      "type": "boolean",
      "description": "True when no additional part is needed"
    },
    "reasoning": {
      "type": "string",
      "description": "Brief reason for the decision"
    },
    "cancelPartIds": {
      "type": "array",
      "description": "Obsolete unfinished part identifiers to cancel",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true
    },
    "parts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique part identifier"
          },
          "title": {
            "type": "string",
            "description": "Human-readable part title"
          },
          "instruction": {
            "type": "string",
            "description": "Instruction for the part agent"
          }
        },
        "required": ["id", "title", "instruction"],
        "additionalProperties": false
      }
    }
  },
  "required": ["done", "reasoning", "cancelPartIds", "parts"],
  "additionalProperties": false
}
