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

# init(_:_:)

Creates an expectation that Siri calls the intents in the block, or doesn’t call them, as the
ordering requires.

```
init(_ ordering: Calls.Ordering = .ordered, @IntentExpectationBuilder _ content: () -> [any AppIntentExpectationProviding])
```

## Discussion

The following shows how you can use the builder syntax:

```swift
Calls {
    CreateEventIntent.expect(title: .equals("The expected title"))
}
```

---

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)