<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriEvaluations",
  "identifier" : "/documentation/SiriEvaluations/UserTurn/init(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Siri Evaluations"
    ],
    "preciseIdentifier" : "s:15SiriEvaluations8UserTurnVyACSS_AA0aD18ExpectationBuilderO9ComponentVyXEtcfc"
  },
  "title" : "init(_:_:)"
}
-->

# init(_:_:)

Creates a turn from an utterance and what Siri should do in response to it.

```
init(_ utterance: String, @SiriTurnExpectationBuilder _ content: () -> SiriTurnExpectationBuilder.Component)
```

## Discussion

The trailing block holds the turn’s expectations — any of `Calls`, `Finds`, `OnScreen`,
`SiriResponse` and `Loads`, each graded only against this turn’s observations:

```swift
UserTurn("Create a Launch Party event tomorrow at 7 PM") {
    Calls { CreateEventIntent }
    Finds { EventEntity.expect(title: .equals("Launch Party")) }
}
```

---

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)