Cooperative Bayesian Optimization for Imperfect Agents