Skip to content

Conversation

Unshure
Copy link
Member

@Unshure Unshure commented Oct 6, 2025

Description

Refactor the tool loading logic as it was difficult to follow. I also added (or repaired) the functionality to load tools form the environment based on the tool string.

This makes the following code possible:

from strands import Agent
agent = Agent(tools=["strands_tools.file_read"])

I ended up deprecating a bunch of methods because they were so hard to understand what they were doing before. There was a lot of misdirection and poorly named function arguments.

Ive refactored it to what I think is easier to follow, while keeping the old methods for "backwards compatibility". Ive added deprecation methods to all of the things no longer in use so we can remove them in 2.0.

  • Also added codecov reporting

Related Issues

N/A

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.

Copy link

codecov bot commented Oct 6, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@Unshure Unshure marked this pull request as ready for review October 6, 2025 20:57
pgrayy
pgrayy previously approved these changes Oct 8, 2025
dbschmigelski
dbschmigelski previously approved these changes Oct 8, 2025
Co-authored-by: Patrick Gray <pgrayy@amazon.com>
@Unshure Unshure dismissed stale reviews from dbschmigelski and pgrayy via e040fd1 October 8, 2025 18:10
Co-authored-by: Patrick Gray <pgrayy@amazon.com>
@Unshure Unshure merged commit 171779a into strands-agents:main Oct 8, 2025
12 of 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