Hugging Face · Schema

InferenceResponse

The inference result - format depends on the task

View JSON Schema on GitHub

JSON Schema

hugging-face-inferenceresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/InferenceResponse",
  "title": "InferenceResponse",
  "oneOf": [
    {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    {
      "type": "object"
    },
    {
      "type": "string"
    }
  ],
  "description": "The inference result - format depends on the task"
}