{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axonflow/json-schema/axonflow-agent-list-response-schema.json",
  "title": "AgentListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axonflow-agents-api-openapi.yml#/components/schemas/AgentListResponse",
  "type": "object",
  "properties": {
    "agents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentResource"
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer"
        },
        "page_size": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "total_pages": {
          "type": "integer"
        }
      }
    }
  },
  "$defs": {
    "AgentConfigSpec": {
      "type": "object",
      "description": "Agent configuration specification",
      "properties": {
        "execution": {
          "type": "object",
          "properties": {
            "default_mode": {
              "type": "string",
              "enum": [
                "auto",
                "parallel",
                "sequential"
              ]
            },
            "max_parallel_tasks": {
              "type": "integer"
            },
            "timeout_seconds": {
              "type": "integer"
            }
          }
        },
        "agents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentDefinition"
          }
        },
        "routing": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutingRule"
          }
        }
      }
    },
    "AgentDefinition": {
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "llm-call",
            "connector-call"
          ]
        },
        "llm": {
          "type": "object",
          "description": "LLM config (required for llm-call type)",
          "properties": {
            "provider": {
              "type": "string"
            },
            "model": {
              "type": "string"
            }
          }
        },
        "connector": {
          "type": "object",
          "description": "Connector config (required for connector-call type)",
          "properties": {
            "name": {
              "type": "string"
            },
            "operation": {
              "type": "string"
            }
          }
        }
      }
    },
    "AgentResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Qualified ID (domain/name)"
        },
        "name": {
          "type": "string",
          "description": "Agent name"
        },
        "domain": {
          "type": "string",
          "description": "Agent domain"
        },
        "description": {
          "type": "string",
          "description": "Agent description"
        },
        "version": {
          "type": "integer",
          "description": "Version number"
        },
        "is_active": {
          "type": "boolean",
          "description": "Whether agent is active"
        },
        "config": {
          "$ref": "#/$defs/AgentConfigSpec"
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "RoutingRule": {
      "type": "object",
      "required": [
        "pattern",
        "agent"
      ],
      "properties": {
        "pattern": {
          "type": "string",
          "description": "Regex pattern to match"
        },
        "agent": {
          "type": "string",
          "description": "Target agent name"
        },
        "priority": {
          "type": "integer",
          "description": "Higher priority rules match first"
        }
      }
    }
  }
}