(prune_cache): Handle GETAI request type.