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
|
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. |
|
@pgrayy Thanks for these changes, HIL is a much needed feature for user facing agents. Do you have any idea when the interrupts will be supported with Graph pattern? |
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.