package tech.easyflow.ai.easyagentsflow.listener;

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

import java.util.Map;

public class NodeErrorListenerForSave implements NodeErrorListener {

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

    @Override
    public void onError(Throwable error, Node node, Map<String, Object> nodeResult, Chain chain) {
        log.error("NodeErrorListenerForFront: {}", node, error);
    }
}
