{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-qa-agent-response-schema.json",
  "title": "QaAgentResponse",
  "description": "A QA agent; its model and argument config are returned only to the owning team.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-qa-agents-api-openapi.yml#/components/schemas/QaAgentResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "scenario_id": {
      "type": "string",
      "format": "uuid",
      "title": "Scenario Id"
    },
    "model_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "max_steps": {
      "type": "integer",
      "title": "Max Steps"
    },
    "partial_args": {
      "additionalProperties": true,
      "type": "object",
      "title": "Partial Args"
    },
    "public": {
      "type": "boolean",
      "title": "Public",
      "default": false
    },
    "subject_type": {
      "$ref": "#/$defs/QaAgentSubjectType",
      "default": "trace"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "scenario_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scenario Name"
    },
    "scenario_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scenario Description"
    },
    "scenario_arguments": {
      "items": {
        "$ref": "#/$defs/ScenarioArgument"
      },
      "type": "array",
      "title": "Scenario Arguments"
    },
    "environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Environment Id"
    },
    "environment_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Environment Name"
    },
    "model_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Name"
    },
    "provider_icon_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider Icon Url"
    },
    "sdk_agent_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sdk Agent Type"
    },
    "output_properties": {
      "items": {
        "$ref": "#/$defs/QaAgentOutputProperty"
      },
      "type": "array",
      "title": "Output Properties"
    },
    "linked_tasksets": {
      "items": {
        "$ref": "#/$defs/QaAgentLinkedTaskset"
      },
      "type": "array",
      "title": "Linked Tasksets"
    }
  },
  "type": "object",
  "required": [
    "id",
    "scenario_id",
    "name",
    "max_steps",
    "partial_args",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "QaAgentLinkedTaskset": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "task_count": {
          "type": "integer",
          "title": "Task Count",
          "default": 0
        },
        "judged_trace_count": {
          "type": "integer",
          "title": "Judged Trace Count",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "title": "QaAgentLinkedTaskset"
    },
    "QaAgentOutputProperty": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "enum_values": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Enum Values"
        }
      },
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "title": "QaAgentOutputProperty"
    },
    "QaAgentSubjectType": {
      "type": "string",
      "enum": [
        "trace",
        "environment",
        "taskset",
        "task"
      ],
      "title": "QaAgentSubjectType",
      "description": "Canonical resources a QA agent can analyze."
    },
    "ScenarioArgument": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "required": {
          "type": "boolean",
          "title": "Required",
          "default": false
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "default": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Default"
        },
        "inputSchema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inputschema"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "ScenarioArgument"
    }
  }
}