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

   _AI-generated on behalf of atiaomar1978-hub_
   
   ## Summary
   
   Follow-up to CAMEL-23928. Exposes the simple scalar tool-calling options 
from `AgentConfiguration` as `@UriParam` fields on 
`LangChain4jAgentConfiguration`, so users can configure them directly in the 
endpoint URI without creating a separate bean.
   
   ## Changes
   
   - **`LangChain4jAgentConfiguration`** — new URI parameters:
     - `maxToolCallingRoundTrips` (0 = unset, uses LangChain4j default)
     - `compensateOnToolErrors`
     - `executeToolsConcurrently`
   - **`LangChain4jAgentProducer`** — merges endpoint URI values onto the 
duplicated `AgentConfiguration` (URI overrides bean); validates inline agent 
creation mode
   - **`AgentConfiguration`** — `withExecuteToolsConcurrentlyEnabled(Boolean)` 
so URI `executeToolsConcurrently=false` can disable concurrent tools configured 
on the bean
   - **Tests** — `LangChain4jAgentToolCallingUriParamsTest` (7 tests) + 
`AgentConfigurationTest` update
   - **Docs** — URI/YAML examples in `langchain4j-agent-component.adoc`
   - **Catalog** — regenerated component metadata
   
   ## Example
   
   ```java
   from("direct:start")
       
.to("langchain4j-agent:assistant?agentConfiguration=#myConfig&tags=orders"
           + 
"&maxToolCallingRoundTrips=5&compensateOnToolErrors=true&executeToolsConcurrently=true");
   ```
   
   ## Testing
   
   ```bash
   ./mvnw -pl 
components/camel-ai/camel-langchain4j-agent-api,components/camel-ai/camel-langchain4j-agent
 -am test \
     
-Dtest=LangChain4jAgentToolCallingUriParamsTest,LangChain4jAgentExecuteToolsConcurrentlyTest,AgentConfigurationTest
   ```
   
   JIRA: https://issues.apache.org/jira/browse/CAMEL-23929


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