Skip to content

Conversation

zastrowm
Copy link
Member

@zastrowm zastrowm commented Oct 15, 2025

Description

When add_note is not available (3.10) enhance the default error message with the added notes.

In PR #290 we started using add_note to provide the bedrock model and region in exceptions to better clarify to customers what model & region were active. The implementation used add_note which is only supported in 3.11+; however, we've had enough customers on 3.10 where they're not seeing the error message that it makes sense to add a shim to do something similar for 3.10.

Related Issues

#290, #238

Documentation PR

N/A

Type of Change

Bug fix
New feature

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When add_note is not available (3.10) enhance the default error message with the added notes.

In PR strands-agents#290 we started using add_note to provide the bedrock model and region in exceptions to better clarify to customers what model & region were active.  The implementation used add_note which is only supported in 3.11+; however, we've had enough customers on 3.10 where they're not seeing the error message that it makes sense to add a shim to do something similar for 3.10.
Copy link

codecov bot commented Oct 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zastrowm zastrowm marked this pull request as ready for review October 15, 2025 14:17
Unshure
Unshure previously approved these changes Oct 15, 2025
@zastrowm zastrowm merged commit 7cd10b9 into strands-agents:main Oct 16, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants