Skip to content

fix: Merge strands-agents user agent into existing botocore config #76

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

Merged
merged 1 commit into from
May 22, 2025

Conversation

clareliguori
Copy link
Contributor

Previously if the caller provided a botocore Config, we did not set the user agent to strands-agents. However, it turns out it's fairly common to provide a Config to set retries. This change adds to the caller's user agent if present, and otherwise sets it to user agent. The botocore Config merge method ensures that we don't lose any of the caller's Config settings.

@clareliguori clareliguori requested a review from a team as a code owner May 21, 2025 21:46
@clareliguori clareliguori enabled auto-merge (squash) May 21, 2025 21:52
@clareliguori clareliguori merged commit 5f4b68a into strands-agents:main May 22, 2025
20 checks passed
@clareliguori clareliguori deleted the user-agent-v2 branch May 22, 2025 15:08
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.

2 participants