This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d09ca5847123 camel-langchain4j-chat: the RAG augmented-data header is 
documented as a String, which is the one type it cannot be (#30055)
d09ca5847123 is described below

commit d09ca5847123068dc3111d16689efc4802425c3f
Author: dhairya05 <[email protected]>
AuthorDate: Mon Nov 16 01:40:46 2026 +0530

    camel-langchain4j-chat: the RAG augmented-data header is documented as a 
String, which is the one type it cannot be (#30055)
---
 .../org/apache/camel/catalog/components/langchain4j-chat.json      | 2 +-
 .../apache/camel/component/langchain4j/chat/langchain4j-chat.json  | 2 +-
 .../camel/component/langchain4j/chat/LangChain4jChatHeaders.java   | 4 +++-
 .../endpoint/dsl/LangChain4jChatEndpointBuilderFactory.java        | 7 +++++--
 4 files changed, 10 insertions(+), 5 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-chat.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-chat.json
index 122fc90d7ecb..61c1d77256b7 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-chat.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-chat.json
@@ -40,7 +40,7 @@
   },
   "headers": {
     "CamelLangChain4jChatPromptTemplate": { "index": 0, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The prompt Template.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#PROMPT_TEMPLATE"
 },
-    "CamelLangChain4jChatAugmentedData": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Augmented Data for RAG", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#AUGMENTED_DATA"
 },
+    "CamelLangChain4jChatAugmentedData": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "java.util.List<dev.langchain4j.rag.content.Content>", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Augmented Data for RAG: the contents to inject into the chat message. Set by 
LangChain4jRagAggregatorStrategy, which turns the retrieved Strings into 
Content.", "constantName": "org.apache.camel.component.l [...]
     "CamelLangChain4jChatFinishReason": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "dev.langchain4j.model.output.FinishReason", "enum": [ "STOP", 
"LENGTH", "TOOL_EXECUTION", "CONTENT_FILTER", "OTHER" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The Finish Reason.", 
"constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#FINISH_REASON"
 },
     "CamelLangChain4jChatInputTokenCount": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"description": "The Input Token Count.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#INPUT_TOKEN_COUNT"
 },
     "CamelLangChain4jChatOutputTokenCount": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"description": "The Output Token Count.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#OUTPUT_TOKEN_COUNT"
 },
diff --git 
a/components/camel-ai/camel-langchain4j-chat/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/chat/langchain4j-chat.json
 
b/components/camel-ai/camel-langchain4j-chat/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/chat/langchain4j-chat.json
index 122fc90d7ecb..61c1d77256b7 100644
--- 
a/components/camel-ai/camel-langchain4j-chat/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/chat/langchain4j-chat.json
+++ 
b/components/camel-ai/camel-langchain4j-chat/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/chat/langchain4j-chat.json
@@ -40,7 +40,7 @@
   },
   "headers": {
     "CamelLangChain4jChatPromptTemplate": { "index": 0, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The prompt Template.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#PROMPT_TEMPLATE"
 },
-    "CamelLangChain4jChatAugmentedData": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Augmented Data for RAG", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#AUGMENTED_DATA"
 },
+    "CamelLangChain4jChatAugmentedData": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "java.util.List<dev.langchain4j.rag.content.Content>", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Augmented Data for RAG: the contents to inject into the chat message. Set by 
LangChain4jRagAggregatorStrategy, which turns the retrieved Strings into 
Content.", "constantName": "org.apache.camel.component.l [...]
     "CamelLangChain4jChatFinishReason": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "dev.langchain4j.model.output.FinishReason", "enum": [ "STOP", 
"LENGTH", "TOOL_EXECUTION", "CONTENT_FILTER", "OTHER" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The Finish Reason.", 
"constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#FINISH_REASON"
 },
     "CamelLangChain4jChatInputTokenCount": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"description": "The Input Token Count.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#INPUT_TOKEN_COUNT"
 },
     "CamelLangChain4jChatOutputTokenCount": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "int", "deprecated": false, "autowired": false, "secret": false, 
"description": "The Output Token Count.", "constantName": 
"org.apache.camel.component.langchain4j.chat.LangChain4jChatHeaders#OUTPUT_TOKEN_COUNT"
 },
diff --git 
a/components/camel-ai/camel-langchain4j-chat/src/main/java/org/apache/camel/component/langchain4j/chat/LangChain4jChatHeaders.java
 
b/components/camel-ai/camel-langchain4j-chat/src/main/java/org/apache/camel/component/langchain4j/chat/LangChain4jChatHeaders.java
index 2da957bf9925..92ed8a3ecc83 100644
--- 
a/components/camel-ai/camel-langchain4j-chat/src/main/java/org/apache/camel/component/langchain4j/chat/LangChain4jChatHeaders.java
+++ 
b/components/camel-ai/camel-langchain4j-chat/src/main/java/org/apache/camel/component/langchain4j/chat/LangChain4jChatHeaders.java
@@ -22,7 +22,9 @@ public class LangChain4jChatHeaders {
     @Metadata(description = "The prompt Template.", javaType = "String")
     public static final String PROMPT_TEMPLATE = 
"CamelLangChain4jChatPromptTemplate";
 
-    @Metadata(description = "Augmented Data for RAG", javaType = "String")
+    @Metadata(description = "Augmented Data for RAG: the contents to inject 
into the chat message. Set by"
+                            + " LangChain4jRagAggregatorStrategy, which turns 
the retrieved Strings into Content.",
+              javaType = "java.util.List<dev.langchain4j.rag.content.Content>")
     public static final String AUGMENTED_DATA = 
"CamelLangChain4jChatAugmentedData";
 
     @Metadata(description = "The Finish Reason.", javaType = 
"dev.langchain4j.model.output.FinishReason")
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jChatEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jChatEndpointBuilderFactory.java
index 834173dbf1b8..87b6f103ef3c 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jChatEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jChatEndpointBuilderFactory.java
@@ -439,9 +439,12 @@ public interface LangChain4jChatEndpointBuilderFactory {
             return "CamelLangChain4jChatPromptTemplate";
         }
         /**
-         * Augmented Data for RAG.
+         * Augmented Data for RAG: the contents to inject into the chat 
message.
+         * Set by LangChain4jRagAggregatorStrategy, which turns the retrieved
+         * Strings into Content.
          * 
-         * The option is a: {@code String} type.
+         * The option is a: {@code
+         * java.util.List<dev.langchain4j.rag.content.Content>} type.
          * 
          * Group: producer
          * 

Reply via email to