Andrea Cosentino created CAMEL-24324:
----------------------------------------

             Summary: camel-aws-bedrock (agent/agentruntime): throw when 
pojoRequest=true and the body is the wrong type
                 Key: CAMEL-24324
                 URL: https://issues.apache.org/jira/browse/CAMEL-24324
             Project: Camel
          Issue Type: Sub-task
          Components: camel-aws
            Reporter: Andrea Cosentino


Child of CAMEL-24261. Most BedrockAgent/BedrockAgentRuntime operations already 
fail fast on a wrong POJO body, but four did not: {{startIngestionJob}}, 
{{listIngestionJobs}}, {{getIngestionJob}} (BedrockAgentProducer) and 
{{retrieveAndGenerate}} (BedrockAgentRuntimeProducer) silently no-op when 
{{pojoRequest=true}} and the body is not the expected request type. Add the 
missing else that throws {{IllegalArgumentException}}, consistent with the 
wording already used by the sibling operations. (BedrockProducer runtime is 
already covered by CAMEL-23462.)

----
_Reported by Claude Code on behalf of acosentino._



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to