-
Notifications
You must be signed in to change notification settings - Fork 512
interrupts - swarm #1193
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
interrupts - swarm #1193
Conversation
7c5dbc8 to
6d6f2ac
Compare
6d6f2ac to
50f616e
Compare
50f616e to
71589dd
Compare
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
71589dd to
e302d40
Compare
e302d40 to
44437df
Compare
44437df to
1f9ef9a
Compare
1f9ef9a to
ce9efae
Compare
4cc7fdc to
a523194
Compare
a523194 to
2b5a99c
Compare
|
From the PR description: Shouldn't this be |
That was a typo. I ran the examples from https://strandsagents.com/latest/documentation/docs/user-guide/concepts/interrupts/ (but for multi agents). I tried to simplify the loop though and copied the if condition without updating to ==. Just updated the description. |
Description
Adding interrupt (HIL) support to Swarm. Will add support to Graph in a separate PR.
Note, session managed interrupts are supported out of the box with this PR. For a usage example, see tests_integ/interrupts/multiagent/test_session.py under "Files changed".
Usage
Note, these are the same interfaces available for single agent interrupts (docs).
BeforeNodeCallEvent Hook
Within Agent
Related Issues
#204
Documentation PR
After closing out PR, will add usage instructions to https://strandsagents.com/latest/documentation/docs/user-guide/concepts/interrupts/. Will also document the new streamed MultiAgentNodeInterruptEvent in https://strandsagents.com/latest/documentation/docs/user-guide/concepts/streaming/.
Type of Change
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
hatch run prepare: Wrote new unit testshatch test tests_integ/interrupts/multiagent/*.py: Wrote new integ testsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.