Add API to assign a filter function to a hint.