values(for:)
Performs the value query with the given input and returns matching results.
Declaration
func values(for input: some IntentValueConvertible) async throws -> ResolvedValueQueryResultParameters
- 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:
let searchQuery = definitions.valueQueries[
"LandmarkIntentValueQuery"
]
let result = try await searchQuery.values(
for: "Arizona"
)
let name: String = try result.items[0].name