stop method

void stop()

Requests a graceful stop after the current iteration finishes.

The in-progress iteration completes normally; the loop then returns an AgentRunResult with success: false and an appropriate error message.

Implementation

void stop() {
  _stopRequested = true;
  _logger.info('Stop requested — will halt after current iteration');
}