diff --git a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/agent/MLFlowAgentRunner.java b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/agent/MLFlowAgentRunner.java index 7a7e657f34..865594b743 100644 --- a/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/agent/MLFlowAgentRunner.java +++ b/ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/agent/MLFlowAgentRunner.java @@ -270,9 +270,6 @@ Tool createTool(MLToolSpec toolSpec) { @VisibleForTesting Map getToolExecuteParams(MLToolSpec toolSpec, Map params) { Map executeParams = new HashMap<>(); - if (toolSpec.getParameters() != null) { - executeParams.putAll(toolSpec.getParameters()); - } for (String key : params.keySet()) { String toBeReplaced = null; if (key.startsWith(toolSpec.getType() + ".")) { @@ -287,15 +284,16 @@ Map getToolExecuteParams(MLToolSpec toolSpec, Map