Added solver callback to allow client receive training stats and return actions.