You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/03/28 13:37:53 UTC
(camel) branch main updated: Fixed Bedrock Agent Producer response for ingestion job
This is an automated email from the ASF dual-hosted git repository.
acosentino 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 002dacd643e Fixed Bedrock Agent Producer response for ingestion job
002dacd643e is described below
commit 002dacd643eaa78dcd2049328bae0da7d362836b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Mar 28 14:36:59 2024 +0100
Fixed Bedrock Agent Producer response for ingestion job
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java
index 0dc35211750..42b867189c1 100644
--- a/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java
+++ b/components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java
@@ -243,7 +243,7 @@ public class BedrockAgentProducer extends DefaultProducer {
}
private void prepareGetIngestionJobResponse(GetIngestionJobResponse result, Message message) {
- message.setBody(result.ingestionJob().ingestionJobId());
+ message.setBody(result.ingestionJob());
message.setHeader(BedrockAgentConstants.INGESTION_JOB_STATUS, result.ingestionJob().status());
}