<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: 27.3.0 -",
    "macOS: 27.3.0 -",
    "tvOS: 27.3.0 -",
    "visionOS: 27.3.0 -",
    "watchOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/AppIntentExpectationProviding",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting0A26IntentExpectationProvidingP"
  },
  "title" : "AppIntentExpectationProviding"
}
-->

# AppIntentExpectationProviding

A type that describes the app intent you expect, including its type and,
optionally, its parameter values and result.

```
protocol AppIntentExpectationProviding : Sendable
```

## Overview

An intent definition on its own expects any intent of its type, whatever
its parameters are. Call [`expect`](/documentation/AppIntentsTesting/AppIntentDefinition/expect) to also check
parameter values, and [`result(_:)`](/documentation/AppIntentsTesting/AppIntentDefinition/result(_:)) or
[`result(_:)`](/documentation/AppIntentsTesting/AppIntentExpectation/result(_:)) to check the result. Check an intent
with [`isSatisfied(by:result:)`](/documentation/AppIntentsTesting/AppIntentExpectationProviding/isSatisfied(by:result:)), or pass the expectation to a framework
that takes intent expectations.

You get intent expectations from intent definitions. Don’t declare new
conformances to this protocol.

For example, expect an intent with a title that contains a substring:

```swift
let expectation = createEventIntentDefinition.expect(
    title: .contains("NASA")
)
let isSatisfied = try await expectation.isSatisfied(by: intent)
```

## Topics

### Instance Methods

[`func isSatisfied(by: AnyAppIntent, result: ResolvedIntentResult?) async throws -> Bool`](/documentation/AppIntentsTesting/AppIntentExpectationProviding/isSatisfied(by:result:))

Returns a Boolean value that indicates whether an intent and its
optional result meet the requirements of the expectation.

## Relationships

### Conforming Types

[`AppIntentDefinition`](/documentation/AppIntentsTesting/AppIntentDefinition)

[`AppIntentExpectation`](/documentation/AppIntentsTesting/AppIntentExpectation)

### Inherits From

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

[`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)