{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zelto/json-schema/zelto-register-agent-version-schema.json",
  "title": "RegisterAgentVersion",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zelto-agents-api-openapi.yml#/components/schemas/RegisterAgentVersion",
  "type": "object",
  "required": [
    "version"
  ],
  "properties": {
    "version": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Case-sensitive release label after trimming whitespace. The draft: and generated: prefixes are reserved."
    },
    "systemPrompt": {
      "type": "string",
      "maxLength": 200000
    },
    "config": {
      "$ref": "#/$defs/AgentVersionConfig"
    }
  },
  "$defs": {
    "AgentVersionConfig": {
      "type": "object",
      "additionalProperties": true,
      "description": "Complete version context as a JSON object, up to 64 KiB serialized as UTF-8. Can include llm, stt, tts, tools, workflows, retrieval, and custom settings. Records context only; does not deploy or execute this configuration. Do not include secrets."
    }
  }
}