Metareasoning-Based Adaptation of Agent Classification Knowledge