{
  "id": "cb-04",
  "name": "spiral_coords",
  "passed": true,
  "grade_detail": "all asserts passed",
  "wall_s": 11.0,
  "usage": {
    "completion_tokens": 349,
    "prompt_tokens": 121,
    "total_tokens": 470,
    "completion_tokens_details": null,
    "prompt_tokens_details": null,
    "reasoning_tokens": 157
  },
  "answer": "\n\n```python\ndef spiral_coords(rows, cols):\n    result = []\n    top, bottom = 0, rows - 1\n    left, right = 0, cols - 1\n\n    while top <= bottom and left <= right:\n        for col in range(left, right + 1):\n            result.append((top, col))\n        top += 1\n\n        for row in range(top, bottom + 1):\n            result.append((row, right))\n        right -= 1\n\n        if top <= bottom:\n            for col in range(right, left - 1, -1):\n                result.append((bottom, col))\n            bottom -= 1\n\n        if left <= right:\n            for row in range(bottom, top - 1, -1):\n                result.append((row, left))\n            left += 1\n\n    return result\n```",
  "finish_reason": "stop"
}