Skip to content

Bedrock studio functions issues

0

All, use case: function call in Bedrock studio Architecture: Bedrock studio preview -> Api Gateway -> Lambda

Issues: The first issue (maybe related to UI only) Agent chat application constantly loses function - that means that function is not available in the function list dropdown. For that reason multiple functions (with exactly the same functionality, descriptions ets. were created. All functions are present in components list, however app cannot pick them up.

The second issue is related to the fact that agent does not execute a call to destination lambda using console. Log shows that console was able to understand parameters and create call structure, however no logs show EXECUTION of the call. There are some other smaller issues, but the problems with the call is a major one. Server URL is seemingly correct - i am successfully using the same URL in POSTMAN to execute call manually. The same destination lambda works in Bedrock agent itself - but not in Bedrock studio. i do understand that bedrock studio is still in preview, but functionals are the major functionality. Has anyone been able to successfully execute function call from preview? All information would be greatly appreciated.

Thank you Yevgeniy

1 Answer
0

Thank you for sharing your experience with Amazon Bedrock Studio functions. I understand you're facing some challenges, and I'll address the issues you've described based on the information available.

Regarding the first issue where the Agent chat application loses functions from the dropdown list: This appears to be a UI-related problem in the preview version of Bedrock Studio. While the functions are still present in the components list, the app is having trouble recognizing them. This inconsistency is likely a bug in the preview version that needs to be addressed by the AWS team.

For the second issue where the agent doesn't execute the call to the destination Lambda: This is indeed a more significant problem. The fact that the console understands the parameters and creates the call structure, but doesn't show logs of the actual execution, suggests there might be an issue with the integration between Bedrock Studio and your AWS resources.

It's positive that you can successfully use the same URL in Postman and that the destination Lambda works in Bedrock agent itself. This indicates that the problem is specific to the Bedrock Studio preview implementation.

Given that Bedrock Studio is still in preview, it's not uncommon to encounter such issues. However, functions are indeed a major functionality, and this problem significantly impacts the usability of the service.

To address your question about successful function execution from the preview: While I don't have specific information about other users' experiences, it's clear that the feature is not working as intended in your case.

Here are a few suggestions that might help:

  1. Double-check the authentication method and credentials used for the function in Bedrock Studio. Ensure they match what you're using in Postman.

  2. Review the function schema in Bedrock Studio to make sure it accurately represents your API.

  3. Check if there are any size limitations on the API response that might be causing issues. Bedrock Studio has a limit of 20K for API responses.

  4. Ensure that the system prompt for your app mentions the new skills introduced by the function, as this is a requirement for using functions in Bedrock Studio.

  5. Monitor the CloudWatch logs for the Lambda function that Bedrock Studio creates to execute your API calls. This might provide more insight into what's happening behind the scenes.

If these steps don't resolve the issue, I would strongly recommend reaching out to AWS support or posting in the AWS forums. Given that this is a preview feature, direct feedback to AWS about these issues is crucial for improving the service before its general availability.

Sources
Call functions from your app - Amazon Bedrock Studio
Create an Amazon Bedrock Studio function component - Amazon Bedrock Studio
Monitor Amazon Bedrock Studio using CloudWatch Logs - Amazon Bedrock

answered 2 years ago

  • how can i create direct feedback?

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.