{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/overfit-de/json-schema/overfit-de-agent-schema.json",
  "title": "Agent",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/overfit-de-openapi.json#/components/schemas/Agent",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "time_created": {
      "type": "string",
      "format": "date-time",
      "title": "Time Created"
    },
    "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_type": {
      "$ref": "#/$defs/AgentTypes"
    },
    "agent_steps": {
      "items": {
        "$ref": "#/$defs/AgentStep"
      },
      "type": "array",
      "title": "Agent Steps",
      "default": []
    },
    "generative_model": {
      "type": "string",
      "title": "Generative Model",
      "default": "gpt-3.5-turbo"
    },
    "temperature": {
      "type": "number",
      "title": "Temperature",
      "default": 0.5
    },
    "tools": {
      "items": {
        "$ref": "#/$defs/Tool"
      },
      "type": "array",
      "title": "Tools",
      "default": []
    },
    "sub": {
      "type": "string",
      "format": "uuid",
      "title": "Sub"
    }
  },
  "type": "object",
  "required": [
    "id",
    "time_created",
    "name",
    "agent_type",
    "sub"
  ],
  "$defs": {
    "AgentStep": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "agent_id": {
          "type": "string",
          "title": "Agent Id"
        },
        "order": {
          "type": "integer",
          "title": "Order"
        },
        "step_type": {
          "type": "string",
          "title": "Step Type"
        },
        "step_message": {
          "type": "string",
          "title": "Step Message"
        }
      },
      "type": "object",
      "required": [
        "id",
        "agent_id",
        "order",
        "step_type",
        "step_message"
      ],
      "title": "AgentStep"
    },
    "AgentTypes": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "PLAN",
        "PRIMED"
      ],
      "title": "AgentTypes"
    },
    "Tool": {
      "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
        },
        "llm_selection_string": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Llm Selection String"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "sub": {
          "type": "string",
          "format": "uuid",
          "title": "Sub"
        },
        "tool_type": {
          "type": "string",
          "title": "Tool Type"
        }
      },
      "type": "object",
      "required": [
        "name",
        "id",
        "sub",
        "tool_type"
      ],
      "title": "Tool"
    }
  }
}