davsclaus opened a new pull request, #30363: URL: https://github.com/apache/camel/pull/30363
[CAMEL-27219](https://issues.apache.org/jira/browse/CAMEL-27219) An `AiToolConfiguration` bean given as the `configuration` option no longer replaces the options set beside it. ## What changed - **Component:** the options already set on the component are kept when the configuration is set. They win over the bean's values, in whatever order they are bound. - **Endpoint:** `configuration` is taken out of the parameters before the other options are bound. - The endpoint options win over the bean. - Values the bean does not set come from the component, such as `authorizationPolicy` and `allowedRoles`. - The bean is copied, so endpoints that share it no longer change it. - **Merge rule:** a value counts as set when it is not null, or when it is `true` for a boolean whose default is `false`. So an explicit `false` cannot turn off `allRolesRequired=true` from a bean. - **Docs:** new section "With a configuration bean" on the ai-tool page. - **Upgrade guide:** a 4.24 entry for the changed behaviour. ## Tests - New `AiToolConfigurationBeanTest` covers the component and the endpoint level, with `authorizationPolicy`, `allowedRoles` and a plain option. The tool calls go through `AiToolExecutor`. - All 7 new tests fail without the change. - The module's 205 tests pass. _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
