Replies: 1 comment
-
Hello, to use an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📦 Crate:
aws-sdk-bedrockagentruntime
Objective
I created an Amazon Bedrock Agent in the AWS Management Console, using an OpenAPI spec as input. Next, I wanted to call (invoke) the agent using the AWS SDK for Rust.
Actual Result
The Amazon Bedrock Agent Runtime crate exposes the InvokeAgent API.
The
completion
field contains the response that I need to access, however it's wrapped up in thisEventReceiver
type. How do I unwrap theEventReceiver
to gain access to the actualResponseStream
? I can't find any way to accomplish this.Here's the field I need to unwrap: https://docs.rs/aws-sdk-bedrockagentruntime/1.27.0/aws_sdk_bedrockagentruntime/operation/invoke_agent/struct.InvokeAgentOutput.html#structfield.completion
Expected Result
I expected there to be an easier API to retrieve results from invoking the Amazon Bedrock Agent that I created.
Beta Was this translation helpful? Give feedback.
All reactions