-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Unexpected enableTrace Parameter Injection in BedrockFlowsAgent Calls #163
Comments
Hi @guisartori88 , can you please tell us the version of boto3 you have locally vs the one in lambda? It might be a boto3 parameter validation issue. |
Thank you so much for your response! After adjusting the boto3 version to 1.35.0, as required by the multi-agent-orchestrator==0.1.2, the issue was resolved. Local Environment: Lambda Environment: Conflict Error:
|
This is still strange because boto3 doesn't make any mention of enableTrace: https://boto3.amazonaws.com/v1/documentation/api/1.35.0/reference/services/bedrock-agent-runtime/client/invoke_flow.html while the API does: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html I'll keep investigate. Thanks |
Exactly! That’s why I was having a hard time. Honestly, it was more luck than following the documentation hahaha Thank you again for looking into this |
Expected Behaviour
When invoking the BedrockFlowsAgent in a Lambda environment, setting enableTrace=False (or not specifying it at all) should result in no enableTrace parameter being sent to Bedrock. If enableTrace=True is supported as per documentation, it should also not cause the request to fail due to unknown parameters.
Current Behaviour
In AWS Lambda, requests to Bedrock Flows fail with the following error, whether enableTrace is not specified or explicitly set to True:
Parameter validation failed: Unknown parameter in input: "enableTrace", must be one of: flowAliasIdentifier, flowIdentifier, inputs
This issue does not occur when running the same code locally. It appears that enableTrace is being injected internally or not recognized by Bedrock, causing the Bedrock API to reject the payload.
Code snippet
Possible Solution
Investigate if a specific library version or global configuration variable injects enableTrace unexpectedly.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: