Skip to content

Conversation

@pgrayy
Copy link
Member

@pgrayy pgrayy commented Nov 18, 2025

Description

The _InterruptState activate method only allows you to set the context. You cannot add to it. We are going to need a bit more flexibility though for supporting interrupts in graphs and swarms. With that said, I am removing the context arg from activate and instead having users (meaning us as it is an internal construct) set it directly. I think this makes anyway since _InterruptState is a dataclass.

Related Issues

#204

Documentation PR

Internal only change.

Type of Change

Other (please describe): Internal interface update.

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: Updated unit tests.
  • I ran hatch test tests_integ/interrupts/*.py

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.

@pgrayy pgrayy marked this pull request as ready for review November 18, 2025 14:25
@pgrayy pgrayy merged commit 432d269 into strands-agents:main Nov 19, 2025
14 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants