davsclaus opened a new pull request, #24485: URL: https://github.com/apache/camel/pull/24485
## Summary _Claude Code on behalf of davsclaus_ - Expose key LangChain4j `AiServices` builder tool-calling options directly on `AgentConfiguration`: `maxToolCallingRoundTrips`, `hallucinatedToolNameStrategy`, `toolExecutionErrorHandler`, `toolArgumentsErrorHandler`, `compensateOnToolErrors` - Add `aiServicesCustomizer` (`Consumer<AiServices<?>>`) escape hatch for configuring any `AiServices` builder option not directly exposed - Wire all new options into `AbstractAgent.configureBuilder()`, with the customizer invoked last This addresses a gap where users needing tool-calling error handling (e.g. handling hallucinated tool names) had to implement `AgentFactory` and reimplement all of `AbstractAgent.configureBuilder()` from scratch. Follow-up [CAMEL-23929](https://issues.apache.org/jira/browse/CAMEL-23929) will expose the simple scalar options as `@UriParam` on `LangChain4jAgentConfiguration`. ## Test plan - [x] Unit tests added for all new fluent setters and chaining (`AgentConfigurationTest`) - [x] All 189 tests pass in `camel-langchain4j-agent-api` - [x] Downstream `camel-langchain4j-agent` module compiles cleanly Co-Authored-By: Claude Opus 4.6 <[email protected]> -- 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]
