- Newest
- Most votes
- Most comments
Hi,
The Bedrock InvokeAgent API is probably the one that you are looking for: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html
With boto3, doc is here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/bedrock-agent-runtime/client/invoke_agent.html
Best,
Didier
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
Relevant content
asked a year ago
asked 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago

I followed this documentation, in the sessionState > useCase i entered "CHAT" but I get this error in the response: "message": "Cannot perform this action with the input field [files] with CHAT use case for the provided model"
Hi Rish123, after having answered you, I discovered this just-published video with accompanying repo (containing all code): video = https://www.youtube.com/watch?v=zC_qLlm2se0 code = https://github.com/build-on-aws/agents-for-amazon-bedrock-sample-feature-notebooks/blob/main/notebooks/preview-agent-code-interpreter.ipynb
Follow this guidance to fix your issue
Thanks for accepting my answer!
Didier