Skip to content

Commit 4d9e3c5

Browse files
authored
Use mutable map for tool call args in LLMHelper to prevent crash (#976)
1 parent 2123844 commit 4d9e3c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ai/src/main/java/org/conductoross/conductor/ai/LLMHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ private LLMResponse chatComplete(
380380
id = UUID.randomUUID().toString();
381381
}
382382
String argsAsString = toolCall.arguments();
383-
Map<String, Object> args = Map.of();
383+
Map<String, Object> args = new HashMap<>();
384384
try {
385385
@SuppressWarnings("unchecked")
386386
Map<String, Object> parsedArgs =

0 commit comments

Comments
 (0)