def on_model_query(self, attempt_stats: InstanceStats):
        """Called before the model is queried. Can be used to implement
        stop conditions based on attempt cost etc.
        """
Called before the model is queried. Can be used to implement
        stop conditions based on attempt cost etc.
        
sweagent/agent/reviewer.py