Skip to content

Commit

Permalink
repC option 1 improvement
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Feb 22, 2024
1 parent b169b2f commit 0c242ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private void getNextStep(
) {
String toolSeletctionType = "original";
String toolSelectionModelId;
if (agentParameters.containsKey("tool_selection"))
if (agentParameters !=null && agentParameters.containsKey("tool_selection"))
{
Map<String, String> toolSelectionConfig = gson.fromJson(agentParameters.get("tool_selection"), Map.class);
toolSeletctionType = toolSelectionConfig.getOrDefault("type", "original");
Expand Down

0 comments on commit 0c242ce

Please sign in to comment.