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

# InsightEvaluator.InsightContext

A structure that provides details about the evaluations to request and provides information the framework requires for the evaluation to take place.

```
struct InsightContext<each InsightRequest> where repeat each InsightRequest : InsightEvaluator.InsightRequestProtocol
```

## Topics

### Creating an insight context

[`init(operationCategory: InsightEvaluator.OperationCategory, requestedEvaluations: (repeat each InsightRequest))`](/documentation/TrustInsights/InsightEvaluator/InsightContext/init(operationCategory:requestedEvaluations:))

Creates the context with which to request insights.

### insight context properties

[`var operationCategory: InsightEvaluator.OperationCategory`](/documentation/TrustInsights/InsightEvaluator/InsightContext/operationCategory)

The type of operation you’re requesting the evaluation for.

[`var requestID: String?`](/documentation/TrustInsights/InsightEvaluator/InsightContext/requestID)

An optional identifier you can use to tie an assessment to a specific transaction.

[`let requestedInsight: (repeat each InsightRequest)`](/documentation/TrustInsights/InsightEvaluator/InsightContext/requestedInsight)

The insight you’re requesting.

## Relationships

### Conforms To

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

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

---

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)