{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fetchai/json-schema/fetchai-public-agent-v1-schema.json",
  "title": "PublicAgentV1",
  "description": "V1 Public agent model with profile fields.",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hosting_openapi.json#/components/schemas/PublicAgentV1",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Name of the agent."
    },
    "author_username": {
      "type": "string",
      "title": "Author Username",
      "description": "Username of the agent's author."
    },
    "address": {
      "type": "string",
      "title": "Address",
      "description": "Bech32 address of the agent."
    },
    "domain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Domain",
      "description": "Custom domain for the agent."
    },
    "prefix": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "agent",
            "test-agent"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Prefix",
      "description": "Address prefix for the agent.",
      "default": "test-agent"
    },
    "running": {
      "type": "boolean",
      "title": "Running",
      "description": "Indicates if the agent is currently running."
    },
    "readme": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Readme",
      "description": "README text for the agent."
    },
    "short_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Short Description",
      "description": "Short description for the agent."
    },
    "last_updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Updated At",
      "description": "Timestamp when the agent was last updated."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the agent was created."
    },
    "maintainer_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Maintainer Id",
      "description": "User ID of the agent maintainer."
    },
    "avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avatar Url",
      "description": "URL of the agent's avatar."
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "#/$defs/AgentMetadata"
        },
        {
          "type": "null"
        }
      ],
      "description": "Metadata associated with the agent."
    }
  },
  "type": "object",
  "required": [
    "name",
    "author_username",
    "address",
    "running",
    "last_updated_at",
    "created_at"
  ],
  "$defs": {
    "AgentGeoLocation": {
      "properties": {
        "latitude": {
          "type": "number",
          "title": "Latitude"
        },
        "longitude": {
          "type": "number",
          "title": "Longitude"
        },
        "radius": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Radius"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "latitude",
        "longitude"
      ],
      "title": "AgentGeoLocation"
    },
    "AgentGeoLocationDetails": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name",
          "description": "the full agent location"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description",
          "description": "the description of the agent location"
        },
        "latitude": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Latitude",
          "description": "the latitude of the agent location"
        },
        "longitude": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Longitude",
          "description": "the longitude of the agent location"
        },
        "street": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Street",
          "description": "the street where the agent is located"
        },
        "city": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "City",
          "description": "the city where the agent is located"
        },
        "state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "State",
          "description": "the state where the agent is located"
        },
        "postal_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Postal Code",
          "description": "the postal code where the agent is located"
        },
        "country": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Country",
          "description": "the country where the agent is located"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url",
          "description": "the url belonging to the agent location"
        },
        "image_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Image Url",
          "description": "the image url belonging to the agent location"
        }
      },
      "type": "object",
      "title": "AgentGeoLocationDetails"
    },
    "AgentMetadata": {
      "properties": {
        "geolocation": {
          "anyOf": [
            {
              "$ref": "#/$defs/AgentGeoLocation"
            },
            {
              "$ref": "#/$defs/AgentGeoLocationDetails"
            },
            {
              "type": "null"
            }
          ],
          "title": "Geolocation"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "AgentMetadata",
      "description": "Model used to validate metadata for an agent.\n\nFramework specific fields will be added here to ensure valid serialization.\nAdditional fields will simply be passed through."
    }
  }
}