{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amnt-io/json-schema/amnt-io-agent-detail-schema.json",
  "title": "AgentDetail",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amnt-io-openapi.json#/components/schemas/AgentDetail",
  "type": "object",
  "properties": {
    "agent": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "connector": {
      "type": "string"
    },
    "connector_name": {
      "type": "string"
    },
    "price_credits": {
      "type": "integer"
    },
    "input_fields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InputField"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "InputField": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The name to use inside the run request's input object."
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "longtext",
            "integer",
            "boolean",
            "enum",
            "image",
            "ratio"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "default": {
          "description": "The creator's own value. Sending nothing uses it."
        },
        "options": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "max_length": {
          "type": [
            "integer",
            "null"
          ]
        },
        "min": {
          "type": [
            "integer",
            "null"
          ]
        },
        "max": {
          "type": [
            "integer",
            "null"
          ]
        },
        "placeholder": {
          "type": [
            "string",
            "null"
          ]
        },
        "help_text": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}