{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-assistant-test-response-schema.json",
  "title": "AssistantTestResponse",
  "description": "Response model containing complete assistant test information.\n\nReturns all test configuration details including evaluation criteria,\nscheduling, and metadata. Used when retrieving individual tests or\nafter creating/updating tests.",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-assistants-api-openapi.yml#/components/schemas/AssistantTestResponse",
  "properties": {
    "created_at": {
      "description": "Timestamp when the test was created.",
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    },
    "description": {
      "description": "Detailed description of the test's purpose and scope.",
      "title": "Description",
      "type": "string"
    },
    "destination": {
      "description": "Target destination for test conversations.",
      "title": "Destination",
      "type": "string"
    },
    "instructions": {
      "description": "Detailed test scenario instructions and objectives.",
      "title": "Instructions",
      "type": "string"
    },
    "max_duration_seconds": {
      "description": "Maximum allowed duration for test execution in seconds.",
      "title": "Max Duration Seconds",
      "type": "integer"
    },
    "name": {
      "description": "Human-readable name of the test.",
      "title": "Name",
      "type": "string"
    },
    "rubric": {
      "description": "Evaluation criteria used to assess test performance.",
      "items": {
        "additionalProperties": false,
        "properties": {
          "criteria": {
            "description": "Specific guidance on how to assess the assistant’s performance for this rubric item.",
            "type": "string"
          },
          "name": {
            "description": "Label for the evaluation criterion, e.g., Empathy, Accuracy, Clarity.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "criteria"
        ],
        "type": "object"
      },
      "title": "Rubric",
      "type": "array"
    },
    "telnyx_conversation_channel": {
      "allOf": [
        {
          "$ref": "#/$defs/TelnyxConversationChannel"
        }
      ],
      "description": "Communication channel used for test execution."
    },
    "test_id": {
      "description": "Unique identifier for the assistant test.",
      "format": "uuid",
      "title": "Test Id",
      "type": "string"
    },
    "test_suite": {
      "description": "Test suite grouping for organizational purposes.",
      "title": "Test Suite",
      "type": "string"
    }
  },
  "required": [
    "test_id",
    "name",
    "telnyx_conversation_channel",
    "rubric",
    "created_at"
  ],
  "type": "object",
  "$defs": {
    "TelnyxConversationChannel": {
      "enum": [
        "phone_call",
        "web_call",
        "sms_chat",
        "web_chat"
      ],
      "title": "TelnyxConversationChannel",
      "type": "string"
    }
  }
}