SPB Git forge

spb/doc-api

Public
2commits 1branches 0releases
15.7 MBsize
maindefault branch
13 days agolast push
Python 88.3% TypeScript 7.6% Shell 4.1%
1.6 KB · 90 lines json
Raw Blame History
1{2  "$schema": "https://json-schema.org/draft/2020-12/schema",3  "$id": "https://atlas.local/schemas/error.schema.json",4  "title": "Atlas error record",5  "type": "object",6  "required": [7    "provider",8    "http_status",9    "type"10  ],11  "properties": {12    "provider": {13      "enum": [14        "openai",15        "anthropic",16        "xai",17        "gemini"18      ]19    },20    "http_status": {21      "type": [22        "integer",23        "string",24        "null"25      ]26    },27    "type": {28      "type": [29        "string",30        "null"31      ],32      "description": "provider error.type (e.g. rate_limit_error)"33    },34    "code": {35      "type": [36        "string",37        "null"38      ],39      "description": "provider error.code where applicable"40    },41    "message_semantics": {42      "type": [43        "string",44        "null"45      ]46    },47    "retryable": {48      "type": [49        "boolean",50        "string",51        "null"52      ]53    },54    "recommended_action": {55      "type": [56        "string",57        "null"58      ]59    },60    "backoff": {61      "type": [62        "string",63        "null"64      ]65    },66    "category": {67      "type": [68        "string",69        "null"70      ],71      "description": "rate_limit | authentication | invalid_request | content_safety | capacity | overload | timeout | server_error | not_found | permission | quota"72    },73    "observed_live": {74      "type": [75        "boolean",76        "null"77      ]78    },79    "example": {},80    "source": {81      "type": [82        "string",83        "object",84        "array",85        "null"86      ]87    }88  }89}90