atiaomar1978-hub opened a new pull request, #25228:
URL: https://github.com/apache/camel/pull/25228

   ## Summary
   
   _AI-generated on behalf of atiaomar1978-hub_
   
   - Exposes `AgentConfiguration.withExecuteToolsConcurrently()` and 
`withExecuteToolsConcurrently(Executor)`, wired into 
`AbstractAgent.configureBuilder()` for LangChain4j `AiServices`.
   - When concurrent execution is enabled without an explicit executor, 
`LangChain4jAgentProducer` registers a Camel-managed thread pool via 
`ExecutorServiceManager` and shuts it down on component stop.
   - Builds on exchange-isolated Camel route tool execution (CAMEL-23944) so 
parallel tool calls are safe.
   - Documents concurrent tool mode in the langchain4j-agent component guide.
   
   ## Test plan
   
   - [x] `AgentConfigurationTest` (executeToolsConcurrently fluent API)
   - [x] `LangChain4jAgentExecuteToolsConcurrentlyTest` (parallel overlap + 
managed executor resolution)
   - [x] `mvn test -pl components/camel-ai/camel-langchain4j-agent -am 
-Dtest=LangChain4jAgentExecuteToolsConcurrentlyTest,AgentConfigurationTest`
   
   
   Made with [Cursor](https://cursor.com)


-- 
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