---
title: "request(schema:modelVersion:)"
framework: trustinsights
role: symbol
role_heading: Type Method
path: "trustinsights/trustinsight/request(schema:modelversion:)"
---

# request(schema:modelVersion:)

Creates an insight request for the given insight type.

## Declaration

```swift
static func request(schema: Self.SchemaVersion, modelVersion: InsightEvaluator.ModelVersion = .current) -> InsightEvaluator.InsightRequest<Self>
```

## Parameters

- `schema`: The required doc://com.apple.trustinsights/documentation/TrustInsights/TrustInsight/SchemaVersion.
- `modelVersion`: The required doc://com.apple.trustinsights/documentation/TrustInsights/InsightEvaluator/ModelVersion.

## Return Value

Return Value An InsightEvaluator.InsightRequest to incorporate into an InsightEvaluator.InsightContext that you can use to make an evaluation request.
