agrio · Schema

Diagnosis Result

A single disease or pest identification result.

AgriculturePlant DiseasePest DetectionAICrop Advisory

Properties

Name Type Description
id string Unique identifier for the disease or pest.
confidence number Confidence score for this diagnosis (0.0 to 1.0).
commonName string Common name of the disease or pest.
scientificName string Scientific name of the disease or pest.
View JSON Schema on GitHub

JSON Schema

agrio-diagnosis-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/agrio/refs/heads/main/json-schema/agrio-diagnosis-result-schema.json",
  "title": "Diagnosis Result",
  "description": "A single disease or pest identification result.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the disease or pest.",
      "example": "early_blight"
    },
    "confidence": {
      "type": "number",
      "format": "double",
      "description": "Confidence score for this diagnosis (0.0 to 1.0).",
      "example": 0.87
    },
    "commonName": {
      "type": "string",
      "description": "Common name of the disease or pest.",
      "example": "Early Blight"
    },
    "scientificName": {
      "type": "string",
      "description": "Scientific name of the disease or pest.",
      "example": "Alternaria solani"
    }
  },
  "required": [
    "id",
    "confidence",
    "commonName",
    "scientificName"
  ]
}