diff --git a/src/main/java/org/opensearch/agent/tools/PPLTool.java b/src/main/java/org/opensearch/agent/tools/PPLTool.java index 29ff510a..e058363f 100644 --- a/src/main/java/org/opensearch/agent/tools/PPLTool.java +++ b/src/main/java/org/opensearch/agent/tools/PPLTool.java @@ -263,7 +263,7 @@ public PPLTool create(Map map) { (String) map.get("model_id"), (String) map.getOrDefault("prompt", ""), (String) map.getOrDefault("model_type", ""), - (boolean) map.getOrDefault("execute", true) + Boolean.valueOf((String) map.getOrDefault("execute", "true")) ); }