- Newest
- Most votes
- Most comments
Based on the information you've provided, it appears that you're encountering an issue with tool use in Amazon Bedrock Flows. While tool use is supported in Amazon Bedrock's Converse API, there are some limitations and considerations when it comes to using tools within Bedrock Flows.
Currently, the integration of tool use within Bedrock Flows is not fully supported or documented in the same way as it is for the Converse API. The behavior you're experiencing, where the "document" is returned as an empty string when adding tool use to the prompt, suggests that the flow is not properly handling or processing the tool use request.
This limitation is likely due to the current implementation of Bedrock Flows, which may not have full support for the tool use functionality that's available in the Converse API. Flows are designed to process inputs and outputs in a specific way, and the tool use feature may not be fully integrated into this workflow yet.
To work around this limitation, you have a few options:
-
Use the Converse API directly: If tool use is critical for your use case, you might consider using the Amazon Bedrock Converse API directly instead of Flows. This would allow you to implement tool use as demonstrated in other examples.
-
Break down the task: You could potentially break your flow into multiple steps, handling the tool use outside of the flow and then feeding the results back into the flow as a separate input.
-
Wait for updates: As Amazon Bedrock and its features are continuously evolving, it's possible that full support for tool use within Flows may be added in the future. Keep an eye on AWS documentation and announcements for updates.
-
Provide feedback: Consider reaching out to AWS support or providing feedback about this limitation. AWS often takes user feedback into account when prioritizing feature development.
In the meantime, if you need to use tools within your AI workflow, you might need to implement this functionality outside of Bedrock Flows, possibly by using the Converse API directly or by handling tool use in your application logic before or after invoking the flow.
Sources
Multi-turn interaction is not supported for observation type: ASK_USER | AWS re:Post
Community | Intro to Tool Use with the Amazon Bedrock Converse API
Unable to use tools with Bedrock Runtime: Converse Step Function Task | AWS re:Post
The AI response here is pure junk. None of the sources mention tool use in flows, the response is at best inference at worst pure hallucination.
The lack of documented feature support here is worrying. It's quite frustrating that the lack of certain capabilities is very hidden. Did I miss a supported features table or some such somewhere?
answered a year ago
Relevant content
asked 2 years ago
asked 2 years ago
asked 2 years ago
