JiriOndrusek opened a new issue, #8880:
URL: https://github.com/apache/camel-quarkus/issues/8880

   ## Description
   
   The `data-extract-langchain4j` example in `camel-quarkus-examples` fails to 
compile on the `camel-quarkus-main` branch after 
[CAMEL-23860](https://issues.apache.org/jira/browse/CAMEL-23860) (commit 
apache/camel@cb12bcd9a7) changed `Agent.chat()` return type from `String` to 
`Result<String>`.
   
   ## Error
   
   ```
   DataExtractAgent is not abstract and does not override abstract method
     chat(AiAgentBody<?>,ToolProvider) in Agent
   return type java.lang.String is not compatible with
     dev.langchain4j.service.Result<java.lang.String>
   ```
   
   ## Fix
   
   `DataExtractAgent.chat()` needs to return `Result<String>` instead of 
`String`, wrapping the result via 
`Result.<String>builder().content(...).build()`.
   
   ## Affected CI
   
   - `camel-main` branch: Examples Tests - group-01


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