atiaomar1978-hub commented on code in PR #25893:
URL: https://github.com/apache/camel/pull/25893#discussion_r3889877522


##########
components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/LangChain4jAgentProducer.java:
##########
@@ -185,6 +186,7 @@ public void process(Exchange exchange) throws Exception {
                     result.finishReason(),
                     null));
         } catch (RuntimeException e) {
+            GenAiErrorSupport.apply(exchange, e);

Review Comment:
   Added `LangChain4jAgentErrorMetadataTest` — verifies `CamelAiErrorCategory` 
is set on the Exchange when the agent producer catches a `RateLimitException`, 
with observability disabled (`197bf435`).
   
   _AI-generated reply on behalf of atiaomar1978-hub (Cursor Cloud Agent)_



##########
components/camel-ai/camel-langchain4j-embeddings/src/main/java/org/apache/camel/component/langchain4j/embeddings/LangChain4jEmbeddingsProducer.java:
##########
@@ -60,6 +61,7 @@ public void process(Exchange exchange) throws Exception {
                     result.finishReason(),
                     null));
         } catch (RuntimeException e) {
+            GenAiErrorSupport.apply(exchange, e);

Review Comment:
   Added `LangChain4jEmbeddingsErrorMetadataTest` — same end-to-end check for 
the embeddings producer catch block (`197bf435`).
   
   _AI-generated reply on behalf of atiaomar1978-hub (Cursor Cloud Agent)_



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