[PATCH 2/3] TaskAPI: add get_type() to InterfaceAPI