Skip to content

Conversation

pghazanfari
Copy link
Contributor

Description

Related Issues

Documentation PR

This shouldn't require a documentation changes.

Type of Change

Other (please describe): Moved the tool_spec retrieval in the event_loop to be AFTER the before model invocation callback. The reason behind this is that I have a use case for dynamically swapping the tools available for the model in-between each event loop iteration. I'd like to use the before model invocation event callback to make this happen.

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 test and everything succeeded.

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • [N/A] I have added any necessary tests that prove my fix is effective or my feature works
  • [N/A] 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
  • [N/A] 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.

@zastrowm zastrowm enabled auto-merge (squash) September 4, 2025 20:16
@zastrowm zastrowm merged commit faeb21a into strands-agents:main Sep 8, 2025
11 of 12 checks passed
This was referenced Sep 17, 2025
Unshure pushed a commit to Unshure/sdk-python that referenced this pull request Sep 24, 2025
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.

4 participants