Skip to content

Commit

Permalink
address comments III
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Zhang <[email protected]>
  • Loading branch information
jngz-es committed Oct 21, 2024
1 parent cf68059 commit 8bca218
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,10 @@ public static Map<String, String> constructToolParams(
StringSubstitutor substitutor = new StringSubstitutor(toolParams, "${parameters.", "}");
input = substitutor.replace(input);
toolParams.put("input", input);
if (isJson(input)) {
Map<String, String> params = getParameterMap(gson.fromJson(input, Map.class));
toolParams.putAll(params);
}
} else {
toolParams.put("input", actionInput);
if (isJson(actionInput)) {
Expand Down

0 comments on commit 8bca218

Please sign in to comment.