{
  "$defs": {
    "ModelKind": {
      "description": "The capability class of a model.",
      "enum": [
        "chat",
        "embed",
        "unknown"
      ],
      "title": "ModelKind",
      "type": "string"
    }
  },
  "description": "Metadata describing a single model offered by a provider.\n\nAttributes:\n    name: Provider-native model identifier (e.g. ``llama3.2:3b``).\n    provider: The adapter/provider name.\n    kind: Whether the model is for chat, embeddings, or unknown.\n    is_local: ``True`` for fully local models, ``False`` for cloud-routed.\n    context_length: Maximum context window in tokens, if known.\n    details: Provider-specific extra metadata.",
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "provider": {
      "title": "Provider",
      "type": "string"
    },
    "kind": {
      "$ref": "#/$defs/ModelKind",
      "default": "unknown"
    },
    "is_local": {
      "default": false,
      "title": "Is Local",
      "type": "boolean"
    },
    "context_length": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Context Length"
    },
    "details": {
      "additionalProperties": true,
      "title": "Details",
      "type": "object"
    }
  },
  "required": [
    "name",
    "provider"
  ],
  "title": "ModelInfo",
  "type": "object"
}
