package dev.sonpx.loyalty.agent.exception;

/**
 * Exception thrown when a tool execution encounters an unrecoverable system or connection error.
 * Throwing this exception aborts the Spring AI ChatClient stream immediately,
 * preventing small LLMs from entering an infinite ReAct retry loop.
 */
public class UnrecoverableToolExecutionException extends RuntimeException {

    public UnrecoverableToolExecutionException(String message) {
        super(message);
    }

    public UnrecoverableToolExecutionException(String message, Throwable cause) {
        super(message, cause);
    }
}
