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 e0ceca362a53 CAMEL-27630: Fix LangChain4j agent issues (#31184)
e0ceca362a53 is described below
commit e0ceca362a53183c583fcbb3b748abd229a57920
Author: DAKSHIN <[email protected]>
AuthorDate: Wed Dec 2 14:04:44 2026 +0530
CAMEL-27630: Fix LangChain4j agent issues (#31184)
- CAMEL-27630: Fix LangChain4j agent issues
- CAMEL-27630: Document deprecated response model header
- CAMEL-27630: Address review feedback
- CAMEL-27630: Complete review feedback
- CAMEL-27630: Fix upgrade guide section formatting
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
.../catalog/components/langchain4j-agent.json | 2 +-
.../camel/catalog/docs/ai-observability.adoc | 2 +-
.../catalog/docs/langchain4j-agent-component.adoc | 2 +-
.../src/main/docs/ai-observability.adoc | 2 +-
.../langchain4j/agent/api/AgentConfiguration.java | 9 ++++--
.../component/langchain4j/agent/api/Headers.java | 10 ++++--
.../langchain4j/agent/langchain4j-agent.json | 2 +-
.../src/main/docs/langchain4j-agent-component.adoc | 2 +-
.../langchain4j/agent/ToolsTagsHelper.java | 15 +++++++--
.../langchain4j/agent/ToolsTagsHelperTest.java} | 37 ++++++++++++++++------
.../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc | 8 +++++
.../LangChain4jAgentEndpointBuilderFactory.java | 7 ++--
12 files changed, 73 insertions(+), 25 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-agent.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-agent.json
index ff460b81a16a..9a92e951e04b 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-agent.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/langchain4j-agent.json
@@ -63,7 +63,7 @@
"CamelLangChain4jAgentOutputTokenCount": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"description": "The number of output tokens, summed over all model calls for
the message.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#OUTPUT_TOKEN_COUNT" },
"CamelLangChain4jAgentTotalTokenCount": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"description": "The number of input and output tokens, summed over all model
calls for the message.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#TOTAL_TOKEN_COUNT" },
"CamelLangChain4jAgentRequestModel": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model that the request went to, read from the
chat model of the agent, or unknown when Camel cannot read it.",
"constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#REQUEST_MODEL" },
- "CamelLangChain4jAgentResponseModel": { "index": 11, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model that answered. The producer does not set
it, as the Result of LangChain4j does not hold it.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#RESPONSE_MODEL" },
+ "CamelLangChain4jAgentResponseModel": { "index": 11, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "The LangChain4j
agent Result does not expose the response model name; the producer never
populates this header.", "autowired": false, "secret": false, "description":
"The producer does not set it, as the Result of LangChain4j does not hold it.
Deprecation note: The LangChain4j agent [...]
"CamelLangChain4jAgentSources": { "index": 12, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.util.List<dev.langchain4j.rag.content.Content>",
"deprecated": false, "autowired": false, "secret": false, "description": "The
contents that the retrieval augmentor (RAG) of the agent retrieved for the
message, if any.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#SOURCES" },
"CamelLangChain4jAgentToolExecutions": { "index": 13, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.util.List<dev.langchain4j.service.tool.ToolExecution>",
"deprecated": false, "autowired": false, "secret": false, "description": "The
tool executions, each with its request and result, that the agent ran for the
message, if any.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#TOOL_EXECUTIONS" },
"CamelLangChain4jAgentModerationFlagged": { "index": 14, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Set to true when the moderation model of the agent flags
the user message, and the exchange fails with a ModerationException. Not set
otherwise.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#MODERATION_FLAGGED" }
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ai-observability.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ai-observability.adoc
index d82814611faf..08ec1f51424f 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ai-observability.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ai-observability.adoc
@@ -49,7 +49,7 @@ component when GenAI observability is enabled so model
metadata is always popula
New exchange headers for model identification on langchain4j components:
* `CamelLangChain4jChatRequestModel` / `CamelLangChain4jChatResponseModel`
-* `CamelLangChain4jAgentRequestModel` / `CamelLangChain4jAgentResponseModel`
+* `CamelLangChain4jAgentRequestModel` (`CamelLangChain4jAgentResponseModel` is
deprecated and not populated by the producer)
* `CamelLangChain4jEmbeddingsRequestModel` /
`CamelLangChain4jEmbeddingsResponseModel`
Metrics recorded (when Micrometer is available):
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/langchain4j-agent-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/langchain4j-agent-component.adoc
index f617a4d8d908..6c6ad299c39b 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/langchain4j-agent-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/langchain4j-agent-component.adoc
@@ -227,7 +227,7 @@ Agents are configured using the `AgentConfiguration` class
which provides a flue
| `withHallucinatedToolNameStrategy(...)` | Handles requests for tool names
that do not exist (for example a hallucinated `task_complete` tool)
| `withToolExecutionErrorHandler(...)` | Converts tool execution exceptions
into tool result messages for the LLM
| `withToolArgumentsErrorHandler(...)` | Handles invalid or unparsable tool
arguments
-| `withCompensateOnToolErrors(Boolean)` | Sends tool errors back to the LLM so
it can recover instead of failing the exchange
+| `withCompensateOnToolErrors(Boolean)` | Enables compensation when tool
execution fails, invoking a corresponding method annotated with
`@CompensateFor` using `CompensationReason.TOOL_EXECUTION_FAILED`
| `withExecuteToolsConcurrently()` / `withExecuteToolsConcurrently(Executor)`
| Runs multiple tool calls from one LLM turn in parallel
|===
diff --git
a/components/camel-ai/camel-ai-observability/src/main/docs/ai-observability.adoc
b/components/camel-ai/camel-ai-observability/src/main/docs/ai-observability.adoc
index d82814611faf..08ec1f51424f 100644
---
a/components/camel-ai/camel-ai-observability/src/main/docs/ai-observability.adoc
+++
b/components/camel-ai/camel-ai-observability/src/main/docs/ai-observability.adoc
@@ -49,7 +49,7 @@ component when GenAI observability is enabled so model
metadata is always popula
New exchange headers for model identification on langchain4j components:
* `CamelLangChain4jChatRequestModel` / `CamelLangChain4jChatResponseModel`
-* `CamelLangChain4jAgentRequestModel` / `CamelLangChain4jAgentResponseModel`
+* `CamelLangChain4jAgentRequestModel` (`CamelLangChain4jAgentResponseModel` is
deprecated and not populated by the producer)
* `CamelLangChain4jEmbeddingsRequestModel` /
`CamelLangChain4jEmbeddingsResponseModel`
Metrics recorded (when Micrometer is available):
diff --git
a/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/AgentConfiguration.java
b/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/AgentConfiguration.java
index 04078a751aea..a3d62375f806 100644
---
a/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/AgentConfiguration.java
+++
b/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/AgentConfiguration.java
@@ -484,8 +484,13 @@ public class AgentConfiguration {
}
/**
- * Sets whether the agent should attempt to compensate when tool execution
errors occur by sending the error back to
- * the LLM for recovery.
+ * Sets whether the agent should attempt to compensate when tool execution
errors occur. When enabled, LangChain4j
+ * can invoke a corresponding compensating method annotated with {@code
@CompensateFor}, using
+ * {@code CompensationReason.TOOL_EXECUTION_FAILED} as the compensation
reason.
+ *
+ * <p>
+ * This is different from {@code withToolExecutionErrorHandler()}, which
handles tool execution errors and can
+ * convert them into tool result messages for the LLM.
*
* @param compensateOnToolErrors {@code true} to enable compensation,
{@code false} to disable
* @return this configuration instance for method
chaining
diff --git
a/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/Headers.java
b/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/Headers.java
index 23b377179c27..17ea6c44289c 100644
---
a/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/Headers.java
+++
b/components/camel-ai/camel-langchain4j-agent-api/src/main/java/org/apache/camel/component/langchain4j/agent/api/Headers.java
@@ -74,8 +74,14 @@ 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 LangChain4j agent Result does not expose the response
model name, so the producer does not
+ * populate this header.
+ */
+ @Deprecated
+ @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")
public static final String RESPONSE_MODEL =
"CamelLangChain4jAgentResponseModel";
diff --git
a/components/camel-ai/camel-langchain4j-agent/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/agent/langchain4j-agent.json
b/components/camel-ai/camel-langchain4j-agent/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/agent/langchain4j-agent.json
index ff460b81a16a..9a92e951e04b 100644
---
a/components/camel-ai/camel-langchain4j-agent/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/agent/langchain4j-agent.json
+++
b/components/camel-ai/camel-langchain4j-agent/src/generated/resources/META-INF/org/apache/camel/component/langchain4j/agent/langchain4j-agent.json
@@ -63,7 +63,7 @@
"CamelLangChain4jAgentOutputTokenCount": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"description": "The number of output tokens, summed over all model calls for
the message.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#OUTPUT_TOKEN_COUNT" },
"CamelLangChain4jAgentTotalTokenCount": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "autowired": false, "secret": false,
"description": "The number of input and output tokens, summed over all model
calls for the message.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#TOTAL_TOKEN_COUNT" },
"CamelLangChain4jAgentRequestModel": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model that the request went to, read from the
chat model of the agent, or unknown when Camel cannot read it.",
"constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#REQUEST_MODEL" },
- "CamelLangChain4jAgentResponseModel": { "index": 11, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "autowired": false, "secret": false,
"description": "The name of the model that answered. The producer does not set
it, as the Result of LangChain4j does not hold it.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#RESPONSE_MODEL" },
+ "CamelLangChain4jAgentResponseModel": { "index": 11, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": true, "deprecationNote": "The LangChain4j
agent Result does not expose the response model name; the producer never
populates this header.", "autowired": false, "secret": false, "description":
"The producer does not set it, as the Result of LangChain4j does not hold it.
Deprecation note: The LangChain4j agent [...]
"CamelLangChain4jAgentSources": { "index": 12, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.util.List<dev.langchain4j.rag.content.Content>",
"deprecated": false, "autowired": false, "secret": false, "description": "The
contents that the retrieval augmentor (RAG) of the agent retrieved for the
message, if any.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#SOURCES" },
"CamelLangChain4jAgentToolExecutions": { "index": 13, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "java.util.List<dev.langchain4j.service.tool.ToolExecution>",
"deprecated": false, "autowired": false, "secret": false, "description": "The
tool executions, each with its request and result, that the agent ran for the
message, if any.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#TOOL_EXECUTIONS" },
"CamelLangChain4jAgentModerationFlagged": { "index": 14, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret":
false, "description": "Set to true when the moderation model of the agent flags
the user message, and the exchange fails with a ModerationException. Not set
otherwise.", "constantName":
"org.apache.camel.component.langchain4j.agent.api.Headers#MODERATION_FLAGGED" }
diff --git
a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
index f617a4d8d908..6c6ad299c39b 100644
---
a/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
+++
b/components/camel-ai/camel-langchain4j-agent/src/main/docs/langchain4j-agent-component.adoc
@@ -227,7 +227,7 @@ Agents are configured using the `AgentConfiguration` class
which provides a flue
| `withHallucinatedToolNameStrategy(...)` | Handles requests for tool names
that do not exist (for example a hallucinated `task_complete` tool)
| `withToolExecutionErrorHandler(...)` | Converts tool execution exceptions
into tool result messages for the LLM
| `withToolArgumentsErrorHandler(...)` | Handles invalid or unparsable tool
arguments
-| `withCompensateOnToolErrors(Boolean)` | Sends tool errors back to the LLM so
it can recover instead of failing the exchange
+| `withCompensateOnToolErrors(Boolean)` | Enables compensation when tool
execution fails, invoking a corresponding method annotated with
`@CompensateFor` using `CompensationReason.TOOL_EXECUTION_FAILED`
| `withExecuteToolsConcurrently()` / `withExecuteToolsConcurrently(Executor)`
| Runs multiple tool calls from one LLM turn in parallel
|===
diff --git
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
b/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
index f24d2e79ddf0..0c463a43512a 100644
---
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
+++
b/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
@@ -16,6 +16,8 @@
*/
package org.apache.camel.component.langchain4j.agent;
+import java.util.Arrays;
+
final class ToolsTagsHelper {
private ToolsTagsHelper() {
}
@@ -23,10 +25,17 @@ final class ToolsTagsHelper {
/**
* Split the list of tags
*
- * @param tagList
- * @return
+ * @param tagList the comma-separated list of tags
+ * @return an array of trimmed, non-empty tag strings; never
{@code null}
*/
public static String[] splitTags(String tagList) {
- return tagList.split(",");
+ if (tagList == null || tagList.isBlank()) {
+ return new String[0];
+ }
+
+ return Arrays.stream(tagList.split(","))
+ .map(String::trim)
+ .filter(tag -> !tag.isEmpty())
+ .toArray(String[]::new);
}
}
diff --git
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
b/components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelperTest.java
similarity index 54%
copy from
components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
copy to
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelperTest.java
index f24d2e79ddf0..0880eb5264f9 100644
---
a/components/camel-ai/camel-langchain4j-agent/src/main/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelper.java
+++
b/components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/ToolsTagsHelperTest.java
@@ -1,3 +1,4 @@
+
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -16,17 +17,33 @@
*/
package org.apache.camel.component.langchain4j.agent;
-final class ToolsTagsHelper {
- private ToolsTagsHelper() {
+import org.junit.jupiter.api.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+class ToolsTagsHelperTest {
+
+ @Test
+ void testSplitTagsWithWhitespace() {
+ String[] result = ToolsTagsHelper.splitTags(" weather , news ");
+
+ assertThat(result).containsExactly("weather", "news");
+ }
+
+ @Test
+ void testSplitTagsWithEmptyEntries() {
+ String[] result = ToolsTagsHelper.splitTags("weather,,news,");
+
+ assertThat(result).containsExactly("weather", "news");
+ }
+
+ @Test
+ void testSplitTagsWithNullInput() {
+ assertThat(ToolsTagsHelper.splitTags(null)).isEmpty();
}
- /**
- * Split the list of tags
- *
- * @param tagList
- * @return
- */
- public static String[] splitTags(String tagList) {
- return tagList.split(",");
+ @Test
+ void testSplitTagsWithBlankInput() {
+ assertThat(ToolsTagsHelper.splitTags(" ")).isEmpty();
}
}
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index 984392f08020..51831f1370f0 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -21,6 +21,14 @@ and leaves out `Access-Control-Allow-Credentials`. Camel
logs a WARN when the ro
configure the allowed origin, for example
`corsHeaderProperty("Access-Control-Allow-Origin", "https://app.example.com")`.
This matches what `platform-http-vertx` and `camel-a2a` already do.
+=== camel-langchain4j-agent - deprecate response model header
+
+The `CamelLangChain4jAgentResponseModel` header is now deprecated because the
LangChain4j agent `Result` does not expose the response model name. The
producer did not populate this header, so applications should not rely on it.
+
+=== camel-langchain4j-agent - trim excluded tool tags and MCP server names
+
+The `CamelLangChain4jAgentExcludeTags` and
`CamelLangChain4jAgentExcludeMcpServers` headers now correctly handle
whitespace around comma-separated names.
+
=== camel-pqc - default-material accessors and provider resolution
The `PQCDefault*Material` helper classes now initialize their default
cryptographic material lazily. Their backing
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jAgentEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jAgentEndpointBuilderFactory.java
index 551e0f2bbeb6..12c9f1ca6c97 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jAgentEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/LangChain4jAgentEndpointBuilderFactory.java
@@ -1066,8 +1066,10 @@ public interface LangChain4jAgentEndpointBuilderFactory {
return "CamelLangChain4jAgentRequestModel";
}
/**
- * The name of the model that answered. The producer does not set it,
as
- * the Result of LangChain4j does not hold it.
+ * The producer does not set it, as the Result of LangChain4j does not
+ * hold it. Deprecation note: The LangChain4j agent Result does not
+ * expose the response model name; the producer never populates this
+ * header.
*
* The option is a: {@code String} type.
*
@@ -1075,6 +1077,7 @@ public interface LangChain4jAgentEndpointBuilderFactory {
*
* @return the name of the header {@code
LangChain4jAgentResponseModel}.
*/
+ @Deprecated
public String langChain4jAgentResponseModel() {
return "CamelLangChain4jAgentResponseModel";
}