gnodet-bot commented on code in PR #31184:
URL: https://github.com/apache/camel/pull/31184#discussion_r4757417542


##########
components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java:
##########
@@ -27,6 +29,13 @@ private ToolsTagsHelper() {
      * @return

Review Comment:
   💡 **Still open from previous review:** The `@return` tag has no description. 
Now that `splitTags` guarantees it never returns `null`, the return contract is 
worth stating explicitly:
   
   ```suggestion
        * @return an array of trimmed, non-empty tag strings; never {@code null}
   ```



##########
components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/Headers.java:
##########
@@ -74,8 +74,12 @@ public class Headers {
               javaType = "String")
     public static final String REQUEST_MODEL = 
"CamelLangChain4jAgentRequestModel";
 
-    @Metadata(description = "The name of the model that answered. The producer 
does not set it, as the Result of"
-                            + " LangChain4j does not hold it.",
+    /**
+     * @deprecated The producer does not set it, as the Result of LangChain4j 
does not hold it.
+     */
+    @Deprecated
+    @Metadata(
+              description = "The producer does not set it, as the Result of 
LangChain4j does not hold it.",
               javaType = "String")
     public static final String RESPONSE_MODEL = 
"CamelLangChain4jAgentResponseModel";

Review Comment:
   💡 **Still open from previous review:** `@Metadata` still has no 
`deprecationNote`. The Camel annotation processor reads this as a separate 
field from `description` and emits it as `"deprecationNote"` in the generated 
JSON — without it, tooling only knows the header is deprecated but not why.
   
   ```suggestion
       @Metadata(
                 description = "The producer does not set it, as the Result of 
LangChain4j does not hold it.",
                 deprecationNote = "The LangChain4j agent Result does not 
expose the response model name; the producer never populates this header.",
                 javaType = "String")
   ```



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