Skip to content

How to communicate with bedrock agent through code?

0

Ok, so I am stuck here for a while. I have a bedrock agent setup and working. I want to communicate with it through my code. I read documentation about Amazon SDK, but it mostly refers to interacting with bedrock knowledgebase instead of Agent.

Can anyone help me with this? Thanks.

2 Answers
2
Accepted Answer
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

AWS
EXPERT

reviewed 2 years ago

0

I followed this documentation: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html

but it requires many req parameters that I am unaware of, like memoryId, invocationId, promptSessionAttributes. I never came across these names while creating the bedrock knowledgebase, and agent.

If anyone can help me with this, then please. I can't figure this out.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.