<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TrustInsights",
  "identifier" : "/documentation/TrustInsights/InsightEvaluator/InsightRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Trust Insights"
    ],
    "preciseIdentifier" : "s:13TrustInsights16InsightEvaluatorC0C7RequestV"
  },
  "title" : "InsightEvaluator.InsightRequest"
}
-->

# InsightEvaluator.InsightRequest

A structure you use to make a request for a specific insight.

```
struct InsightRequest<InsightType> where InsightType : TrustInsight
```

## Discussion

You can include one or more in the [`InsightEvaluator.InsightContext`](/documentation/TrustInsights/InsightEvaluator/InsightContext) for an evaluation request.

## Topics

### Creating an insight request

[`init(insightType: InsightType.Type, schema: InsightType.SchemaVersion, model: InsightEvaluator.ModelVersion)`](/documentation/TrustInsights/InsightEvaluator/InsightRequest/init(insightType:schema:model:))

Initializes a new insight request with the provided insight type, schema, and model versions.

### Insight request properties

[`var insightTypeIdentifier: String`](/documentation/TrustInsights/InsightEvaluator/InsightRequest/insightTypeIdentifier)

The identifier for the type of insight requested.

[`let modelVersion: InsightEvaluator.ModelVersion`](/documentation/TrustInsights/InsightEvaluator/InsightRequest/modelVersion)

The requested model version.

[`var schemaVersion: InsightType.SchemaVersion`](/documentation/TrustInsights/InsightEvaluator/InsightRequest/schemaVersion)

An integer that indicates the schema version the framework should use to perform the evaluation.

[`var schemaVersionNumber: Int`](/documentation/TrustInsights/InsightEvaluator/InsightRequest/schemaVersionNumber)

The requested schema version.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`InsightRequestProtocol`](/documentation/TrustInsights/InsightEvaluator/InsightRequestProtocol)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)