Introduce a generic interface for querying an operation's expected