Croway opened a new pull request, #23966: URL: https://github.com/apache/camel/pull/23966
## Summary Backport of #23965 to `camel-4.18.x`. - Fix `LangChain4jAgentConverter.toAiAgentBody(WrappedFile)` to handle remote file types (FTP, SFTP) by falling back to the exchange type converter when `getFile()` does not return a `java.io.File` - MIME type is detected from `Exchange.FILE_NAME` header for remote files, with the same priority chain (agent header > file content type header > extension) - Add unit tests for remote `WrappedFile` conversion with both extension-based and header-based MIME detection ## Test plan - [x] Existing local `GenericFile<File>` conversion unchanged - [x] New `shouldConvertRemoteWrappedFileWithFileNameHeader` test verifies remote file → `ImageContent` via `Exchange.FILE_NAME` - [x] New `shouldConvertRemoteWrappedFileWithMediaTypeHeader` test verifies header-based MIME override for remote files -- 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]
