- Newest
- Most votes
- Most comments
Hello Georg W, thank you for bringing this to our attention. To be sure we're talking about the same issue, the error message you're receiving indicates that the function calls being generated by Claude 3 Sonnet aren't following the required format, is that correct? If so, here's some potential causes and solutions for this issue:
Recent Changes to Claude 3 Sonnet or Bedrock Service: There might have been updates to the model or the validation process that are affecting how function calls are formatted. AWS occasionally updates models or validation routines which can impact existing implementations.
Prompt Engineering Issues: The model might be struggling with your current prompts in relation to the function calling format. You may need to update your prompts to be more explicit about the required XML format.
Context Window Limitations: If your prompts are lengthy, the model might be losing track of the proper formatting requirements. Try reducing the complexity or length of your prompts.
Troubleshooting Steps: Review and update your prompts to explicitly instruct the model on the correct function call format Test with simplified prompts to isolate the issue Check if there are any Bedrock service quotas or limits you might be hitting Verify if there have been any recent changes to your agent configurations
Temporary Workarounds: Consider adding more explicit instructions in your prompts about the required XML format Try implementing additional validation and retry logic in your application Test with alternative models if available to see if the issue is specific to Claude 3 Sonnet
If you continue to experience issues after trying these steps, I recommend opening a support case with AWS Support for more detailed assistance. They can provide specific information about any recent changes to the Claude 3 Sonnet model or Bedrock service that might be affecting your agents. Also, below you will find additional sources that could help answer your question. Hope this helps. Thank you for using AWS!
Sources:
[2] Issue with Bedrock Agents and Lambda Function – Model Timeout/Error | AWS re:Post
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 10 days ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
Hi Georg, just letting you know that I have started experiencing the same issue with Sonnet and my agent. This would've been a world of pain if I was in Production. AWS needs to step up on this. As a sanity test I created a new agent - same. I created an agent in a new region (SYD) - same. I tried switching to Haiku and Titan - working. But those models aren't fit for my purposes so I need Sonnet working again too.