package tech.easyflow.ai.easyagentsflow.listener;

import com.easyagents.flow.core.chain.Chain;
import com.easyagents.flow.core.chain.listener.ChainErrorListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ChainErrorListenerForSave implements ChainErrorListener {

    private static final Logger log = LoggerFactory.getLogger(ChainErrorListenerForSave.class);

    @Override
    public void onError(Throwable error, Chain chain) {
        log.error("ChainErrorListenerForFront: {}", chain, error);
    }
}
