Skip to content

Commit 870a9a9

Browse files
committed
rename parameter name
Signed-off-by: Hailong Cui <[email protected]>
1 parent c824105 commit 870a9a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common/src/main/java/org/opensearch/ml/common/utils/ToolUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class ToolUtils {
3434

3535
public static final String TOOL_OUTPUT_FILTERS_FIELD = "output_filter";
36-
public static final String TOOL_OUTPUT_ESCAPED = "output_escaped";
36+
public static final String TOOL_ESCAPE_OUTPUT = "escape_output";
3737
public static final String TOOL_REQUIRED_PARAMS = "required_parameters";
3838
public static final String NO_ESCAPE_PARAMS = "no_escape_params";
3939

ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/agent/MLFlowAgentRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
package org.opensearch.ml.engine.algorithms.agent;
77

8-
import static org.opensearch.ml.common.utils.ToolUtils.TOOL_OUTPUT_ESCAPED;
8+
import static org.opensearch.ml.common.utils.ToolUtils.TOOL_ESCAPE_OUTPUT;
99
import static org.opensearch.ml.common.utils.ToolUtils.TOOL_OUTPUT_FILTERS_FIELD;
1010
import static org.opensearch.ml.common.utils.ToolUtils.filterToolOutput;
1111
import static org.opensearch.ml.common.utils.ToolUtils.getToolName;
@@ -121,7 +121,7 @@ public void run(MLAgent mlAgent, Map<String, String> params, ActionListener<Obje
121121
StringUtils
122122
.prepareJsonValue(
123123
filteredOutput,
124-
Boolean.parseBoolean(toolParameters.getOrDefault(TOOL_OUTPUT_ESCAPED, "false"))
124+
Boolean.parseBoolean(toolParameters.getOrDefault(TOOL_ESCAPE_OUTPUT, "false"))
125125
)
126126
);
127127
if (previousToolSpec.isIncludeOutputInAgentResponse() || finalI == toolSpecs.size()) {

0 commit comments

Comments
 (0)