Ir para o conteúdo

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 Respostas
2
Resposta aceita
ESPECIALISTA

respondido há 2 anos

ESPECIALISTA

avaliado há 2 anos

AWS
ESPECIALISTA

avaliado há 2 anos

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.

respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.