{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/git-top/json-schema/git-top-grp-request-schema.json",
  "title": "GrpRequest",
  "description": "Graph Reasoning Protocol request for project planning, comparison, discovery, or stack composition.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/git-top-grp-api-openapi.yml#/components/schemas/GrpRequest",
  "type": "object",
  "required": [
    "goal"
  ],
  "properties": {
    "goal": {
      "type": "string",
      "description": "Natural-language project selection, comparison, planning, or stack-composition goal."
    },
    "mode": {
      "type": "string",
      "enum": [
        "plan",
        "compare",
        "find",
        "compose"
      ],
      "default": "plan",
      "description": "Reasoning mode. Defaults to plan when omitted."
    },
    "constraints": {
      "type": "object",
      "properties": {
        "deploy": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "license": {
          "type": "string"
        },
        "complexity": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        },
        "agent_ready": {
          "type": "boolean"
        },
        "language": {
          "type": "string"
        },
        "category": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "context": {
      "type": "object",
      "properties": {
        "previous_selected_projects": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "current_stack": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}