<!--
{
  "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/IntentValueExpectationCallable",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting30IntentValueExpectationCallableV"
  },
  "title" : "IntentValueExpectationCallable"
}
-->

# IntentValueExpectationCallable

A value that you call with labeled value expectations to create an
expectation on the corresponding parameters or properties.

```
@dynamicCallable struct IntentValueExpectationCallable<Argument, Expectation> where Argument : Sendable
```

## Overview

A callable lets you write an expectation as a single call, where each
argument label names a parameter or property and each argument is the value
expectation for it. The callable’s argument type determines which value
expectations the arguments accept, and its expectation type is the
expectation the call creates.

You don’t create a callable directly. Get one from the `expect` property of
a definition, such as [`expect`](/documentation/AppIntentsTesting/AppIntentDefinition/expect) or
[`expect`](/documentation/AppIntentsTesting/AppEntityDefinition/expect), and call it like a method:

```swift
let createEventIntentDefinition = definitions.intents["CreateEventIntent"]
let expectation = createEventIntentDefinition.expect(
    title: .contains("NASA")
)
```

## Topics

### Instance Methods

[`func dynamicallyCall(withKeywordArguments: KeyValuePairs<String, Argument?>) -> Expectation`](/documentation/AppIntentsTesting/IntentValueExpectationCallable/dynamicallyCall(withKeywordArguments:))

Creates an expectation from value expectations that you label with
parameter or property names.

## Relationships

### Conforms To

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