package tech.easyflow.ai.node;

import com.alibaba.fastjson.JSONObject;
import com.easyagents.flow.core.node.BaseNode;
import com.easyagents.flow.core.parser.BaseNodeParser;

import java.math.BigInteger;

public class PluginToolNodeParser extends BaseNodeParser {

    @Override
    public BaseNode doParse(JSONObject root, JSONObject data, JSONObject tinyflow) {
        BigInteger pluginId = data.getBigInteger("pluginId");
        return new PluginToolNode(pluginId);
    }

    public String getNodeName() {
        return "plugin-node";
    }
}
