Croway opened a new pull request, #23965:
URL: https://github.com/apache/camel/pull/23965

   ## Summary
   
   - 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 `LangChain4jAgentAutoConversionTest` tests pass (local 
`GenericFile<File>` path 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
   - [x] Full IT suite passes (tools, multimodal, memory, guardrails)


-- 
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]

Reply via email to