{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidcrawl-com/json-schema/vidcrawl-com-agent-response-schema.json",
  "title": "AgentResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidcrawl-com-openapi.json#/components/schemas/AgentResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "summary": {
      "type": "string"
    },
    "visual_hook": {
      "type": "string"
    },
    "on_screen_ocr": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string"
          },
          "timestamp_sec": {
            "type": "number"
          },
          "kind": {
            "type": "string",
            "enum": [
              "slide",
              "code",
              "caption_overlay",
              "ui",
              "chart",
              "product",
              "other"
            ]
          },
          "text": {
            "type": "string"
          },
          "context": {
            "type": "string"
          }
        },
        "required": [
          "timestamp",
          "timestamp_sec",
          "kind",
          "text",
          "context"
        ]
      }
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start_timestamp": {
            "type": "string"
          },
          "end_timestamp": {
            "type": "string"
          },
          "visual_summary": {
            "type": "string"
          },
          "on_screen_text": {
            "type": "string"
          },
          "spoken_summary": {
            "type": "string"
          }
        },
        "required": [
          "start_timestamp",
          "end_timestamp",
          "visual_summary",
          "on_screen_text",
          "spoken_summary"
        ]
      }
    },
    "data": {
      "type": "object",
      "additionalProperties": {}
    },
    "citations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "video_id": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "timestamp_sec": {
            "type": "number"
          },
          "claim": {
            "type": "string"
          },
          "evidence_type": {
            "type": "string",
            "enum": [
              "spoken",
              "visual_ocr",
              "both"
            ]
          }
        },
        "required": [
          "url",
          "video_id",
          "timestamp",
          "timestamp_sec",
          "claim",
          "evidence_type"
        ]
      }
    },
    "usage": {
      "type": "object",
      "properties": {
        "effort": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "credits_used": {
          "type": "number"
        },
        "latency_ms": {
          "type": "number"
        },
        "scrape_latency_ms": {
          "type": "number"
        },
        "llm_latency_ms": {
          "type": "number"
        },
        "network_bytes": {
          "type": "number"
        },
        "model": {
          "type": "string"
        },
        "model_tokens": {
          "type": "object",
          "properties": {
            "input": {
              "type": "number"
            },
            "output": {
              "type": "number"
            }
          },
          "required": [
            "input",
            "output"
          ]
        },
        "estimated_cost_usd": {
          "type": "number"
        }
      },
      "required": [
        "effort",
        "credits_used",
        "latency_ms",
        "scrape_latency_ms",
        "llm_latency_ms",
        "network_bytes",
        "model",
        "model_tokens",
        "estimated_cost_usd"
      ]
    }
  },
  "required": [
    "ok",
    "summary",
    "visual_hook",
    "on_screen_ocr",
    "scenes",
    "citations",
    "usage"
  ]
}