{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beam-ai/json-schema/beam-ai-optimized-agent-list-response-dto-schema.json",
  "title": "OptimizedAgentListResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beam-ai-agents-api-openapi.yml#/components/schemas/OptimizedAgentListResponseDto",
  "type": "object",
  "properties": {
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MinimalAgentDto"
      }
    },
    "count": {
      "type": "number"
    }
  },
  "required": [
    "agents",
    "count"
  ],
  "$defs": {
    "MinimalAgentCategoryDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title"
      ]
    },
    "MinimalAgentDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "themeIconUrl": {
          "type": "string"
        },
        "agentCategoryId": {
          "type": "string"
        },
        "category": {
          "$ref": "#/$defs/MinimalAgentCategoryDto"
        },
        "type": {
          "enum": [
            "beam-os",
            "user-agent",
            "pre-configured-agent"
          ],
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        },
        "creatorId": {
          "type": "string"
        },
        "order": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "name",
        "type",
        "creatorId",
        "order"
      ]
    }
  }
}