Skip to content

Limit Bedrock Agent calls in case we have run-away agent code using InvokeAgent

0

Just curious if there is a way to limit run-away spend on InvokeAgent using Anthropic Claude 3.7.. I do not see any specific quota items in quotas for particular issue.

For instance, if we accidentally started a script that had a bad for loop within it and it requests an unknown amount of InvokeAgent calls for an unspecified amount of time. Thanks!

asked 2 years ago393 views

1 Answer
1
Accepted Answer

Hello.

As of March 2025, I don't think there is a setting in Bedrock Agent that limits infinite call loops.
Therefore, I think you will need to implement it in the calling application, or implement an API Gateway and Lambda in front of Bedrock Agent and call Bedrock Agent from Lambda.
https://aws.amazon.com/jp/blogs/security/enhancing-data-privacy-with-layered-authorization-for-amazon-bedrock-agents/

EXPERT

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.