{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/okareo/main/json-schema/okareo-datapoint-list-item-schema.json",
  "title": "DatapointListItem",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okareo-openapi.json#/components/schemas/DatapointListItem",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags",
      "default": []
    },
    "input": {
      "title": "Input"
    },
    "input_datetime": {
      "type": "string",
      "format": "date-time",
      "title": "Input Datetime"
    },
    "result": {
      "title": "Result"
    },
    "result_datetime": {
      "type": "string",
      "format": "date-time",
      "title": "Result Datetime"
    },
    "feedback": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Feedback"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "error_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Code"
    },
    "error_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Type"
    },
    "context_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Context Token"
    },
    "time_created": {
      "type": "string",
      "format": "date-time",
      "title": "Time Created"
    },
    "model_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {},
        {
          "type": "null"
        }
      ],
      "title": "Model Metadata"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "mut_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mut Id"
    },
    "test_run_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Run Id"
    },
    "test_data_point_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Data Point Id"
    },
    "group_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Id"
    },
    "scenario_data_point_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scenario Data Point Id"
    },
    "latency": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latency"
    },
    "input_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Tokens"
    },
    "output_tokens": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Output Tokens"
    },
    "source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "temperature": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Temperature"
    },
    "input_tools": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Input Tools"
    },
    "result_tool_calls": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result Tool Calls"
    },
    "result_embeddings": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result Embeddings"
    },
    "checks": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Checks"
    },
    "check_values": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/CheckValueItem"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Check Values"
    },
    "checks_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Checks Metadata"
    },
    "agent_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {},
        {
          "type": "null"
        }
      ],
      "title": "Agent Metadata"
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    },
    "total_search_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Search Count"
    },
    "total_datapoint_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Datapoint Count"
    },
    "request_model_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Model Name"
    },
    "response_model_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Response Model Name"
    },
    "cost": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cost"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status",
      "default": ""
    },
    "failed_checks": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failed Checks",
      "description": "Array of failed check names",
      "default": []
    },
    "resolved": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved",
      "description": "Manual marking from user on resolved status",
      "default": false
    },
    "user_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {},
        {
          "type": "null"
        }
      ],
      "title": "User Metadata",
      "description": "User-provided metadata provided as context to the completion call."
    },
    "otel_trace_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Otel Trace Id",
      "description": "OpenTelemetry Trace ID"
    },
    "otel_span_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Otel Span Id",
      "description": "OpenTelemetry Span ID"
    }
  },
  "type": "object",
  "required": [
    "id"
  ],
  "$defs": {
    "CheckValueItem": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "value": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ],
          "title": "Value"
        },
        "value_type": {
          "type": "string",
          "title": "Value Type"
        },
        "check_id": {
          "type": "string",
          "format": "uuid",
          "title": "Check Id"
        },
        "is_issue": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Issue"
        },
        "explanation": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Explanation"
        },
        "check_metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Check Metadata"
        }
      },
      "type": "object",
      "required": [
        "name",
        "value",
        "value_type",
        "check_id"
      ],
      "title": "CheckValueItem"
    }
  }
}