{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "contract": {
      "type": "string",
      "const": "AgentWorkbenchQuickStartViewModel"
    },
    "mode": {
      "type": "string",
      "enum": [
        "chat",
        "work"
      ]
    },
    "categories": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "label": {
            "type": "string",
            "minLength": 1
          },
          "icon": {
            "type": "string",
            "enum": [
              "sparkles",
              "palette",
              "search",
              "file-text",
              "code",
              "shopping-bag"
            ]
          },
          "sections": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256
                },
                "label": {
                  "type": "string",
                  "minLength": 1
                },
                "templates": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1
                      },
                      "description": {
                        "type": "string",
                        "minLength": 1
                      },
                      "prompt": {
                        "type": "string",
                        "minLength": 1
                      },
                      "action": {
                        "default": "prompt",
                        "type": "string",
                        "enum": [
                          "prompt",
                          "upload"
                        ]
                      },
                      "icon": {
                        "type": "string",
                        "enum": [
                          "sparkles",
                          "palette",
                          "search",
                          "file-text",
                          "code",
                          "shopping-bag"
                        ]
                      },
                      "coverImageUrl": {
                        "type": "string",
                        "minLength": 1
                      },
                      "accept": {
                        "default": "*/*",
                        "type": "string",
                        "minLength": 1
                      },
                      "multiple": {
                        "default": false,
                        "type": "boolean"
                      },
                      "modes": {
                        "minItems": 1,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "chat",
                            "work"
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "prompt",
                      "action",
                      "accept",
                      "multiple"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "label",
                "templates"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id",
          "label",
          "sections"
        ],
        "additionalProperties": false
      }
    },
    "disabled": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": [
    "contract",
    "mode",
    "categories",
    "disabled"
  ],
  "additionalProperties": false,
  "$id": "https://schemas.infmonkeys.com/contracts/agent-workbench-quick-start-view-model.schema.json",
  "title": "agent-workbench-quick-start-view-model"
}
