{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/plcs-ai/json-schema/plcs-ai-post-projects-id-generate-request-schema.json",
  "title": "PostProjectsIdGenerateRequest",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/plcs-ai-openapi-generated.yml#/components/schemas/PostProjectsIdGenerateRequest",
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "description": "What to generate or change."
    },
    "target": {
      "type": "object",
      "description": "Optional hint for which program/routine to target."
    },
    "conversation_id": {
      "type": "string",
      "description": "Returned by every response."
    },
    "approve": {
      "type": "boolean",
      "description": "Author the code for the plan pending on conversation_id."
    },
    "amendment": {
      "type": "string",
      "description": "Optional plain-language tweak applied while executing the approved plan."
    },
    "answers": {
      "type": "array",
      "description": "Answers to the questions a prior turn returned."
    },
    "mode": {
      "type": "string",
      "description": "sync (default) or stream."
    }
  },
  "required": [
    "prompt"
  ]
}