Croway opened a new pull request, #28295: URL: https://github.com/apache/camel/pull/28295
# Description Tool routes currently receive arguments only as individual headers, requiring users to reconstruct JSON for tools such as Kaoto Data Mapper. Add `argumentsAsBody` (default `false`) to populate the body with the complete tool arguments as a JSON string, preserving nested objects, arrays and null values. The body retains undeclared arguments, while individual headers keep their existing declaration filtering and warnings. Reserved argument names are excluded from both, and missing required arguments still reject the call. Propagate `CamelAiToolCallId` and `CamelAiToolConversationId` independently of the body option wherever adapters supply them: LangChain4j supplies both, OpenAI supplies the call ID, and Spring AI supplies the conversation ID. Unavailable identifiers are omitted. Update component documentation and regenerate the catalog, configurers, and Java DSLs. # Target - [x] Targets `main`. # Tracking [CAMEL-25985](https://issues.apache.org/jira/browse/CAMEL-25985) # Validation Built the affected modules and their dependencies with Maven. All 161 selected tests passed: 143 AI Tool tests, 12 OpenAI executor tests, 4 LangChain4j concurrency tests, and 2 Spring AI invocation tests. Formatting and import sorting ran through the Maven lifecycle. # AI-assisted contributions AI-assisted with Codex on behalf of @Croway. -- 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]
