Skip to content

Commit 0c242ce

Browse files
committed
repC option 1 improvement
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent b169b2f commit 0c242ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ private void getNextStep(
417417
) {
418418
String toolSeletctionType = "original";
419419
String toolSelectionModelId;
420-
if (agentParameters.containsKey("tool_selection"))
420+
if (agentParameters !=null && agentParameters.containsKey("tool_selection"))
421421
{
422422
Map<String, String> toolSelectionConfig = gson.fromJson(agentParameters.get("tool_selection"), Map.class);
423423
toolSeletctionType = toolSelectionConfig.getOrDefault("type", "original");

0 commit comments

Comments
 (0)