davsclaus opened a new pull request, #23807:
URL: https://github.com/apache/camel/pull/23807

   ## Summary
   - Fix `stop()` EIP in langchain4j tool routes causing subsequent parallel 
tool invocations to be short-circuited
   - When the LLM invokes multiple tools in a single response, the `ROUTE_STOP` 
flag from one tool's `stop()` leaked into the shared exchange, preventing 
subsequent tools from executing and returning incorrect results
   - Add `exchange.setRouteStop(false)` before each tool invocation in the 
`invokeTools()` loop
   - Add test `LangChain4jToolStopEipTest` covering parallel tool invocations 
where one tool uses `stop()`
   
   ## Test plan
   - [x] New test `LangChain4jToolStopEipTest` verifies both tools execute 
independently when one uses `stop()`
   - [x] All 39 existing tests in camel-langchain4j-tools pass (no regressions)
   
   _Claude Code on behalf of Claus Ibsen_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to