DakshinJeeva opened a new pull request, #31184: URL: https://github.com/apache/camel/pull/31184
## Description This PR addresses the following issues in `camel-langchain4j-agent` reported in [[CAMEL-27630](https://issues.apache.org/jira/browse/CAMEL-27630)](https://issues.apache.org/jira/browse/CAMEL-27630). ### Changes 1. **Trim excluded tool tags and MCP server names** - Updated `ToolsTagsHelper.splitTags()` to trim whitespace from comma-separated values. - Empty entries are filtered out to ensure exclusion matching works correctly. 2. **Deprecate the response model header** - Deprecated `CamelLangChain4jAgentResponseModel` because the LangChain4j agent `Result` does not expose the response model name. - Updated the header metadata to clarify that the producer does not populate it. 3. **Correct compensation documentation** - Updated the Javadoc for `withCompensateOnToolErrors()` to describe the actual compensation behavior. - Clarified that compensation invokes methods annotated with `@CompensateFor` using `CompensationReason.TOOL_EXECUTION_FAILED`. - Updated the component documentation accordingly. ### Tests - Added unit tests for `ToolsTagsHelper` to verify whitespace trimming and empty-entry handling. - Executed the relevant Maven tests. -- 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]
