{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fetchai/json-schema/fetchai-new-agent-schema.json",
  "title": "NewAgent",
  "description": "Request model for creating a new agent.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hosting_openapi.json#/components/schemas/NewAgent",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Name of the new agent."
    },
    "readme": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Readme",
      "description": "Readme content for the agent."
    },
    "avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar Url",
      "description": "URL of the agent's avatar."
    },
    "short_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Short Description",
      "description": "Brief description."
    },
    "network": {
      "$ref": "#/$defs/AgentNetwork",
      "description": "Network on which the agent will register (mainnet or testnet)",
      "default": "testnet"
    }
  },
  "type": "object",
  "required": [
    "name"
  ],
  "$defs": {
    "AgentNetwork": {
      "type": "string",
      "enum": [
        "mainnet",
        "testnet"
      ],
      "title": "AgentNetwork",
      "description": "Agent network selection."
    }
  }
}