ISSUE DESCRIPTION [FEATURE] support non Result return types for AiService when tool…
- User
ISSUE DESCRIPTION
[FEATURE] support non Result return types for AiService when tool execution is IMMEDIATE Is your feature request related to a problem? Please describe. If using ReturnBehavior.IMMEDIATE, your AiService method has to return Result even if all tools called return
voidor all returnnullor there's one tool method that returns same type as AiService return type.Describe the solution you'd like I'd like to support non-Result return types for AiService methods when tool execution has IMMEDIATE results based on these rules:
- If ai service method return type is void, just return null
- If any tool executions are TO_LLM throw exception (IMMEDIATE_IF_LAST case)
- If all tool executions have a null result and return type is nullable (not a primitive), then return null
- If there is one non-null tool execution result, and the result can be resolved to the return type, then return that object
I have a PR for this open in Quarkus too:
https://github.com/quarkiverse/quarkus-langchain4j/pull/2529
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you callsubmit) usinggit statusorgit diffcommands. However you don't need to usegit addorgit commitbefore submitting your changes. In fact,submitonly submits currently unstaged changes because it usesgit diffto get the changes that need to be submitted.CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
- If an error was reported in the issue description, I have successfully reproduced it.
- If an error was reported in the issue description, I have confirmed that my fix resolves the error.
Assistant
The issue is asking for support for non-Result return types for AiService methods when tool execution has IMMEDIATE results (ReturnBehavior.IMMEDIATE).
Let me first explore the repository structure to understand the codebase and find the relevant files.
Assistant
Let me search for files related to AiService and ReturnBehavior to understand the current implementation.
<tool_call> <function=bash_terminal> <parameter=command> find /langchain4j -type f -name "*.java" | xargs grep -l "ReturnBehavior" | head -20 </tool_call>
Assistant
Let me run the grep command to search for ReturnBehavior in the repository.
Assistant
Let me look at the ReturnBehavior enum first to understand the different behaviors.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j-core/src/main/java/dev/langchain4j/agent/tool/ReturnBehavior.java </tool_call>
Assistant
Let me use the bash_terminal tool to run the cat command.
Assistant
Now I understand the issue better. The current implementation requires AiService methods to return
Resultwhen usingReturnBehavior.IMMEDIATEorReturnBehavior.IMMEDIATE_IF_LAST. The feature request is to support non-Result return types when tool execution has IMMEDIATE results.Let me look at the AiServices.java file to understand how the tool execution results are handled.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/AiServices.java </tool_call>
Assistant
I need to use the bash_terminal tool properly with the command in quotes.
Assistant
The file was truncated. Let me search for the DefaultAiServices class and the logic related to tool execution results.
<tool_call> <function=bash_terminal> <parameter=command> find /langchain4j -type f -name "DefaultAiServices.java" </tool_call>
Assistant
I need to use the bash_terminal tool with proper formatting to run the command.
Assistant
Let me view the DefaultAiServices.java file.
Assistant
The file was truncated. Let me find the specific part of the code that handles the tool execution results and the ReturnBehavior check.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "ReturnBehavior" /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
Let me use the bash_terminal tool properly to search for ReturnBehavior in the file.
Assistant
Let me check the ToolService.java file which seems to handle tool execution.
Assistant
Let me search for where the check for ReturnBehavior and Result return type happens.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "Result" /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolService.java | head -30 </tool_call>
Assistant
I need to use the bash_terminal tool properly to grep for Result in the ToolService.java file.
Assistant
Let me look at the executeInferenceAndToolsLoop method which seems to contain the check for Result return type. Let me view the relevant part of the file.
Assistant
Now I found the key part. The
executeInferenceAndToolsLoopmethod has a check at line 473-478 that throws an exception if the return type is notResultwhen using IMMEDIATE or IMMEDIATE_IF_LAST return behavior.Let me also look at how the return value is processed after the tool execution loop. Let me search for where the result is transformed.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "toolServiceResult|ToolServiceResult|immediateToolReturn" /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java | head -40 </tool_call>
Assistant
Let me run the grep command properly to search for toolServiceResult in DefaultAiServices.java.
Assistant
Let me look at more of the code around line 349 to understand how the result is handled when immediateToolReturn is true.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '330,420p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
I need to run the sed command properly using the bash_terminal tool to view the code around line 330-420.
Assistant
Now I can see the issue more clearly. When
toolServiceResult.immediateToolReturn()is true and the return type is notResult, it throws an exception (as we saw in the ToolService.java file). The feature request is to support non-Result return types when using IMMEDIATE return behavior.Let me look at the ToolExecution class to understand how tool execution results are captured.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolExecution.java </tool_call>
Assistant
Let me run the cat command using the bash_terminal tool.
Assistant
Now I understand the issue. When using
ReturnBehavior.IMMEDIATEorReturnBehavior.IMMEDIATE_IF_LAST, the current implementation requires the AiService method to returnResult. The feature request is to support non-Result return types by:- If ai service method return type is void, just return null
- If any tool executions are TO_LLM throw exception (IMMEDIATE_IF_LAST case)
- If all tool executions have a null result and return type is nullable (not a primitive), then return null
- If there is one non-null tool execution result, and the result can be resolved to the return type, then return that object
Let me also look at the Test files to understand better how the feature should work.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/test/java/dev/langchain4j/service/tool/ProgrammaticCreatedImmediateReturnToolTest.java </tool_call>
Assistant
Let me run the cat command using the bash_terminal tool to view the test file.
Assistant
Now let me also look at the ReturnBehaviorCombinationsTest to understand the test cases better.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/test/java/dev/langchain4j/service/tool/ReturnBehaviorCombinationsTest.java </tool_call>
Assistant
Let me run the cat command using the bash_terminal tool to view the test file.
Assistant
Now I have a good understanding of the issue. The feature request is to support non-Result return types for AiService methods when tool execution has IMMEDIATE results.
Currently, when using
ReturnBehavior.IMMEDIATEorReturnBehavior.IMMEDIATE_IF_LAST, the system requires the AiService method to returnResult. The feature request wants to allow non-Result return types by following these rules:- If ai service method return type is void, just return null
- If any tool executions are TO_LLM throw exception (IMMEDIATE_IF_LAST case)
- If all tool executions have a null result and return type is nullable (not a primitive), then return null
- If there is one non-null tool execution result, and the result can be resolved to the return type, then return that object
Let me also look at the ToolExecutionResult to understand what information is available.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolExecutionResult.java </tool_call>
Assistant
Let me run the cat command properly using the bash_terminal tool.
Assistant
Now I understand the structure better. The
ToolExecutionResulthas aresult()method that returns the raw object returned by the tool method. This is key for implementing the feature.Let me now look at the ToolServiceResult to understand what information is available when the tool execution loop completes.
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolServiceResult.java </tool_call>
Assistant
Let me run the cat command properly using the bash_terminal tool.
Assistant
Assistant
Let me run the sed command properly using the bash_terminal tool to view the code around line 470-485.
Assistant
I need to use the edit tool to modify the ToolService.java file. Let me first understand the exact lines I need to modify.
<tool_call> <function=bash_terminal> <parameter=command> sed -n '472,487p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolService.java </tool_call>
Assistant
I need to use the edit tool to modify the ToolService.java file. Let me first see the exact lines I need to modify.
Assistant
Now I understand the issue better. Let me first check the current state of the code and understand what changes need to be made. Let me look at the
ToolServiceResultclass to see if it includes return behaviors:Assistant
Let me understand the issue and implement the solution step by step.
The issue is asking to support non-Result return types for AiService methods when using ReturnBehavior.IMMEDIATE or IMMEDIATE_IF_LAST. Currently, the code throws an exception if the return type is not Result when using immediate return behavior.
The solution involves:
- Removing the check in ToolService.java that throws an exception when return type is not Result
- Adding logic in DefaultAiServices.java to handle non-Result return types when immediateToolReturn is true
Let me start by implementing the changes.
First, I'll modify the ToolService.java file to remove the check and also include returnBehaviors in the ToolServiceResult:
Assistant
I need to use the edit tool properly with the correct syntax. Let me try again.
Assistant
Let me use bash_terminal to make the changes:
Assistant
Now I'll use sed to make the changes to the ToolService.java file:
<tool_call> <function=bash_terminal> <parameter=command> sed -i '473,478d' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolService.java </tool_call>
Assistant
I need to use the bash_terminal tool properly to run the sed command. Let me run it correctly.
Assistant
Let me check the current state of the file:
Assistant
Good, I removed the check. Now I need to add the returnBehaviors field to the ToolServiceResult builder. Let me first check the ToolServiceResult class:
Assistant
Let me see more of the ToolServiceResult class to understand the structure better:
Assistant
Let me see the rest of the Builder class:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '150,200p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolServiceResult.java </tool_call>
Assistant
Let me run the bash command to see the rest of the Builder class.
Assistant
I need to add support for non-Result return types when using IMMEDIATE return behavior. Let me first add the
returnBehaviorsfield to theToolServiceResultclass:<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolServiceResult.java </tool_call>
Assistant
I need to use the bash_terminal tool to run the cat command properly. Let me do that.
Assistant
Now I understand the structure. I need to:
- Add the
returnBehaviorsfield toToolServiceResultclass - Update
ToolService.javato pass returnBehaviors to the builder - Update
DefaultAiServices.javato handle non-Result return types when immediateToolReturn is true
Let me first add the
returnBehaviorsfield toToolServiceResult:- Add the
Assistant
Now I need to update the ToolService.java to pass returnBehaviors to the builder. Let me first check the current state of the file:
Assistant
Now I need to update the ToolService.java to pass returnBehaviors to the builder. Let me use sed to add the returnBehaviors field:
Assistant
Let me verify the change was made correctly:
Assistant
Now I need to update
DefaultAiServices.javato handle non-Result return types whenimmediateToolReturnis true. Let me first check the current state of the file:Assistant
Assistant
I need to use the bash_terminal tool to run the Python script. Let me do that.
Assistant
Let me use bash to make the edit instead. I'll use sed to replace the block.
Actually, let me try a different approach - I'll use the bash_terminal tool to run a shell command that edits the file.
Assistant
The sed command ran but it only changed one part. Let me check the current state of the file and manually add the else branch.
Assistant
Now I need to add the
isReturnTypeResultcheck and the else branch. Let me insert the check after the opening brace:Assistant
Now I need to add the closing brace for the if block and the else branch. Let me check the current state of the file first.
Assistant
Let me fix the indentation and add the else branch. I'll rewrite the section properly.
Assistant
Let me try a different approach. I'll use a more reliable method to edit the file.
Assistant
Now I need to add the
handleImmediateReturnWithNonResultReturnTypemethod to theDefaultAiServices.javafile. Let me first check where to add it.Assistant
Now I need to add the
handleImmediateReturnWithNonResultReturnTypemethod. Let me find a good place to add it - probably after theisImagemethod or at the end of the inner class.Let me first check the structure of the file to find where to add the method:
Assistant
Let me add the method after the
parseImagesmethod. First, let me check what comes after the parseImages method:Assistant
Let me find where the invoke method ends and add the new method there. Let me check the file structure:
Assistant
Let me find the end of the invoke method and add the new method there.
<tool_call> <function=bash_terminal> <parameter=command> grep -n "private Object invoke|private static List toImageContents|private boolean canAdaptTokenStreamTo" /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
Let me use the bash_terminal tool to search for the method definitions.
Assistant
Now let me find the end of the invoke method by looking for where the proxy InvocationHandler invoke method ends:
Assistant
Let me check around line 513 to see if that's where the invoke method ends:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '505,520p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
I need to use the bash_terminal tool to run the sed command. Let me try again.
Assistant
Now I see that line 513 is where the invoke method ends (before the
private UserMessage invokeInputGuardrailsmethod). I need to add thehandleImmediateReturnWithNonResultReturnTypemethod before line 513.Let me extract the file content and add the method.
Assistant
Now let me create the method to add:
Assistant
Now I need to add the necessary imports to the DefaultAiServices.java file. Let me check the current imports and add the missing ones:
Assistant
I need to add the import for
ReturnBehavior. Let me add it:Assistant
Now let me verify the change was made correctly:
Assistant
Now let me try to compile the code to check for any errors:
Assistant
There are compilation errors. Let me check the file to see what went wrong:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '510,530p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
Let me check the file to see what went wrong with the compilation.
Assistant
I see the issue - the new method was inserted at the wrong place, inside the
executor.submitblock. Let me restore the file and try again more carefully.Assistant
Let me also restore the ToolServiceResult.java file:
<tool_call> <function=bash_terminal> <parameter=command> cd /langchain4j && git checkout -- langchain4j/src/main/java/dev/langchain4j/service/tool/ToolServiceResult.java </tool_call>
Assistant
Let me restore the ToolServiceResult.java file as well.
Assistant
Let me also restore the ToolService.java file:
Assistant
Now let me start fresh and implement the changes more carefully. Let me first understand the structure better:
Assistant
Assistant
I need to use the bash_terminal tool to run the Python script.
Assistant
Let me try using Python2 or just write a shell script to make the changes.
<tool_call> <function=bash_terminal> <parameter=command> which python python2 python3 2>/dev/null || echo "No python found" </tool_call>
Assistant
The user wants me to use the bash_terminal tool to run commands. Let me check if python is available.
Assistant
Let me use sed and awk to make the changes to the files. First, let me update the ToolServiceResult.java file:
Assistant
Now let me add the returnBehaviors field to the ToolServiceResult class:
Assistant
Now let me update the constructor to initialize returnBehaviors:
Assistant
Now let me update the deprecated constructor:
Assistant
Now let me add the returnBehaviors getter method after the immediateToolReturn method:
Assistant
Now let me update the equals method to include returnBehaviors:
Assistant
Now let me update the hashCode method:
Assistant
Now let me update the toString method:
Assistant
Let me try a different approach to update the toString method:
Assistant
Now let me add the returnBehaviors field to the Builder class:
Assistant
Now let me add the returnBehaviors setter method to the Builder class:
Assistant
Let me verify the ToolServiceResult.java file looks correct:
Assistant
The file has some issues with the sed commands. Let me restore it and write it correctly from scratch:
Assistant
Let me write the ToolServiceResult.java file from scratch with the correct content:
Assistant
Now let me update the ToolService.java file to remove the check and add returnBehaviors to the builder:
Assistant
I need to use the bash_terminal tool to edit the ToolService.java file. Let me first remove the check for isReturnTypeResult and then add returnBehaviors to the builder.
Assistant
Now let me verify the changes to ToolService.java:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '470,490p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolService.java </tool_call>
Assistant
I need to use the bash_terminal tool to run the sed command to check the changes.
Assistant
I see there's an extra closing brace. Let me fix it:
Assistant
Now let me update the DefaultAiServices.java file to add the import for ReturnBehavior and modify the condition:
Assistant
Now let me update the condition in DefaultAiServices.java to handle non-Result return types. I'll need to rewrite the section more carefully. Let me first see the current state:
Assistant
I need to use the bash_terminal tool to run sed commands. Let me replace the condition block to handle non-Result return types:
Assistant
Let me try a different approach. I'll use a Python script to make the changes since sed is getting complicated. First, let me check if there's any Python available.
Assistant
Let me restore the file and try a different approach using awk:
<tool_call> <function=bash_terminal> <parameter=command> cd /langchain4j && git checkout -- langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
I need to restore the DefaultAiServices.java file and then use a different approach to make the changes.
Assistant
Now let me use a more reliable approach. I'll create a new file with the correct content and replace the old one. First, let me check the structure of the file to understand where to make changes:
Assistant
Let me use the bash_terminal tool to create a script file first, then run it. I'll use awk to make the changes to the DefaultAiServices.java file.
First, let me add the import for ReturnBehavior:
Assistant
Now let me verify the import was added:
Assistant
Now let me view the section of code that needs to be modified:
Assistant
Now I need to replace the block that handles immediateToolReturn. Let me use awk to replace it:
Assistant
Now let me verify the change was made correctly:
Assistant
The change looks correct. Now I need to add the
handleImmediateReturnWithNonResultReturnTypeandcanResolveToReturnTypemethods to the DefaultAiServices.java file. Let me find a good place to add them - probably after theisImagemethod or at the end of the inner class.Assistant
Let me find where the
parseImagesmethod ends so I can add the new methods after it:Assistant
I can see that the
parseImagesmethod ends at line 449 (where there's a closing brace followed by a blank line and thenprivate static List<ImageContent> toImageContents). Let me add the new methods after line 452 (aftertoImageContentsmethod). Let me use awk to insert the new methods:Assistant
Let me verify that the methods were added correctly:
Assistant
The methods were added. Now let me try to compile the code to check for any errors:
Assistant
There are compilation errors in ToolService.java. Let me restore it and redo the changes more carefully:
Assistant
Now let me redo the changes to ToolService.java more carefully. First, let me see the original code:
Assistant
I need to replace the block from line 472 to 486. Let me use awk to do this properly:
Assistant
Let me verify the changes to ToolService.java:
Assistant
The changes to ToolService.java look correct. Now let me try to compile again:
Assistant
There are missing imports. Let me check the imports and add the missing ones:
Assistant
The grep command returned an error because there's no matching line. Let me check the imports section to see what's already imported:
<tool_call> <function=bash_terminal> <parameter=command> sed -n '50,65p' /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/DefaultAiServices.java </tool_call>
Assistant
I need to add the missing imports to DefaultAiServices.java. Let me add the imports for ToolExecution and Objects.
Assistant
I need to add imports for ToolExecution and Objects. Let me add them:
Assistant
Now let me add the Objects import:
Assistant
Now let me try to compile again:
Assistant
The compilation succeeded. Now let me run the tests to make sure everything works correctly:
Assistant
The tests passed. Let me also run some more tests related to the tool execution to make sure everything works:
Assistant
The user wants me to use the bash_terminal tool to run commands. Let me run the test for ProgrammaticCreatedImmediateReturnToolTest.
Assistant
The tests passed! Now let me also run a broader set of tests to ensure the changes don't break any existing functionality:
<tool_call> <function=bash_terminal> <parameter=command> cd /langchain4j && mvn test -pl langchain4j -Dtest="ReturnBehavior" 2>&1 | tail -30 </tool_call>
Assistant
Let me run the ReturnBehavior tests.
Assistant
The tests passed! Now let me also run some more tests related to tools to ensure everything works:
<tool_call> <function=bash_terminal> <parameter=command> cd /langchain4j && mvn test -pl langchain4j -Dtest="Tool" 2>&1 | tail -50 </tool_call>
Assistant
The user wants me to run the tests related to tools. Let me run the bash command to execute the tests.
Assistant
Assistant
Let me create a test to verify the new functionality works as expected.
Assistant
I see there are compilation errors. Let me fix the test file:
Assistant
I see the test is failing because the tool result is being returned as null instead of "42". This is because the tool result is a String, but the return type is also String, so the
canResolveToReturnTypemethod should return true. Let me check the code to see what's happening.Looking at the test, the tool returns "42" which is a String, and the return type is also String. The
canResolveToReturnTypemethod should return true for this case.Let me check if the issue is with how the test mock is set up. The mock model needs to return an AiMessage with tool execution requests.
Actually, looking at the error, the result is null, not "42". This suggests that the tool result is not being returned. Let me check the code to see if there's an issue.
Wait, I think the issue is that the test mock returns the same response for every call, which means it will keep requesting the tool execution again and again, leading to the infinite loop.
Let me fix the test to mock the model correctly:
Assistant
Let me fix the test to properly mock the model behavior:
Assistant
I see the issue - the
ToolExecutorinterface expects aToolExecutionResult, not a raw object. Let me fix the test:Assistant
The ToolExecutor interface expects a String return type, not a ToolExecutionResult. Let me check the ToolExecutor interface:
Assistant
Let me look at the ToolExecutor interface to understand its signature:
<tool_call> <function=bash_terminal> <parameter=command> cat /langchain4j/langchain4j/src/main/java/dev/langchain4j/service/tool/ToolExecutor.java </tool_call>
Assistant
Let me check the ToolExecutor interface to understand its signature.
Assistant
I see - the ToolExecutor interface has an
executeWithContextmethod that returns aToolExecutionResult. I need to override this method to return the correct result. Let me fix the test:Assistant
I need to add the import for InvocationContext. Let me fix the test:
Assistant
The test passed! This confirms that the feature is working correctly - non-Result return types now work with IMMEDIATE return behavior.
Let me clean up the test file since it was just for verification:
<tool_call> <function=bash_terminal> <parameter=command> rm /langchain4j/langchain4j/src/test/java/dev/langchain4j/service/tool/TestNonResultReturnType.java </tool_call>
Assistant
I need to remove the test file I created for verification. Let me run the command properly.
Assistant
Now let me run the broader tests to make sure everything still works:
<tool_call> <function=bash_terminal> <parameter=command> cd /langchain4j && mvn test -pl langchain4j -Dtest="ReturnBehavior,Tool" 2>&1 | tail -50 </tool_call>
Assistant
The user wants me to run the tests related to ReturnBehavior and Tool. Let me run the bash command to execute the tests.
Assistant
All tests passed. Let me provide a summary of the changes I made:
Summary of Changes
1. ToolServiceResult.java
- Added
returnBehaviorsfield to store the return behaviors for each tool execution - Added getter method
returnBehaviors()to access the return behaviors - Updated constructor, equals, hashCode, and toString methods to include the new field
2. ToolService.java
- Removed the check that threw an exception when the return type was not
Resultand immediate return was requested - Updated the code to include
returnBehaviorsin theToolServiceResultbuilder
3. DefaultAiServices.java
- Added imports for
ReturnBehavior,ToolExecution, andObjects - Modified the condition to handle both
Resultand non- return types when is true
- Added
Assistant
Let me submit the changes:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.