You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zineb Bendhiba (Jira)" <ji...@apache.org> on 2026/06/02 13:03:00 UTC
[jira] [Created] (CAMEL-23668) Introduce camel-ai-common module with AgentAggregationStrategy
Zineb Bendhiba created CAMEL-23668:
--------------------------------------
Summary: Introduce camel-ai-common module with AgentAggregationStrategy
Key: CAMEL-23668
URL: https://issues.apache.org/jira/browse/CAMEL-23668
Project: Camel
Issue Type: New Feature
Components: camel-ai
Reporter: Zineb Bendhiba
Assignee: Zineb Bendhiba
There is no built-in AggregationStrategy for collecting multiple agent String responses into a single String for a synthesis agent.
GroupedBodyAggregationStrategy produces a List<String> which no Camel AI component accepts, forcing a manual transform() step.
This issue proposes a new camel-ai-common module (no AI framework dependency) with AgentAggregationStrategy as a first utility:
{code:java}
from("direct:analysis")
.multicast(new AgentAggregationStrategy())
.parallelProcessing()
.to("langchain4j-agent:financialAgent")
.to("langchain4j-agent:riskAgent")
.end()
.to("langchain4j-agent:synthesisAgent"); // plain String, no transform needed{code}
The module would hold shared EIP utilities applicable across camel-langchain4j-agent, camel-spring-ai-chat, and camel-openai.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)