Andrea Cosentino created CAMEL-23467:
----------------------------------------
Summary: Camel-AWS-Bedrock: Add support for InvokeAgent and
InvokeInlineAgent operations in Bedrock Agent Runtime
Key: CAMEL-23467
URL: https://issues.apache.org/jira/browse/CAMEL-23467
Project: Camel
Issue Type: New Feature
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
The {{aws-bedrock-agent-runtime}} component does not expose the {{InvokeAgent}}
API (used to invoke a deployed Bedrock agent) or {{InvokeInlineAgent}}
(defining the agent inline at invocation time). These are the primary entry
points for agent-based workflows on Bedrock and are widely requested.
Both APIs return event-stream responses (similar to {{converseStream}}), so
handling will need to mirror the existing streaming infrastructure built for
the runtime component.
*Suggested scope:*
* Add {{invokeAgent}} and {{invokeInlineAgent}} to
{{BedrockAgentRuntimeOperations}}.
* Add {{agentId}}, {{agentAliasId}}, {{sessionId}}, and (for inline)
inline-agent fields to {{BedrockAgentRuntimeConfiguration}} (with header
overrides).
* Add an async client to the agent-runtime endpoint (mirroring
{{BedrockEndpoint}}'s {{BedrockRuntimeAsyncClient}}).
* Implement event-stream handling for {{ResponseStream}} events ({{chunk}},
{{trace}}, {{returnControl}}, {{files}}), modeled after
{{ConverseStreamHandler}}.
* Surface intermediate trace events, citations, and final response via
headers/body.
* Honor existing {{streamOutputMode}} (complete/chunks).
* Add tests and update {{aws-bedrock-agent-runtime-component.adoc}}.
----
_Filed by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)