{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptseen-com/json-schema/scriptseen-com-agent-script-body-schema.json",
  "title": "AgentScriptBody",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptseen-com-openapi.json#/components/schemas/AgentScriptBody",
  "properties": {
    "topic": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 1,
      "title": "Topic",
      "description": "What the video is about."
    },
    "audience": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Audience",
      "description": "Who the video is for."
    },
    "platform": {
      "type": "string",
      "enum": [
        "tiktok",
        "reels",
        "youtube-shorts"
      ],
      "title": "Platform",
      "description": "Where the video will be posted.",
      "default": "tiktok"
    },
    "duration": {
      "type": "integer",
      "maximum": 180.0,
      "minimum": 10.0,
      "title": "Duration",
      "description": "Target spoken length in seconds.",
      "default": 45
    },
    "tone": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Tone",
      "description": "Optional tone or style note."
    },
    "temperature": {
      "type": "number",
      "maximum": 1.5,
      "minimum": 0.0,
      "title": "Temperature",
      "description": "Creativity, from 0 (steady) to 1.5 (loosest).",
      "default": 0.8
    },
    "mode": {
      "type": "string",
      "enum": [
        "take",
        "story",
        "skit",
        "howto"
      ],
      "title": "Mode",
      "description": "Writing mode: take = a point of view and a clear close; story = one moment, a turn — not a lecture; skit = two voices, a bit; howto = steps a viewer can follow.",
      "default": "take"
    }
  },
  "type": "object",
  "required": [
    "topic",
    "audience"
  ]
}