跳至內容

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 年前檢視次數 4672 次

2 個答案
2
已接受的答案
專家

已回答 2 年前

專家

已審閱 2 年前

AWS
專家

已審閱 2 年前

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.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。