Skip to content

Commit 81abcbe

Browse files
author
Milder Hernandez Cagua
committed
Fix keys of execution settings
1 parent fd33c21 commit 81abcbe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

semantickernel-api/src/main/java/com/microsoft/semantickernel/semanticfunctions/KernelArguments.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,12 @@ public Builder<U> withExecutionSettings(PromptExecutionSettings executionSetting
377377
* @return {$code this} Builder for fluent coding
378378
*/
379379
public Builder<U> withExecutionSettings(Map<String, PromptExecutionSettings> executionSettings) {
380-
return withExecutionSettings(new ArrayList<>(executionSettings.values()));
380+
if (executionSettings == null) {
381+
return this;
382+
}
383+
384+
this.executionSettings.putAll(executionSettings);
385+
return this;
381386
}
382387

383388
/**

0 commit comments

Comments
 (0)