{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimentiontracker-ai/json-schema/aimentiontracker-ai-get-agent-response-schema.json",
  "title": "GetAgentResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/aimentiontracker-ai-openapi-generated.yml#/components/schemas/GetAgentResponse",
  "type": "object",
  "properties": {
    "week_start": {
      "type": "string",
      "description": "Monday (UTC) of the current week"
    },
    "status": {
      "type": "string",
      "description": "\"not_started\" | \"running\" | \"done\" | \"failed\""
    },
    "skipped": {
      "type": "boolean",
      "description": "True when the week closed without running"
    },
    "error": {
      "type": "string",
      "description": "Error message if status is failed"
    },
    "steps": {
      "type": "object",
      "description": "Detailed step information"
    },
    "articles": {
      "type": "object",
      "description": "Articles status for the week"
    },
    "allowance": {
      "type": "object",
      "description": "Monthly article allowance"
    },
    "setup": {
      "type": "object",
      "description": "Setup flags"
    },
    "latest_summary": {
      "type": "object",
      "description": "Summary of the most recent weekly email"
    }
  }
}