isSatisfied(by:)
Returns a Boolean value that indicates whether a value meets the requirements of the expectation.
Declaration
func isSatisfied(by value: (any IntentValueExpressing)?) async throws -> BoolParameters
- value:
The value to check, or
nilfor an absent value.
Return Value
true if the value satisfies the expectation; otherwise, false.
Discussion
Use this method to check an intent parameter value, an app entity property value, an intent result value, or an entity on its own. For an entity, the method checks each property independently; a property that the method can’t evaluate, such as a value of the wrong type, isn’t satisfied and doesn’t stop the method from checking the others.