{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-src-app-endpoints-metric-evaluate-metrics-request-schema.json",
  "title": "Request",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-metric-api-openapi.yml#/components/schemas/src__app__endpoints__metric__evaluate_metrics__Request",
  "properties": {
    "metric_ids": {
      "items": {
        "type": "string",
        "pattern": "^[a-f0-9]{24}$"
      },
      "type": "array",
      "maxItems": 10,
      "minItems": 1,
      "uniqueItems": true,
      "title": "Metric Ids",
      "description": "The IDs of the metrics to evaluate."
    },
    "conversation_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{24}$",
      "title": "Conversation Id",
      "description": "The ID of the conversation to evaluate the metrics for."
    },
    "evaluate_to_interaction_id": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{24}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evaluate To Interaction Id",
      "description": "If specified, only messages up to (and including) this interaction will be evaluated."
    }
  },
  "type": "object",
  "required": [
    "metric_ids",
    "conversation_id"
  ]
}