<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntentsTesting",
  "identifier" : "/documentation/AppIntentsTesting/IntentValueQueryDefinition/values(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents Testing"
    ],
    "preciseIdentifier" : "s:17AppIntentsTesting26IntentValueQueryDefinitionV6values3forAA08ResolvedeF6ResultVx_tYaK0aB11TypeSupport0dE11ConvertibleRzlF"
  },
  "title" : "values(for:)"
}
-->

# values(for:)

Performs the value query with the given input and returns matching results.

```
func values(for input: some IntentValueConvertible) async throws -> ResolvedValueQueryResult
```

## Parameters

`input`

The value to use in this query.

## Return Value

Results matching the query.

## Discussion

Use this function to verify that the system can query your app for app entities as shown in
the following example:

```swift
let searchQuery = definitions.valueQueries[
    "LandmarkIntentValueQuery"
]
let result = try await searchQuery.values(
    for: "Arizona"
)
let name: String = try result.items[0].name
```

---

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)