{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/overfit-de/json-schema/overfit-de-agent-create-schema.json",
  "title": "AgentCreate",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/overfit-de-openapi.json#/components/schemas/AgentCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "public": {
      "type": "boolean",
      "title": "Public",
      "default": false
    },
    "agent_data": {
      "oneOf": [
        {
          "$ref": "#/$defs/AgentDefault"
        },
        {
          "$ref": "#/$defs/AgentSubgoal"
        },
        {
          "$ref": "#/$defs/AgentPrimed"
        }
      ],
      "title": "Agent Data"
    },
    "tools": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tools",
      "default": []
    },
    "generative_model": {
      "type": "string",
      "title": "Generative Model",
      "default": "gpt-3.5-turbo"
    },
    "temperature": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Temperature",
      "default": 0.5
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "agent_data"
  ],
  "$defs": {
    "AgentDefault": {
      "properties": {
        "agent_type": {
          "type": "string",
          "const": "DEFAULT",
          "title": "Agent Type"
        }
      },
      "type": "object",
      "required": [
        "agent_type"
      ],
      "title": "AgentDefault"
    },
    "AgentPrimed": {
      "properties": {
        "agent_type": {
          "type": "string",
          "const": "PRIMED",
          "title": "Agent Type"
        },
        "priming_command": {
          "type": "string",
          "title": "Priming Command"
        }
      },
      "type": "object",
      "required": [
        "agent_type",
        "priming_command"
      ],
      "title": "AgentPrimed"
    },
    "AgentSubgoal": {
      "properties": {
        "agent_type": {
          "type": "string",
          "const": "SUBGOAL",
          "title": "Agent Type"
        }
      },
      "type": "object",
      "required": [
        "agent_type"
      ],
      "title": "AgentSubgoal"
    }
  }
}